9e4315bb50
This applies our existing style guide, and adds a new rule to that style guide for modular components such as platform ports and modules: Includes from the platform port or module should be included with relative paths (relative to the root folder of the modular component, e.g. `platform/linuxbsd/`), in their own section before Godot's "core" includes. The `api` and `export` subfolders also need to be handled as self-contained (and thus use relative paths for their "local" includes) as they are all compiled for each editor platform, without necessarily having the api/export matching platform folder in the include path. E.g. the Linux editor build will compile `platform/android/{api,export}/*.cpp` and those need to use relative includes for it to work. |
||
---|---|---|
.. | ||
doc_classes | ||
export | ||
crash_handler_macos.h | ||
crash_handler_macos.mm | ||
detect.py | ||
dir_access_macos.h | ||
dir_access_macos.mm | ||
display_server_macos.h | ||
display_server_macos.mm | ||
gl_manager_macos_legacy.h | ||
gl_manager_macos_legacy.mm | ||
godot_application.h | ||
godot_application.mm | ||
godot_application_delegate.h | ||
godot_application_delegate.mm | ||
godot_button_view.h | ||
godot_button_view.mm | ||
godot_content_view.h | ||
godot_content_view.mm | ||
godot_main_macos.mm | ||
godot_menu_delegate.h | ||
godot_menu_delegate.mm | ||
godot_menu_item.h | ||
godot_menu_item.mm | ||
godot_window.h | ||
godot_window.mm | ||
godot_window_delegate.h | ||
godot_window_delegate.mm | ||
joypad_macos.cpp | ||
joypad_macos.h | ||
key_mapping_macos.h | ||
key_mapping_macos.mm | ||
logo.svg | ||
macos_terminal_logger.h | ||
macos_terminal_logger.mm | ||
os_macos.h | ||
os_macos.mm | ||
platform_config.h | ||
platform_macos_builders.py | ||
README.md | ||
run_icon.svg | ||
SCsub | ||
tts_macos.h | ||
tts_macos.mm | ||
vulkan_context_macos.h | ||
vulkan_context_macos.mm |
macOS platform port
This folder contains the C++, Objective-C and Objective-C++ code for the macOS platform port.
See also misc/dist/macos
folder for additional files used
by this platform. misc/dist/macos_tools.app
is
an .app
bundle template used for packaging the macOS editor, while
misc/dist/macos_template.app
is used for
packaging macOS export templates.
Documentation
- Compiling for macOS
- Instructions on building this platform port from source.
- Exporting for macOS
- Instructions on using the compiled export templates to export a project.
- Running Godot apps on macOS
- Instructions on running Godot projects on macOS.