Commit Graph

9869 Commits

Author SHA1 Message Date
urho3d-travis-ci
b8515b563f Travis CI: API documentation update at 2017-03-16 18:26:27 UTC.
[ci package]

Commit: 53d18649d4

Message: Redefine AutoRemoveMode where used in the Lua pkgs to prevent incorrect bindings code generation.
2017-03-16 18:26:27 +00:00
Lasse Öörni
53d18649d4 Redefine AutoRemoveMode where used in the Lua pkgs to prevent incorrect bindings code generation. 2017-03-16 20:17:13 +02:00
Lasse Öörni
3f177185eb Merge remote-tracking branch 'Enhex/master' 2017-03-16 19:20:01 +02:00
Enhex
0e2182b4e8 Updated sound effects Lua sample to use SetAutoRemoveMode() instead of nodes. 2017-03-15 21:15:56 +02:00
Enhex
a3795cfc3a Fix Doxygen comment 2017-03-15 21:15:37 +02:00
Lasse Öörni
a5ff4f43c6 Avoid calling asGetActiveContext() in template functions, as it might result in undefined symbol when used in application code with shared library Urho3D build. Make GetScriptContext() safe to call when it would return null. Provide function GetActiveASContext() (in ScriptInstance.h) as a wrapper. 2017-03-15 17:37:07 +02:00
Lasse Öörni
eccf7cef88 Added documentation chapter on scene graph events, and that individual component removals are not signaled when node is removed. Closes #1864. 2017-03-15 12:12:06 +02:00
Enhex
490d402d4f Updated sound effects AngelScript sample to use SetAutoRemoveMode() instead of nodes. 2017-03-15 01:10:47 +02:00
Enhex
516fcf18e5 Updated sound effects sample to use SetAutoRemoveMode() instead of nodes. 2017-03-14 23:58:59 +02:00
Lasse Öörni
8561254832 Remove no longer used function declaration. Closes #1861. 2017-03-14 11:34:11 +02:00
Lasse Öörni
21ead269a4 Set renderorder 0 to example alpha pass decal materials to make sure they render before e.g. particles. Closes #1862. 2017-03-14 11:32:10 +02:00
Lasse Öörni
8ad433138b Merge pull request #1857 from rokups/fix/jumpy_slider_knob
Fix jumping slider knob when it's size is fixed.
2017-03-12 18:03:06 +02:00
Rokas Kupstys
c92d668940 Fix jumping slider knob when it's size is fixed. 2017-03-11 17:34:01 +02:00
Lasse Öörni
5f0b5a6211 Fix ParticleEmitter finish event not working when emission is explicitly disabled with SetEmitting(false). Cleanup ParticleEmitter code. Closes #1854. 2017-03-11 16:25:17 +02:00
Lasse Öörni
1d995bcc7e Remove email / GD.net username from readme, as they do not represent preferred communication channels. 2017-03-11 13:38:21 +02:00
Yao Wei Tjong 姚伟忠
1bfd14e5f4 Minor documentation update to highlight EMSCRIPTEN_WASM build option.
[ci only: master] [skip appveyor]
2017-03-11 14:18:10 +08:00
Lasse Öörni
d27da7d81c Fix call to Vector & PODVector::EraseSwap(). Closes #1855. 2017-03-11 00:58:05 +02:00
Lasse Öörni
513f9592fa Prevent MSVC attempting to use the "strip" command when invoked through NMake in Release configuration. Closes #1851. 2017-03-10 13:45:33 +02:00
Yao Wei Tjong
106bfcb919 Merge pull request #1849 from iSLC/master
Remove duplicate macro in SDL windows joystick implementation.
2017-03-08 21:42:11 +08:00
Lasse Öörni
48a1f3dcdd Take fix from AngelScript WIP version to fix temp variable corruption. Remove now unnecessary fix from Editor script code. Closes #1850. 2017-03-08 14:26:52 +02:00
Sandu Liviu Catalin
d94a10f488 Remove duplicate macro in SDL windows joystick implementation. 2017-03-07 21:38:50 +02:00
Lasse Öörni
1b725367fc Place proper type check for StaticModel vs. AnimatedModel SetModel() into AngelScript API instead of StaticModel C++ code logging a warning and redirecting. Add a porting note related to this. 2017-03-07 17:36:58 +02:00
Lasse Öörni
ac821d21c1 Fix editor resource browser preview camera position and failure to assign model by drag & drop. Closes #1848. 2017-03-07 17:25:17 +02:00
Lasse Öörni
9999c44809 Fix resource browser scene node addition/removal getting reflected in the editor hierarchy window. 2017-03-07 16:55:52 +02:00
Yao Wei Tjong 姚伟忠
5579d1cca8 Prevent unnecessary incremental build due to git branch switching. 2017-03-06 23:09:50 +08:00
Yao Wei Tjong 姚伟忠
ff85c9522a Rename the module and toolchain names to follow new naming convention. 2017-03-06 22:12:27 +08:00
Yao Wei Tjong 姚伟忠
6b8e469d7d Adding a porting note for build system.
[ci only: Web] [skip appveyor]
2017-03-05 13:49:57 +08:00
Yao Wei Tjong 姚伟忠
0b443c9fd9 For CI - reduce the job number to 1 for Web STATIC CI build.
From the past few CI builds the fastcomp occasionally produced stack dump or other errors. Probably it requires more memory for this build configuration.
2017-03-05 08:46:37 +08:00
Yao Wei Tjong 姚伟忠
c9b45bf1f1 Allow generation of .js instead of .html as output for Web platform. 2017-03-05 08:46:37 +08:00
Yao Wei Tjong 姚伟忠
49996b1617 Minor documentation update and typo correction. 2017-03-05 08:46:37 +08:00
Yao Wei Tjong 姚伟忠
81d7b6a71b Rename CMake/Emscripten toolchain file to follow new naming convention. 2017-03-05 08:46:33 +08:00
Yao Wei Tjong 姚伟忠
6eef852fe2 When targeting WASM, allow memory growth and code gen that could trap. 2017-03-05 08:46:33 +08:00
Yao Wei Tjong 姚伟忠
7102a25409 For CI - disable web run tests as they are not reliable on Travis. 2017-03-05 08:46:29 +08:00
Yao Wei Tjong 姚伟忠
0b218946f3 For CI - add new WebAssembly CI build. 2017-03-05 08:46:29 +08:00
Yao Wei Tjong 姚伟忠
d7eded9178 Add new build option to enable WASM support.
Remove redundant Emscripten build option for pre-generating the system libraries because newer Emscripten version has fixed the cache lock issue.
2017-03-05 08:46:29 +08:00
Yao Wei Tjong 姚伟忠
75a5a06cd2 Make the CMake/Android toolchain file compatible with NDK 13c. 2017-03-05 08:46:22 +08:00
Yao Wei Tjong 姚伟忠
f1ac8a80e9 Minor refactor on CheckCompilerToolchain module. 2017-03-05 08:46:22 +08:00
Yao Wei Tjong 姚伟忠
0c88c99112 Allow possibility of building Urho3D without C++ exceptions feature.
Disallow Android build to turn off C++ RTTI feature.
2017-03-05 08:46:22 +08:00
Yao Wei Tjong 姚伟忠
2f8a80def4 Rewrite from scratch a new Android toolchain file.
The new toolchain file requires Android NDK r12b and above. Default to use 'arm-linux-androideabi-clang' toolchain and LLVM libc++ STL runtime.
Align all the compiler and linker flags according to new ndk-build configuration in Android NDK r12b, i.e. no more '-f[no-]strict-aliasing' and '-f[no-]omit-frame-pointer', but more stringent warnings check.
Improve over the old toolchain file where most of the options are now changeable after the initial configuration. The exceptions are ANDROID_NDK and ANDROID_TOOLCHAIN_NAME due to limitation of CMake.
Close #1441.
Other changes in this commit includes:
- Fix Android sample launcher app to support shared C++ STL runtime library.
- Remove temporary fix in FindUrho3D module as it is not required anymore with our new toolchain file.
- Fix Log::WriteRaw() method to pass the parameters correctly to __android_log_print() function.
- Fix enable_pch() macro to emit -fPIC compiler flags correctly based on target's POSITION_INDEPENDENT_CODE property.
- Fix linker flags for ld.bfd where it needs help to find the location of the rooted shared libraries. The flags are not required for ld.gold but they do no harm for gold linker.
- Enhance the CheckCompilerToolchain module to auto-detect if the NEON SIMD is enabled or not for Android build (based on the chosen ANDROID_ABI).
2017-03-05 08:45:40 +08:00
Yao Wei Tjong 姚伟忠
22542ec06d Adapt to newer CMake that identifies Clang on Apple as "AppleClang". 2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
06638436c0 Prevent *-PREFIX and *-SYSROOT changes after the initial configuration.
When in try_compile() mode, quickly obtain the previously cached values stored in the (inner scope) environment variables and bypass all the checks (which are already done when the toolchain file is being processed at the start of CMake run).
2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
f7e2303cab Use "SmileyHack" to inject CMake vars to get the right output suffix.
This fixes known issues with output binary suffix in the custom emscripten.toolchain.cmake and FindUrho3D.cmake modules.
2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
84ad86e79e Fix toolchain files to honor *-PREFIX and *-SYSROOT as build options.
Due to the CMake try_compile() limitation, initial build option values (i.e. not env-vars) were not visible to all the CMake checks during inital configuration, preventing the build option from functioning as expected.
2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
98bdf13583 Enhance toolchain files to first check on suitable ccache symlink.
If a suitable symlink is found in the standard ccache symlink directory then skip creating fallback symlink in the build tree.
2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
f32cbb72b0 Rename Urho3D-CMake-common.cmake module to UrhoCommon.cmake.
To be consistent with the other modules. Drop the '3D' simply because it sticks out in 'Urho3DCommon'.
2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
d64b2e9aeb Fix auto-detection of host tool for Android cross-compiling build.
After using CMAKE_SYSROOT in the android.toolchain.cmake module, CMake will only find Doxygen when CMAKE_FIND_ROOT_PATH_MODE_PROGRAM is set to to NEVER. It is actually weird why it was working before when it was set to ONLY previously.
2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
ffd24cafa1 Take advantage of CMAKE_SYSROOT available in the newer CMake.
Use CMAKE_SYSROOT to manage the sysroot automatically when cross-compiling instead of adding the '--sysroot' flag manually everywhere. We only need to add it manually in places where CMake does not, like in our custom GCC/Clang response file for PCH.
Differentiate between setting up header search path for system headers and for application headers so that GCC/Clang may suppress compilation warnings from the former, if any.
2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
2738ca2546 Skip subsequent processing of toolchain file during inital config. 2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
4fbe1ff134 Add custom command to automatically strip main target on Release build. 2017-03-05 08:45:39 +08:00
Yao Wei Tjong 姚伟忠
f7c9cfa95e Regex replace single bracket with double bracket in all shell scripts. 2017-03-05 08:45:38 +08:00