[iOS] Fix building as static library or xcframework, add iOS config and xcframework build script to the test project.

This commit is contained in:
bruvzg
2023-11-05 23:04:03 +02:00
parent cc89bd2132
commit 29b34d92bb
9 changed files with 54 additions and 17 deletions

View File

@@ -23,6 +23,17 @@ if env["platform"] == "macos":
),
source=sources,
)
elif env["platform"] == "ios":
if env["ios_simulator"]:
library = env.StaticLibrary(
"project/bin/libgdexample.{}.{}.simulator.a".format(env["platform"], env["target"]),
source=sources,
)
else:
library = env.StaticLibrary(
"project/bin/libgdexample.{}.{}.a".format(env["platform"], env["target"]),
source=sources,
)
else:
library = env.SharedLibrary(
"project/bin/libgdexample{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),