emscripten/cmake/Modules
Matt McCormick b206b9e304 Override CMake CheckTypeSize.
The CMake CheckTypeSize module is used by many projects to get sizes of types
for the target platform. Its standard implementation builds a file that
contains the type size with the try_compile command, then uses file(STRINGS on
the built function to extract the size from the contents of the built binary.

Since emscripten produces javascript and html instead of binaries, the string
is not embedded directly in the 'binary' as expected.  Alternatively, we use a
try_run and return the size of the type in the return value.
2015-05-12 09:58:03 -04:00
..
Platform Add support for CMAKE_CROSSCOMPILING_EMULATOR. 2015-05-12 09:57:57 -04:00
CMakeSystemSpecificInformation.cmake 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
CheckTypeSize.c.in Override CMake CheckTypeSize. 2015-05-12 09:58:03 -04:00
CheckTypeSize.cmake Override CMake CheckTypeSize. 2015-05-12 09:58:03 -04:00
FindOpenAL.cmake Fix browser.test_freealut on Windows by implementing a CMake build path for that library. 2013-11-17 22:06:03 +02:00
FindOpenGL.cmake added FindOpenGL 2014-11-01 03:21:34 -07:00
TestBigEndian.cmake Override CMake TestBigEndian. 2015-05-10 00:20:34 -04:00