Add experimental Android build in scons

This commit is contained in:
rodolpheh 2023-11-02 23:03:44 +00:00
parent e7c7363764
commit 215fc5448e

View file

@ -52,8 +52,13 @@ elif env["platform"] == "windows":
env.Append(LIBPATH = ['C:/Program Files/Ultraleap/LeapSDK/lib/x64'])
env.Append(CPPPATH = ["C:/Program Files/Ultraleap/LeapSDK/include"])
elif env["platform"] == "android":
print("Android is not supported yet")
exit(1)
library = env.SharedLibrary(
"demo/addons/godot_ultraleap_plugin/bin/libgdultraleap{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
source=sources,
)
env.Append(LIBS=['LeapC'])
env.Append(LIBPATH = ['./android'])
env.Append(CPPPATH = ["./android"])
else:
library = env.SharedLibrary(
"demo/addons/godot_ultraleap_plugin/bin/libgdultraleap{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),