|
@@ -54,11 +54,11 @@ Start a terminal, go to the root directory of the engine source code.
|
|
|
|
|
|
To compile for Intel (x86-64) powered Macs, use::
|
|
|
|
|
|
- scons platform=macos arch=x86_64 --jobs=$(sysctl -n hw.logicalcpu)
|
|
|
+ scons platform=macos arch=x86_64
|
|
|
|
|
|
To compile for Apple Silicon (ARM64) powered Macs, use::
|
|
|
|
|
|
- scons platform=macos arch=arm64 --jobs=$(sysctl -n hw.logicalcpu)
|
|
|
+ scons platform=macos arch=arm64
|
|
|
|
|
|
To support both architectures in a single "Universal 2" binary, run the above two commands and then use ``lipo`` to bundle them together::
|
|
|
|
|
@@ -100,7 +100,7 @@ Running a headless/server build
|
|
|
To run in *headless* mode which provides editor functionality to export
|
|
|
projects in an automated manner, use the normal build::
|
|
|
|
|
|
- scons platform=macos target=editor --jobs=$(sysctl -n hw.logicalcpu)
|
|
|
+ scons platform=macos target=editor
|
|
|
|
|
|
And then use the ``--headless`` command line argument::
|
|
|
|
|
@@ -109,12 +109,12 @@ And then use the ``--headless`` command line argument::
|
|
|
To compile a debug *server* build which can be used with
|
|
|
:ref:`remote debugging tools <doc_command_line_tutorial>`, use::
|
|
|
|
|
|
- scons platform=macos target=template_debug --jobs=$(sysctl -n hw.logicalcpu)
|
|
|
+ scons platform=macos target=template_debug
|
|
|
|
|
|
To compile a release *server* build which is optimized to run dedicated game servers,
|
|
|
use::
|
|
|
|
|
|
- scons platform=macos target=template_release production=yes --jobs=$(sysctl -n hw.logicalcpu)
|
|
|
+ scons platform=macos target=template_release production=yes
|
|
|
|
|
|
Building export templates
|
|
|
-------------------------
|
|
@@ -129,13 +129,13 @@ of those two architectures by leaving out the ``lipo`` step below.
|
|
|
|
|
|
- For Intel x86_64::
|
|
|
|
|
|
- scons platform=macos target=template_release arch=x86_64 --jobs=$(sysctl -n hw.logicalcpu)
|
|
|
- scons platform=macos target=template_debug arch=x86_64 --jobs=$(sysctl -n hw.logicalcpu)
|
|
|
+ scons platform=macos target=template_release arch=x86_64
|
|
|
+ scons platform=macos target=template_debug arch=x86_64
|
|
|
|
|
|
- For ARM64 (Apple M1)::
|
|
|
|
|
|
- scons platform=macos target=template_release arch=arm64 --jobs=$(sysctl -n hw.logicalcpu)
|
|
|
- scons platform=macos target=template_debug arch=arm64 --jobs=$(sysctl -n hw.logicalcpu)
|
|
|
+ scons platform=macos target=template_release arch=arm64
|
|
|
+ scons platform=macos target=template_debug arch=arm64
|
|
|
|
|
|
To support both architectures in a single "Universal 2" binary, run the above
|
|
|
two commands blocks and then use ``lipo`` to bundle them together::
|