Add Windows build too

This commit is contained in:
rodolpheh 2023-10-26 21:46:27 +01:00
parent 22250e6fec
commit 6dd897a822

View file

@ -43,6 +43,16 @@ if env["platform"] == "macos":
change_rpath_action = Action('', change_rpath)
AddPostAction(library, change_rpath_action)
elif env["platform"] == "windows":
library = env.SharedLibrary(
"demo/addons/godot_ultraleap_plugin/bin/libgdultraleap{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
source=sources,
)
env.Append(LIBS=['LeapC'])
env.Append(LIBPATH = ['C:/Program Files/Ultraleap/LeapSDK/lib/x64'])
elif env["platform"] == "android":
print("Android is not supported yet")
exit(1)
else:
library = env.SharedLibrary(
"demo/addons/godot_ultraleap_plugin/bin/libgdultraleap{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),