[Build] Use first-party premake-androidndk (#1878)
This commit is contained in:
@@ -7,7 +7,9 @@ build_tools = "tools/build"
|
||||
build_scripts = build_tools .. "/scripts"
|
||||
build_tools_src = build_tools .. "/src"
|
||||
|
||||
if os.istarget("windows") then
|
||||
if os.istarget("android") then
|
||||
platform_suffix = "android"
|
||||
elseif os.istarget("windows") then
|
||||
platform_suffix = "win"
|
||||
else
|
||||
platform_suffix = "posix"
|
||||
|
||||
@@ -25,7 +25,7 @@ local function match_platform_files(base_path, base_match)
|
||||
base_path.."/"..base_match.."_win.h",
|
||||
base_path.."/"..base_match.."_win.cc",
|
||||
})
|
||||
filter("platforms:Linux or Android")
|
||||
filter("platforms:Linux or Android-*")
|
||||
files({
|
||||
base_path.."/"..base_match.."_posix.h",
|
||||
base_path.."/"..base_match.."_posix.cc",
|
||||
@@ -41,7 +41,7 @@ local function match_platform_files(base_path, base_match)
|
||||
base_path.."/"..base_match.."_gtk.h",
|
||||
base_path.."/"..base_match.."_gtk.cc",
|
||||
})
|
||||
filter("platforms:Android")
|
||||
filter("platforms:Android-*")
|
||||
files({
|
||||
base_path.."/"..base_match.."_android.h",
|
||||
base_path.."/"..base_match.."_android.cc",
|
||||
|
||||
Reference in New Issue
Block a user