Skip to content

Commit d76e408

Browse files
committed
[Build] Add Android to platform_files.lua
1 parent 9f45a1f commit d76e408

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tools/build/scripts/platform_files.lua

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,39 @@ local function match_platform_files(base_path, base_match)
1313
removefiles({base_path.."/".."**_test.cc"})
1414
removefiles({base_path.."/".."**_posix.h", base_path.."/".."**_posix.cc"})
1515
removefiles({base_path.."/".."**_linux.h", base_path.."/".."**_linux.cc"})
16+
removefiles({base_path.."/".."**_gnulinux.h",
17+
base_path.."/".."**_gnulinux.cc"})
1618
removefiles({base_path.."/".."**_x11.h", base_path.."/".."**_x11.cc"})
1719
removefiles({base_path.."/".."**_gtk.h", base_path.."/".."**_gtk.cc"})
20+
removefiles({base_path.."/".."**_android.h", base_path.."/".."**_android.cc"})
1821
removefiles({base_path.."/".."**_mac.h", base_path.."/".."**_mac.cc"})
1922
removefiles({base_path.."/".."**_win.h", base_path.."/".."**_win.cc"})
2023
filter("platforms:Windows")
2124
files({
2225
base_path.."/"..base_match.."_win.h",
2326
base_path.."/"..base_match.."_win.cc",
2427
})
25-
filter("platforms:Linux")
28+
filter("platforms:Linux or Android")
2629
files({
2730
base_path.."/"..base_match.."_posix.h",
2831
base_path.."/"..base_match.."_posix.cc",
2932
base_path.."/"..base_match.."_linux.h",
3033
base_path.."/"..base_match.."_linux.cc",
34+
})
35+
filter("platforms:Linux")
36+
files({
37+
base_path.."/"..base_match.."_gnulinux.h",
38+
base_path.."/"..base_match.."_gnulinux.cc",
3139
base_path.."/"..base_match.."_x11.h",
3240
base_path.."/"..base_match.."_x11.cc",
3341
base_path.."/"..base_match.."_gtk.h",
3442
base_path.."/"..base_match.."_gtk.cc",
3543
})
44+
filter("platforms:Android")
45+
files({
46+
base_path.."/"..base_match.."_android.h",
47+
base_path.."/"..base_match.."_android.cc",
48+
})
3649
filter({})
3750
end
3851

0 commit comments

Comments
 (0)