Harmonize Bash command syntax for easier line selection and copy-pasting

- Remove prompt or `$` sign which makes triple-click based selection
  more difficult and time-consuming.
- Use `platform` instead of `p` alias in all SCons examples.
This commit is contained in:
Hugo Locurcio
2024-09-15 16:27:34 +02:00
committed by Max Hilbrunner
parent f5adaf3176
commit 71db8932bc
9 changed files with 78 additions and 78 deletions

View File

@@ -53,13 +53,13 @@ Open a Terminal, go to the root dir of the engine source code and type:
::
$ scons p=ios target=template_debug
scons platform=ios target=template_debug
for a debug build, or:
::
$ scons p=ios target=template_release
scons platform=ios target=template_release
for a release build (check ``platform/ios/detect.py`` for the compiler
flags used for each configuration).
@@ -68,8 +68,8 @@ Alternatively, you can run
::
$ scons p=ios target=template_debug ios_simulator=yes arch=x86_64
$ scons p=ios target=template_debug ios_simulator=yes arch=arm64
scons platform=ios target=template_debug ios_simulator=yes arch=x86_64
scons platform=ios target=template_debug ios_simulator=yes arch=arm64
for a Simulator libraries.
@@ -79,13 +79,13 @@ should be placed in ``libgodot.ios.debug.xcframework`` and ``libgodot.ios.releas
::
$ cp -r misc/dist/ios_xcode .
cp -r misc/dist/ios_xcode .
$ cp libgodot.ios.template_debug.arm64.a ios_xcode/libgodot.ios.debug.xcframework/ios-arm64/libgodot.a
$ lipo -create libgodot.ios.template_debug.arm64.simulator.a libgodot.ios.template_debug.x86_64.simulator.a -output ios_xcode/libgodot.ios.debug.xcframework/ios-arm64_x86_64-simulator/libgodot.a
cp libgodot.ios.template_debug.arm64.a ios_xcode/libgodot.ios.debug.xcframework/ios-arm64/libgodot.a
lipo -create libgodot.ios.template_debug.arm64.simulator.a libgodot.ios.template_debug.x86_64.simulator.a -output ios_xcode/libgodot.ios.debug.xcframework/ios-arm64_x86_64-simulator/libgodot.a
$ cp libgodot.ios.template_release.arm64.a ios_xcode/libgodot.ios.release.xcframework/ios-arm64/libgodot.a
$ lipo -create libgodot.ios.template_release.arm64.simulator.a libgodot.ios.template_release.x86_64.simulator.a -output ios_xcode/libgodot.ios.release.xcframework/ios-arm64_x86_64-simulator/libgodot.a
cp libgodot.ios.template_release.arm64.a ios_xcode/libgodot.ios.release.xcframework/ios-arm64/libgodot.a
lipo -create libgodot.ios.template_release.arm64.simulator.a libgodot.ios.template_release.x86_64.simulator.a -output ios_xcode/libgodot.ios.release.xcframework/ios-arm64_x86_64-simulator/libgodot.a
The MoltenVK static ``.xcframework`` folder must also be placed in the ``ios_xcode``
folder once it has been created.

View File

@@ -314,7 +314,7 @@ codebase. To edit projects with Visual Studio they need to be set up as a soluti
You can create a Visual Studio solution via SCons by running SCons with
the ``vsproj=yes`` parameter, like this::
scons p=windows vsproj=yes
scons platform=windows vsproj=yes
You will be able to open Godot's source in a Visual Studio solution now,
and able to build Godot using Visual Studio's **Build** button.

View File

@@ -46,7 +46,7 @@ the desired targets without having to repeat this process.
``<godot_binary>`` refers to the editor binary you compiled with the .NET module
enabled. Its exact name will differ based on your system and configuration, but
should be of the form ``bin/godot.<platform>.editor.<arch>.mono``, e.g.
``bin/godot.linuxbsd.editor.x86_64.mono`` or
``bin/godot.linuxbsd.editor.x86_64.mono`` or
``bin/godot.windows.editor.x86_32.mono.exe``. Be especially aware of the
**.mono** suffix! If you've previously compiled Godot without .NET support, you
might have similarly named binaries without this suffix. These binaries can't be
@@ -149,11 +149,11 @@ Example (Windows)
::
# Build editor binary
scons p=windows target=editor module_mono_enabled=yes
scons platform=windows target=editor module_mono_enabled=yes
# Build export templates
scons p=windows target=template_debug module_mono_enabled=yes
scons p=windows target=template_release module_mono_enabled=yes
scons platform=windows target=template_debug module_mono_enabled=yes
scons platform=windows target=template_release module_mono_enabled=yes
# Generate glue sources
bin/godot.windows.editor.x86_64.mono --headless --generate-mono-glue modules/mono/glue
# Build .NET assemblies
@@ -166,10 +166,10 @@ Example (Linux, \*BSD)
::
# Build editor binary
scons p=linuxbsd target=editor module_mono_enabled=yes
scons platform=linuxbsd target=editor module_mono_enabled=yes
# Build export templates
scons p=linuxbsd target=template_debug module_mono_enabled=yes
scons p=linuxbsd target=template_release module_mono_enabled=yes
scons platform=linuxbsd target=template_debug module_mono_enabled=yes
scons platform=linuxbsd target=template_release module_mono_enabled=yes
# Generate glue sources
bin/godot.linuxbsd.editor.x86_64.mono --headless --generate-mono-glue modules/mono/glue