[CI, premake] Make some submodules optional

This commit is contained in:
Margen67 2025-08-17 04:36:36 -07:00
parent a4f91d8758
commit a4154b236b
3 changed files with 34 additions and 24 deletions

View file

@ -69,9 +69,9 @@ jobs:
with:
fetch-depth: 0
- name: Setup
run: python xenia-build.py setup
run: git submodule update --init --depth=1 -j $env:NUMBER_OF_PROCESSORS (Select-String -CaseSensitive '(?<=path = )(?!third_party\/(FidelityFX-(CAS|FSR)|premake-(androidndk|cmake|export-compile-commands))).+' .gitmodules).Matches.Value
- name: Build
run: python xenia-build.py build --no_premake --config=Release --target=src\xenia-app
run: python xenia-build.py build --config=Release --target=src\xenia-app
- name: Prepare artifacts
id: prepare_artifacts
run: |

View file

@ -1,7 +1,13 @@
include("tools/build")
require("third_party/premake-export-compile-commands/export-compile-commands")
require("third_party/premake-androidndk/androidndk")
require("third_party/premake-cmake/cmake")
if _ACTION == "export-compile-commands" then
require("third_party/premake-export-compile-commands/export-compile-commands")
end
if os.istarget("android") then
require("third_party/premake-androidndk/androidndk")
end
if _ACTION == "cmake" then
require("third_party/premake-cmake/cmake")
end
location(build_root)
targetdir(build_bin)
@ -191,22 +197,24 @@ filter({"language:C", "toolset:clang or gcc"}) -- "platforms:Linux"
"implicit-function-declaration",
})
filter("platforms:Android-*")
system("android")
systemversion("24")
cppstl("c++")
staticruntime("On")
-- Hidden visibility is needed to prevent dynamic relocations in FFmpeg
-- AArch64 Neon libavcodec assembly with PIC (accesses extern lookup tables
-- using `adrp` and `add`, without the Global Object Table, expecting that all
-- FFmpeg symbols that aren't a part of the FFmpeg API are hidden by FFmpeg's
-- original build system) by resolving those relocations at link time instead.
visibility("Hidden")
links({
"android",
"dl",
"log",
})
if os.istarget("android") then
filter("platforms:Android-*")
system("android")
systemversion("24")
cppstl("c++")
staticruntime("On")
-- Hidden visibility is needed to prevent dynamic relocations in FFmpeg
-- AArch64 Neon libavcodec assembly with PIC (accesses extern lookup tables
-- using `adrp` and `add`, without the Global Object Table, expecting that all
-- FFmpeg symbols that aren't a part of the FFmpeg API are hidden by FFmpeg's
-- original build system) by resolving those relocations at link time instead.
visibility("Hidden")
links({
"android",
"dl",
"log",
})
end
filter("platforms:Windows")
system("windows")

View file

@ -14,9 +14,11 @@ project("xenia-ui")
"*_demo.cc",
"windowed_app_main_*.cc",
})
filter("platforms:Android-*")
-- Exports JNI functions.
wholelib("On")
if os.istarget("android") then
filter("platforms:Android-*")
-- Exports JNI functions.
wholelib("On")
end
filter("platforms:Windows")
links({