|
|
@@ -121,7 +121,7 @@ A number of build options can be defined when invoking the build scripts or when
|
|
|
|EMSCRIPTEN_SHARE_DATA|0|Enable sharing data file support (Emscripten cross-compiling build only)|
|
|
|
|EMSCRIPTEN_EMRUN_BROWSER|*|Specify the particular browser to be spawned by emrun during testing (Emscripten cross-compiling build only), default to firefox|
|
|
|
|
|
|
-Note that the specified build option values are cached by CMake after the initial configuration step. The cached values will be used by CMake in the subsequent configuration. The same build options are not required to be specified again and again. But once a non-default build option value is being cached, it can only be reverted back to its default value by explicitly resetting it. That is, simply by not passing the corresponding build option would not revert it back to its default. One way to revert all the build options to their default values is by clearing the CMake cache by calling cmake_clean.bat or cmake_clean.sh.
|
|
|
+Note that the specified build option values are cached by CMake after the initial configuration step. The cached values will be used by CMake in the subsequent configuration. The same build options are not required to be specified again and again. But once a non-default build option value is being cached, it can only be reverted back to its default value by explicitly resetting it. That is, simply by not passing the corresponding build option would not revert it back to its default. One way to revert all the build options to their default values is by clearing the CMake cache by executing cmake_clean.bat or cmake_clean.sh with the location of the build tree as the first argument or by executing it in the build tree itself.
|
|
|
|
|
|
\section Building_Native Native build process
|
|
|
|
|
|
@@ -164,8 +164,6 @@ To run from Eclipse on Linux, locate and select the Urho3DPlayer executable in t
|
|
|
|
|
|
To run from Xcode on Mac OS X, edit the Product Scheme to set "Run" setting to execute "Urho3DPlayer" in the "Info" tab. In the "Arguments" tab, specify the arguments required by Urho3DPlayer executable. Ensure the check boxes are ticked on the argument entries that you want to be active.
|
|
|
|
|
|
-CMake caches some internal variables to speed up the subsequent invocation of the CMake. This is normally a good thing. However, there are cases when this is not desirable, for instance when switching CMake generators or after upgrading development software components. In such cases, it is recomended to first clean the CMake cache by invoking cmake_clean.bat or cmake_clean.sh by passing the location of the build tree to one of these as the first argument or by executing it in the build tree itself.
|
|
|
-
|
|
|
\section Building_Android Android build process
|
|
|
|
|
|
First, if you are building under Windows host without MKLINK support then copy bin/Data and bin/CoreData directories to the Android/assets directory (you can use the provided batch file CopyData.bat). This step is not necessary for Windows host with MKLINK support and other non-Windows host systems.
|
|
|
@@ -278,6 +276,15 @@ When building for Direct3D9 with the Windows 8 SDK (Visual Studio 2012+), copy d
|
|
|
|
|
|
OpenGL does not depend on a separate shader compiler DLL.
|
|
|
|
|
|
+\section Using_ccache Using ccache
|
|
|
+
|
|
|
+ccache is a compiler cache software available on Linux and Mac OS X host systems. It speeds up the build by bypassing the actual compilation and reusing the result from previous compilation. In order for this to work correctly when building/using Urho3D library with GCC/Clang precompiled header enabled, the following environment variable must be set:
|
|
|
+\verbatim
|
|
|
+CCACHE_SLOPPINESS=pch_defines,time_macros
|
|
|
+\endverbatim
|
|
|
+
|
|
|
+Failure to do so would cause the precompiled header cannot be used by ccache.
|
|
|
+
|
|
|
\page Running Running Urho3D player application
|
|
|
|
|
|
The Urho3D player application in the bin directory contains all the engine runtime functionality. However, it does not contain any inbuilt logic, and therefore must be supplied with the name of the application script file it should run:
|