Debian Codegraph @

platform/macos/SCsub

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/usr/bin/env python
2 from misc.utility.scons_hints import *
3
4 import platform_macos_builders
5
6 Import("env")
7
8 files = [
9 "os_macos.mm",
10 "godot_application.mm",
11 "godot_application_delegate.mm",
12 "crash_handler_macos.mm",
13 "display_server_macos_base.mm",
14 "display_server_macos.mm",
15 "godot_button_view.mm",
16 "godot_content_view.mm",
17 "godot_core_cursor.mm",
18 "godot_status_item.mm",
19 "godot_window_delegate.mm",
20 "godot_window.mm",
21 "key_mapping_macos.mm",
22 "godot_menu_delegate.mm",
23 "godot_menu_item.mm",
24 "godot_open_save_delegate.mm",
25 "native_menu_macos.mm",
26 "dir_access_macos.mm",
27 "tts_macos.mm",
28 "rendering_context_driver_vulkan_macos.mm",
29 "gl_manager_macos_angle.mm",
30 "gl_manager_macos_legacy.mm",
31 ]
32
33 if env.editor_build:
34 files += [
35 "display_server_embedded.mm",
36 "embedded_debugger.mm",
37 "embedded_gl_manager.mm",
38 "editor/embedded_game_view_plugin.mm",
39 "editor/embedded_process_macos.mm",
40 ]
41
42 if env["library_type"] == "executable":
43 files += ["godot_main_macos.mm"]
44 else:
45 files += ["libgodot_macos.mm"]
46
47 if env["library_type"] == "static_library":
48 prog = env.add_library("#bin/godot", files)
49 elif env["library_type"] == "shared_library":
50 prog = env.add_shared_library("#bin/godot", files)
51 else:
52 prog = env.add_program("#bin/godot", files)
53
54 if env["debug_symbols"] and env["separate_debug_symbols"]:
55 env.AddPostAction(prog, env.Run(platform_macos_builders.make_debug_macos))
56
57 if env["generate_bundle"]:
58 env.AlwaysBuild(env.CommandNoCache("generate_bundle", prog, env.Run(platform_macos_builders.generate_bundle)))