diff options
author | Andreas Bergmeier <andreas.bergmeier@gmx.net> | 2013-05-19 19:31:15 +0200 |
---|---|---|
committer | Andreas Bergmeier <andreas.bergmeier@gmx.net> | 2013-05-20 10:30:07 +0200 |
commit | 367603568b18e2108d2f0b1a42cf7d3b9fec1862 (patch) | |
tree | c0318fbd9013e423e2a984b41034ec51170ed6a7 | |
parent | c013660606d8c3813ce5ca2437ee2a7cb209adaf (diff) |
Remove obsolete (and partly wrong) setup information for CMake and SCons. Use wrappers instead.
-rwxr-xr-x | emcc | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -28,34 +28,6 @@ Example uses: so it should relay everything to gcc/g++. You should not define that when running make, of course. - * With CMake, the same command will work (with cmake instead of ./configure). You may also be - able to do the following in your CMakeLists.txt: - - SET(CMAKE_C_COMPILER "PATH/emcc") - SET(CMAKE_CXX_COMPILER "PATH/em++") - SET(CMAKE_LINKER "PATH/emcc") - SET(CMAKE_CXX_LINKER "PATH/emcc") - SET(CMAKE_C_LINK_EXECUTABLE "PATH/emcc") - SET(CMAKE_CXX_LINK_EXECUTABLE "PATH/emcc") - SET(CMAKE_AR "PATH/emar") - SET(CMAKE_RANLIB "PATH/emranlib") - - * For SCons the shared.py can be imported like so: - __file__ = str(Dir('#/project_path_to_emscripten/dummy/dummy')) - __rootpath__ = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - def path_from_root(*pathelems): - return os.path.join(__rootpath__, *pathelems) - sys.path += [path_from_root('')] - from tools.shared import * - - For using the Emscripten compilers/linkers/etc. you can do: - env = Environment() - ... - env.Append(CCFLAGS = COMPILER_OPTS) - env.Replace(LINK = LLVM_LD) - env.Replace(LD = LLVM_LD) - TODO: Document all relevant setup changes - After setting that up, run your build system normally. Note the appearance of em++ instead of emcc |