Jukka Jylänki
|
6038404616
|
Fix a long-standing CMake toolchain issue where the toolchain was not able to specify a default suffix (.js) for generated executables and the suffix that was set got silently erased. Previously the default suffix was empty "", which meant all user CMakeLists.txt files had to explicitly specify the suffix. Fixing this adds support for CMake built-in check_function_exists() detection macro which is used e.g. by SDL2 CMakeLists.txt path. To build html files, add the directive 'SET(CMAKE_EXECUTABLE_SUFFIX ".html")' like before.
|
2014-07-10 19:45:30 +03:00 |
Jukka Jylänki
|
2f48a2ecb4
|
When using emconfigure/emcmake to invoke cmake toolchain, don't pass in EMMAKEN_JUST_CONFIGURE=1, since that breaks CMake configuration because CMake expects to be able to build identically at config and build time. This fixes CMake check_include_file() with Emscripten. Add tests to make sure that it doesn't regress.
|
2014-07-10 16:38:39 +03:00 |
Alon Zakai
|
28f1413d46
|
move check for noExitRuntime into exit(), and fix up tests
|
2014-07-09 13:28:27 -07:00 |
Jonas Platte
|
4f06dacd09
|
Added CMAKE_FIND_ROOT_PATH test
|
2014-06-30 23:52:00 +02:00 |
Markus Henschel
|
a408ad0341
|
add test for building shared and static libraries with cmake
|
2014-05-28 19:30:04 +02:00 |
Jukka Jylänki
|
cfecdac66f
|
Store CMAKE_AR and CMAKE_RANLIB in CMake CACHE so that the values persist to user CMake toolchain files. Also CACHE the variable Emscripten, in the hope of that fixing the visibility issue with variable. Some users have reported that in their CMakeLists.txt files the variable EMSCRIPTEN is not always visible, even though in the Emscripten cmake unit tests it always works. Fixes #2288. Thanks mhenschel!
|
2014-04-14 18:37:13 +03:00 |
Jukka Jylänki
|
d0b297107e
|
Add functions em_link_js_library(), em_link_pre_js() and em_link_post_js() to support linking .js files to executables, while doing dependency tracking on filestamp modifications. For more info, see https://groups.google.com/forum/#!topic/emscripten-discuss/uRbTIB62V7s .
|
2013-09-18 16:27:51 +03:00 |
Jukka Jylänki
|
75413a5f78
|
Use em_validate_asmjs_after_build() in CMake test.
|
2013-09-11 10:33:45 +03:00 |
Jukka Jylänki
|
270420f77d
|
Remove default filename suffix specification in CMake toolchain, since test_openjpeg will then fail to configure.
|
2013-09-04 10:42:08 +03:00 |
Jukka Jylänki
|
14f7179b85
|
Add a test to ensure that EMSCRIPTEN=1 variable is set in CMake when building.
|
2013-09-04 10:42:02 +03:00 |
Jukka Jylänki
|
9de7165f91
|
Improve CMake toolchain file to use response files. Avoid the compiler detection mechanism that could throw CMake off depending on what is in Windows PATH. Use CMAKE_EXECUTABLE_SUFFIX to specify whether to build .html or .js.
|
2013-09-04 10:41:59 +03:00 |
Jukka Jylänki
|
2b03402687
|
Added cmake toolchain file for Emscripten and a other.test_cmake to tests its functionality.
|
2012-11-12 21:14:20 +02:00 |