mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[CI, premake] Make some submodules optional
This commit is contained in:
parent
a4f91d8758
commit
a4154b236b
4
.github/workflows/Windows_build.yml
vendored
4
.github/workflows/Windows_build.yml
vendored
|
|
@ -69,9 +69,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Setup
|
- 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
|
- 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
|
- name: Prepare artifacts
|
||||||
id: prepare_artifacts
|
id: prepare_artifacts
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
46
premake5.lua
46
premake5.lua
|
|
@ -1,7 +1,13 @@
|
||||||
include("tools/build")
|
include("tools/build")
|
||||||
require("third_party/premake-export-compile-commands/export-compile-commands")
|
if _ACTION == "export-compile-commands" then
|
||||||
require("third_party/premake-androidndk/androidndk")
|
require("third_party/premake-export-compile-commands/export-compile-commands")
|
||||||
require("third_party/premake-cmake/cmake")
|
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)
|
location(build_root)
|
||||||
targetdir(build_bin)
|
targetdir(build_bin)
|
||||||
|
|
@ -191,22 +197,24 @@ filter({"language:C", "toolset:clang or gcc"}) -- "platforms:Linux"
|
||||||
"implicit-function-declaration",
|
"implicit-function-declaration",
|
||||||
})
|
})
|
||||||
|
|
||||||
filter("platforms:Android-*")
|
if os.istarget("android") then
|
||||||
system("android")
|
filter("platforms:Android-*")
|
||||||
systemversion("24")
|
system("android")
|
||||||
cppstl("c++")
|
systemversion("24")
|
||||||
staticruntime("On")
|
cppstl("c++")
|
||||||
-- Hidden visibility is needed to prevent dynamic relocations in FFmpeg
|
staticruntime("On")
|
||||||
-- AArch64 Neon libavcodec assembly with PIC (accesses extern lookup tables
|
-- Hidden visibility is needed to prevent dynamic relocations in FFmpeg
|
||||||
-- using `adrp` and `add`, without the Global Object Table, expecting that all
|
-- AArch64 Neon libavcodec assembly with PIC (accesses extern lookup tables
|
||||||
-- FFmpeg symbols that aren't a part of the FFmpeg API are hidden by FFmpeg's
|
-- using `adrp` and `add`, without the Global Object Table, expecting that all
|
||||||
-- original build system) by resolving those relocations at link time instead.
|
-- FFmpeg symbols that aren't a part of the FFmpeg API are hidden by FFmpeg's
|
||||||
visibility("Hidden")
|
-- original build system) by resolving those relocations at link time instead.
|
||||||
links({
|
visibility("Hidden")
|
||||||
"android",
|
links({
|
||||||
"dl",
|
"android",
|
||||||
"log",
|
"dl",
|
||||||
})
|
"log",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
filter("platforms:Windows")
|
filter("platforms:Windows")
|
||||||
system("windows")
|
system("windows")
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,11 @@ project("xenia-ui")
|
||||||
"*_demo.cc",
|
"*_demo.cc",
|
||||||
"windowed_app_main_*.cc",
|
"windowed_app_main_*.cc",
|
||||||
})
|
})
|
||||||
filter("platforms:Android-*")
|
if os.istarget("android") then
|
||||||
-- Exports JNI functions.
|
filter("platforms:Android-*")
|
||||||
wholelib("On")
|
-- Exports JNI functions.
|
||||||
|
wholelib("On")
|
||||||
|
end
|
||||||
|
|
||||||
filter("platforms:Windows")
|
filter("platforms:Windows")
|
||||||
links({
|
links({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue