2016-10-17 08:50:25 +02:00
|
|
|
#!/usr/bin/env python
|
2024-06-11 15:19:07 -05:00
|
|
|
from misc.utility.scons_hints import *
|
2016-10-17 08:50:25 +02:00
|
|
|
|
2025-05-14 12:04:10 +01:00
|
|
|
from platform_ios_builders import generate_bundle
|
|
|
|
|
|
|
|
from platform_methods import combine_libs_apple_embedded
|
2023-12-11 20:50:44 +02:00
|
|
|
|
2025-04-21 11:07:42 -05:00
|
|
|
Import("env")
|
2023-12-11 20:50:44 +02:00
|
|
|
|
2022-07-20 09:28:22 +03:00
|
|
|
ios_lib = [
|
2025-05-14 12:04:10 +01:00
|
|
|
"device_metrics.mm",
|
|
|
|
"display_layer_ios.mm",
|
2022-07-20 09:28:22 +03:00
|
|
|
"display_server_ios.mm",
|
2025-05-14 12:04:10 +01:00
|
|
|
"godot_view_ios.mm",
|
|
|
|
"main_ios.mm",
|
|
|
|
"os_ios.mm",
|
2014-02-09 22:10:30 -03:00
|
|
|
]
|
|
|
|
|
2016-11-01 00:24:30 +01:00
|
|
|
env_ios = env.Clone()
|
2022-07-20 09:28:22 +03:00
|
|
|
ios_lib = env_ios.add_library("ios", ios_lib)
|
2020-03-30 08:28:32 +02:00
|
|
|
|
2020-06-22 23:15:52 +03:00
|
|
|
# (iOS) Enable module support
|
|
|
|
env_ios.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
|
|
|
|
|
2025-03-18 09:54:55 -05:00
|
|
|
combine_command = env_ios.CommandNoCache(
|
2025-05-14 12:04:10 +01:00
|
|
|
"#bin/libgodot" + env_ios["LIBSUFFIX"], [ios_lib] + env_ios["LIBS"], env.Run(combine_libs_apple_embedded)
|
2025-03-18 09:54:55 -05:00
|
|
|
)
|
2023-12-11 20:50:44 +02:00
|
|
|
|
|
|
|
if env["generate_bundle"]:
|
2025-05-14 12:04:10 +01:00
|
|
|
env.AlwaysBuild(env.CommandNoCache("generate_bundle", combine_command, env.Run(generate_bundle)))
|