-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathxmake.lua
More file actions
30 lines (27 loc) · 994 Bytes
/
xmake.lua
File metadata and controls
30 lines (27 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
add_rules("mode.debug", "mode.release")
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
if is_plat("windows") then
add_requires("detours v4.0.1-xmake.1")
elseif is_plat("android") then
add_requires("preloader_android 0.1.13")
end
add_requires("nlohmann_json v3.11.3")
target("ForceCloseOreUI")
set_kind("shared")
add_files("src/**.cpp")
add_includedirs("src")
set_languages("c++20")
set_strip("all")
add_linkdirs("lib")
add_packages("nlohmann_json")
if is_plat("windows") then
add_packages("detours")
remove_files("src/api/memory/android/**.cpp","src/api/memory/android/**.h")
add_cxflags("/utf-8", "/EHa")
add_syslinks("Shell32")
elseif is_plat("android") then
remove_files("src/api/memory/win/**.cpp","src/api/memory/win/**.h")
add_cxflags("-O3")
add_packages("preloader_android")
add_cxxflags("-DLLVM_TARGETS_TO_BUILD=\"ARM;AArch64;BPF\"")
end