From 5b8a640eda0a38e799dc230b7c3670ee9f4928ee Mon Sep 17 00:00:00 2001 From: moonie <67006455+Kim-Dewelski@users.noreply.github.com> Date: Sat, 17 Aug 2024 23:32:46 +0200 Subject: [PATCH] decoupled libretro to be excluded from the all target --- .github/workflows/deploy_retro_ios.yml | 2 +- .github/workflows/deploy_retro_linux.yml | 2 +- .github/workflows/deploy_retro_mac.yml | 2 +- .github/workflows/deploy_retro_win.yml | 2 +- CMakeLists.txt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy_retro_ios.yml b/.github/workflows/deploy_retro_ios.yml index af8ea1046..206140c98 100644 --- a/.github/workflows/deploy_retro_ios.yml +++ b/.github/workflows/deploy_retro_ios.yml @@ -11,7 +11,7 @@ jobs: mkdir build cd build cmake -GXcode -DCMAKE_SYSTEM_NAME=iOS ../ - cmake --build . --config Release + cmake --build . --target SkyEmuRetro --config Release mkdir Payload cp -R libSkyEmuRetro.dylib Payload/SkyEmu.app zip -r SkyEmuRetro.ipa Payload diff --git a/.github/workflows/deploy_retro_linux.yml b/.github/workflows/deploy_retro_linux.yml index 7d8038434..7e0cac29f 100644 --- a/.github/workflows/deploy_retro_linux.yml +++ b/.github/workflows/deploy_retro_linux.yml @@ -10,7 +10,7 @@ jobs: run: | mkdir build cd build - cmake .. && cmake --build . + cmake .. && cmake --build . --target SkyEmuRetro --config Release - name: GH Release 🚀 # You may pin to the exact commit or the version. diff --git a/.github/workflows/deploy_retro_mac.yml b/.github/workflows/deploy_retro_mac.yml index b3ba70bd1..7f8088b4f 100644 --- a/.github/workflows/deploy_retro_mac.yml +++ b/.github/workflows/deploy_retro_mac.yml @@ -10,7 +10,7 @@ jobs: run: | mkdir build cd build - cmake .. && cmake --build . + cmake .. && cmake --build . --target SkyEmuRetro --config Release - name: Build DMG run: | cd build diff --git a/.github/workflows/deploy_retro_win.yml b/.github/workflows/deploy_retro_win.yml index ec3363c70..f38a3af49 100644 --- a/.github/workflows/deploy_retro_win.yml +++ b/.github/workflows/deploy_retro_win.yml @@ -15,7 +15,7 @@ jobs: mkdir build cd build cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.19041.0 .. - cmake --build . --config Release + cmake --build . --target SkyEmuRetro --config Release - name: GH Release 🚀 # You may pin to the exact commit or the version. diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fd38b087..6dcf87494 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -372,7 +372,7 @@ elseif(ANDROID) else() add_executable(${PROJECT_NAME} ${SKYEMU_SRC}) endif() -add_library(SkyEmuRetro SHARED src/libretro.c src/shared.c src/localization.c) +add_library(SkyEmuRetro SHARED EXCLUDE_FROM_ALL src/libretro.c src/shared.c src/localization.c) if (${CMAKE_SYSTEM_NAME} MATCHES "Emscripten") set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH -s TOTAL_MEMORY=192MB -lidbfs.js -s ELIMINATE\_DUPLICATE\_FUNCTIONS=1 -flto -s USE_CLOSURE_COMPILER=0 --closure 0 ")