Commit Graph

135 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
19e1e42ca3 Add new 'doc' target for generating Urho3D documentation.
make clean
make all
make doc      <-- New target
make install
2013-11-24 21:12:05 +08:00
Yao Wei Tjong 姚伟忠
f6186456a0 Fix SDK destination installation path for Windows platform.
It appears CMake has automatically prepended "Urho3D" to built-in CMAKE_INSTALL_PREFIX variable, so we don't need to prefix the path one more time. Also in the commits:
- Fix documentation on CMake module search path for Windows platform.
- Unified SDK destination installation for Windows and non-Windows platforms.
- Replace global include directories to SDL and export header to locally scoped include directories.
- Enhance Urho3D.pc generation to also provide additional compiler flags for DEBUG/RELEASE/RELWITHDEBINFO as comments/references.
2013-11-20 15:59:38 +08:00
Yao Wei Tjong 姚伟忠
e83d98f016 Fix Urho3D.pc file for Windows and Raspberry Pi platforms.
Document cross-compiling example using pkg-config for Raspberry Pi platform.
Disable Urho3D.pc file generation for Android and iOS platform.
2013-11-17 21:26:44 +08:00
Yao Wei Tjong 姚伟忠
36620dd819 Avoid hardcoding of include dirs in the Urho3D.pc.in input file.
Also revert decision to use smaller letter case cmake destination directory in previous commit :).
2013-11-16 16:21:13 +08:00
Yao Wei Tjong 姚伟忠
56798dcce9 Fix incorrect include dirs in the Urho3D.pc file.
Also:
- Change the CMake module installation destination to use small letter case.
- Update documentation on pkg-config invocation examples.
2013-11-16 14:49:34 +08:00
Yao Wei Tjong 姚伟忠
d7942132f1 Configure and install Urho3D.pc file for pkg-config tool.
This is useful for Urho3D library user via SDK installation without having CMake installed.
2013-11-15 18:33:51 +08:00
Yao Wei Tjong 姚伟忠
8a571ae437 Document how to install library and how to find it from installed SDK. 2013-11-05 15:52:37 +08:00
Yao Wei Tjong 姚伟忠
300efe0f7d Reinstate comment on RedHat-based system that needs LIB_SUFFIX. 2013-11-04 08:36:15 +08:00
Yao Wei Tjong 姚伟忠
e8fbcf8a82 Add 'install' option for cross-compiling build and IOS as well.
Note: there is a known bug in CMake/Xcode generator that prevents iOS targets (library and bundle) to be installed correctly (see http://public.kitware.com/Bug/bug_relationship_graph.php?bug_id=12506&graph=dependency).
2013-11-04 00:13:49 +08:00
Yao Wei Tjong 姚伟忠
52ff881c54 Add 'install' option (currently only available for native build).
Also enhance FindUrho3D.cmake module to find Urho3D library in the Urho3D SDK installation location.
2013-11-02 16:45:44 +08:00
Yao Wei Tjong 姚伟忠
8ff3348503 Refactor define_dependency_libs macro.
Change to remove the references to engine's sub-library targets which are now defunct. General cleanup of the build scripts.
2013-11-01 17:58:47 +08:00
Yao Wei Tjong 姚伟忠
da155d2b9a Generating all the output files in the desired output directories.
Thus, avoiding the copying and symlinks setup (for Xcode debugging) post-build steps.
2013-10-31 17:27:18 +08:00
Yao Wei Tjong 姚伟忠
e423a26461 Refactor CMake build scripts.
Changes:
- Avoid globbing engine source files twice.
- Setup folder group for VS and Xcode. Also group object files according to 3rd-party library name.
- New define_source_files() macro.
2013-10-28 18:21:18 +08:00
Yao Wei Tjong 姚伟忠
b85a0b3305 Suppress "unused variable" warning for external CMake project also. 2013-10-25 00:32:23 +08:00
Yao Wei Tjong 姚伟忠
a9ed330890 Create sub-projects for Samples/Tools/Extras. 2013-10-22 23:19:03 +08:00
Yao Wei Tjong 姚伟忠
7b24807c32 Combine Engine sources into one place and build as a single target. 2013-10-22 04:16:22 +08:00
Yao Wei Tjong 姚伟忠
d953b36d62 Reverted back decision to also build samples on Android platform.
Although samples should also work for Android platform, currently there is no available mechanism to package each sample app into individual *.apk.
2013-10-21 20:27:08 +08:00
Yao Wei Tjong 姚伟忠
d33ac02538 Refactor build scripts to build Urho3D library as main target.
Other changes in the commit:
- Change build option from URHO3D_BUILD_TYPE to URHO3D_LIB_TYPE. Default value is STATIC.
- Automatically add compiler definition 'URHO3D_STATIC_DEFINE' when linking with Urho3D library statically.
- Move LuaScript subsystem from Extra/ to Engine/.
- Enable FindUrho3D module to also detect Urho3D library target when the FindUrho3D module is being used internally by Urho3D project.
- Configure to build all the samples for iOS and Android platforms also when option to build samples is enabled.
- Export all the Register*Library() global functions.
- Rewrite all the tools, samples, and extras targets to link against Urho3D library.

TODOs:
- Combine engine sub-libraries into one.
- Test builds on non-Linux platforms.
2013-10-21 02:28:29 +08:00
Yao Wei Tjong 姚伟忠
2af7dbdcd9 Move tolua++ add_subdirectory instruction from main to LuaScript.
This should be part of commit 5dbf83c418.
2013-10-20 00:14:00 +08:00
Lasse Öörni
30ce75fd68 LZ4 compressed package file support. Closes #6. 2013-10-12 15:03:17 +03:00
Yao Wei Tjong 姚伟忠
b5836237e9 Remove dependency on Lua when LuaJIT is enabled.
Change build option name from ENABLE_LUA_JIT to ENABLE_LUAJIT.
Change tolua++ lua scripts to be compatible with both LuaJIT and Lua. Replace toluabind.c with the corresponding bytecode.
2013-10-11 02:02:08 +08:00
Yao Wei Tjong
2b90804c6e Fixed LuaJIT build on Linux, both native and cross-compiling.
The following platforms should be now supported:
Windows, Linux, Mac OS X, IOS, Android, and Raspberry Pi. Not all platforms are fully tested yet.

Cross-compilation may work on GCC/CLang only.
2013-10-08 12:22:56 +08:00
weitjong
242f317ddd Configure Doxyfile according to the value of USE_OPENGL variable. 2013-10-03 17:41:17 +08:00
weitjong
11ffd62f0c Provide new batch and shell script to clean CMake cache for convenience and document it. Adjust line width of Readme.txt to prevent text overwrap in GitHub view. 2013-10-02 17:04:56 +08:00
Aster Jian
eccf0fefdd Set generated file to CMAKE_CURRENT_BINARY_DIR/generated folder. 2013-09-29 15:01:28 +00:00
Aster Jian
a570bb8ad6 Add LuaJIT support in LuaScript module, please use ENABLE_LUA_JIT to enable it, just test on Windows. 2013-09-29 14:38:03 +00:00
Wei Tjong Yao
09ba853aba Keep CMakeCache.txt in between build script invocation to speed things up. Correct typo error. 2013-09-26 20:56:42 +00:00
Lasse Öörni
26fabce801 Added Civetweb library for HTTP requests.
Implemented basic HTTP request functionality. Not exposed to script yet.
2013-09-09 21:58:24 +00:00
Lasse Öörni
04b00263b0 Moved CharacterDemo to the samples.
Use forward declarations in the samples.
2013-08-27 21:45:43 +00:00
Wei Tjong Yao
463ce2a65d Enabled option to build Urho3D static and shared library (without main entry point) for Android. Fixed debug compiler flags being defined multiple times for Android build. Added post-build command to strip the generated Urho3D shared library if it is built for embedded devices. Enhanced cmake_gcc.sh to automatically fix the generated Eclipse project setting files for Android build. 2013-08-25 08:08:52 +00:00
Lasse Öörni
056a071ed2 Adjusted physics sample materials. Let the boxes fall a bit in the beginning.
Copy export header only if it has changed to prevent unnecessary engine rebuild.
2013-08-22 06:30:41 +00:00
Wei Tjong Yao
594457df82 Removed line to define ENABLE_64BIT for Visual Studio based on cmake generator as the define must already been set explicitly when invoking cmake_vsxxxx.bat in order to get Win64 generator. Fixed the expression to check whether ENABLE_TOOLS is defined. Minor update on build options documentation. 2013-08-18 06:16:16 +00:00
Wei Tjong Yao
ccd6a926ae Added Urho3D library build option for IOS. 2013-08-16 08:56:55 +00:00
Lasse Öörni
a899f7293e Capitalize name of CMake script directory. 2013-08-13 20:51:20 +00:00
Wei Tjong Yao
02512cecf9 In order to move the out-of-source 'build' directory back to Urho3D project root directory, all the source codes sub-directories are now moved down one level to a new directory under project root called 'Source'. 2013-08-09 10:29:22 +00:00