[Android] Unified xenia-app with windowed apps and build prerequisites

This commit is contained in:
Triang3l 2022-07-11 21:45:57 +03:00
parent b41bb35a20
commit 037310f8dc
18 changed files with 176 additions and 43 deletions

View file

@ -0,0 +1,20 @@
SINGLE_LIBRARY_PLATFORM_PATTERNS = {
"Android-*",
};
SINGLE_LIBRARY_FILTER =
"platforms:" .. table.concat(SINGLE_LIBRARY_PLATFORM_PATTERNS, " or ");
NOT_SINGLE_LIBRARY_FILTER = table.translate(
SINGLE_LIBRARY_PLATFORM_PATTERNS,
function(pattern)
return "platforms:not " .. pattern;
end);
function single_library_windowed_app_kind()
filter(SINGLE_LIBRARY_FILTER);
kind("StaticLib");
wholelib("On");
filter(NOT_SINGLE_LIBRARY_FILTER);
kind("WindowedApp");
filter({});
end