aboutsummaryrefslogtreecommitdiff
path: root/cmake
AgeCommit message (Collapse)Author
2014-07-12Fix EMSCRIPTEN root path search in CMake toolchain file.Jukka Jylänki
2014-07-10Restore the soname symlink generation feature when using CMAKE_SYSTEM_NAME ↵Jukka Jylänki
"Emscripten", like the previous CMAKE_SYSTEM_NAME "Linux" did. This lets test_openjpeg generate output files with same file names as before the system name change.
2014-07-10After previous toolchain directory/include structure change, UNIX=1 was not ↵Jukka Jylänki
getting set by default, so set that to Emscripten CMake toolchain manually now.
2014-07-10Add explicit support for CMake CMakeBackwardsCompatibilityC.cmake detection ↵Jukka Jylänki
logic for Emscripten, without running through test builds which have issues with endianness detection.
2014-07-10Add CMake directive CMAKE_SIZEOF_INT=4 which openjpeg CMake detection was ↵Jukka Jylänki
missing.
2014-07-10Fix a long-standing CMake toolchain issue where the toolchain was not able ↵Jukka Jylänki
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-10Move CMake toolchain variable unset higher up in the file, and document it ↵Jukka Jylänki
better.
2014-06-27Fix CMAKE_FIND_ROOT_PATHJonas Platte
This allows projects and libraries using CMake to automatically find include directories and library files in the emscripten system directory. I am unsure why it was set to `${EMSCRIPTEN_ROOT_PATH}/cmake` before, but I tested it and it didn't work until I changed `cmake` to `system`. `CMAKE_FIND_ROOT_PATH` is documented [here](http://www.cmake.org/Wiki/CMake_Cross_Compiling#Searching_and_finding_external_software).
2014-05-28use response files for everything and remove unnecessary settingsMarkus Henschel
2014-04-14Store CMAKE_AR and CMAKE_RANLIB in CMake CACHE so that the values persist to ↵Jukka Jylänki
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-02-19Change compile options for MinSizeRelJoel Croteau
2014-01-03Update Emscripten CMake toolchain default flags to include -O2 also in ↵Jukka Jylänki
compile pass, not just at link time, and add -g to CMake RelWithDebInfo builds.
2013-12-30Add support for generating vs-tool Visual Studio project files from CMake ↵Jukka Jylänki
for building with Emscripten. This requires a custom build of CMake to work, since by default, CMake does not allow targeting other platforms than a few hardcoded ones ("win32", "x64", "itanium").
2013-12-24Fixed small problems which exhibit themself when building projects with too ↵Volo Zyko
many source files. When there are too many source files and one builds static libraray cmake splits the whole list of files into several invocations of library archiver. In order this to work cmake needs to know both how to create and how to append to archive. Another related issue is that emscripten code fails when links a final javascript code if a command line of a link command is too long (this 'too long' is very OS dependent). Related discussion can be found in issue #1931. Conflicts: AUTHORS
2013-11-17Fix browser.test_freealut on Windows by implementing a CMake build path for ↵Jukka Jylänki
that library.
2013-11-14CMake: only append to LINK_FLAGS if they existDaft-Freak
Prevents an error similar to: ERROR root: props-NOTFOUND: No such file or directory
2013-09-23Fix Emscripten CMake toolchain to generate proper static library archive ↵Jukka Jylänki
files with the AR tool instead of building LLVM bitcode files for archive files. Fixes #1648.
2013-09-18Remove code duplication on CMake link macros.Jukka Jylänki
2013-09-18Add functions em_link_js_library(), em_link_pre_js() and em_link_post_js() ↵Jukka Jylänki
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-11Add CMake helper function em_validate_asmjs_after_build() that adds an extra ↵Jukka Jylänki
post-build step to project to confirm that the build output is valid asm.js.
2013-09-04Remove default filename suffix specification in CMake toolchain, since ↵Jukka Jylänki
test_openjpeg will then fail to configure.
2013-09-04Remove the need to pass CMAKE_MODULE_PATH to CMake by weakly setting it in ↵Jukka Jylänki
the toolchain file.
2013-09-04Delete Emscripten_unix.cmake, the previous commit makes that obsolete!Jukka Jylänki
2013-09-04Improve CMake toolchain file to use response files. Avoid the compiler ↵Jukka Jylänki
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-04-07Use .bat files to route 'python emxxx' to 'emxxx' on Windows. Remove ↵Jukka Jylänki
reference to juj/vs-tool emxxx.exe in favor of the new .bat files.
2013-01-14Adjust default compiler and linker flags when using cmake. With emscripten, ↵Jukka Jylänki
-O2 is ignored when compiling .bc files, so pass it to linker instead.
2012-11-15Explicitly pass the emscripten compiler file suffixes to cmake on Windows to ↵Jukka Jylänki
fix cmake em++ invocation on Windows Vista.
2012-11-14Try to locate emcc in cmake based on the cmake toolchain directory structure ↵Jukka Jylänki
to avoid having to set EMSCRIPTEN environment variable on unix. Remove the temporary workaround for other.test_cmake, which shouldn't now be needed.
2012-11-12Update cmake scripts.Jukka Jylänki
2012-11-12Make separate cmake files for unix and windows cmake toolchains. On Windows, ↵Jukka Jylänki
specifying the absolute path to emcc causes cmake to fail. On Linux, one must specify absolute path to emcc, or cmake fails. Moreover, since this is a toolchain file that is describing the system, no cmake variables seem to be available to query the platform, so make these separate.
2012-11-12Added cmake toolchain file for Emscripten and a other.test_cmake to tests ↵Jukka Jylänki
its functionality.