2022-07-20 09:28:22 +03:00
|
|
|
#!/usr/bin/env python
|
2024-06-11 15:19:07 -05:00
|
|
|
from misc.utility.scons_hints import *
|
2022-07-20 09:28:22 +03:00
|
|
|
|
2024-05-21 15:14:59 +02:00
|
|
|
import platform_macos_builders
|
|
|
|
|
2025-04-21 11:07:42 -05:00
|
|
|
Import("env")
|
2022-07-20 09:28:22 +03:00
|
|
|
|
|
|
|
files = [
|
|
|
|
"os_macos.mm",
|
|
|
|
"godot_application.mm",
|
|
|
|
"godot_application_delegate.mm",
|
|
|
|
"crash_handler_macos.mm",
|
2025-06-05 11:06:04 +03:00
|
|
|
"display_server_macos_base.mm",
|
2025-04-29 07:01:27 +10:00
|
|
|
"display_server_embedded.mm",
|
2022-07-20 09:28:22 +03:00
|
|
|
"display_server_macos.mm",
|
2025-04-29 07:01:27 +10:00
|
|
|
"embedded_debugger.mm",
|
|
|
|
"embedded_gl_manager.mm",
|
2022-09-20 11:12:49 +03:00
|
|
|
"godot_button_view.mm",
|
2022-07-20 09:28:22 +03:00
|
|
|
"godot_content_view.mm",
|
2023-08-03 12:45:56 +03:00
|
|
|
"godot_status_item.mm",
|
2022-07-20 09:28:22 +03:00
|
|
|
"godot_window_delegate.mm",
|
|
|
|
"godot_window.mm",
|
|
|
|
"key_mapping_macos.mm",
|
|
|
|
"godot_main_macos.mm",
|
2022-08-31 11:11:52 +03:00
|
|
|
"godot_menu_delegate.mm",
|
|
|
|
"godot_menu_item.mm",
|
2023-10-13 12:37:46 +03:00
|
|
|
"godot_open_save_delegate.mm",
|
2024-01-19 19:41:01 +02:00
|
|
|
"native_menu_macos.mm",
|
2022-07-20 09:28:22 +03:00
|
|
|
"dir_access_macos.mm",
|
|
|
|
"tts_macos.mm",
|
2023-12-19 14:57:56 -03:00
|
|
|
"rendering_context_driver_vulkan_macos.mm",
|
2021-11-12 14:49:49 +02:00
|
|
|
"gl_manager_macos_angle.mm",
|
2022-07-20 09:28:22 +03:00
|
|
|
"gl_manager_macos_legacy.mm",
|
|
|
|
]
|
|
|
|
|
2025-04-29 07:01:27 +10:00
|
|
|
if env.editor_build:
|
|
|
|
files += [
|
|
|
|
"editor/embedded_game_view_plugin.mm",
|
|
|
|
"editor/embedded_process_macos.mm",
|
|
|
|
]
|
|
|
|
|
2022-07-20 09:28:22 +03:00
|
|
|
prog = env.add_program("#bin/godot", files)
|
|
|
|
|
|
|
|
if env["debug_symbols"] and env["separate_debug_symbols"]:
|
2024-03-10 14:01:23 -05:00
|
|
|
env.AddPostAction(prog, env.Run(platform_macos_builders.make_debug_macos))
|
2023-12-11 20:50:44 +02:00
|
|
|
|
|
|
|
if env["generate_bundle"]:
|
2025-04-21 11:07:42 -05:00
|
|
|
env.AlwaysBuild(env.CommandNoCache("generate_bundle", prog, env.Run(platform_macos_builders.generate_bundle)))
|