OLD | NEW |
1 # Cross-compiling requires CMake 2.6 or newer. To cross-compile, first modify | 1 # Cross-compiling requires CMake 2.6 or newer. To cross-compile, first modify |
2 # this file to set the proper settings and paths. Then use it from build/ like: | 2 # this file to set the proper settings and paths. Then use it from build/ like: |
3 # cmake .. -DCMAKE_TOOLCHAIN_FILE=../XCompile.txt \ | 3 # cmake .. -DCMAKE_TOOLCHAIN_FILE=../XCompile.txt \ |
4 # -DCMAKE_INSTALL_PREFIX=/usr/mingw32/mingw | 4 # -DCMAKE_INSTALL_PREFIX=/usr/mingw32/mingw |
5 # If you already have a toolchain file setup, you may use that instead of this | 5 # If you already have a toolchain file setup, you may use that instead of this |
6 # file. | 6 # file. |
7 | 7 |
8 SET(NACL 1) | 8 SET(NACL 1) |
9 | 9 |
10 # the name of the target operating system | 10 # the name of the target operating system |
(...skipping 19 matching lines...) Expand all Loading... |
30 SET(DUMMY_VALUE ${CMAKE_TOOLCHAIN_FILE} ${CMAKE_PREFIX_PATH}) | 30 SET(DUMMY_VALUE ${CMAKE_TOOLCHAIN_FILE} ${CMAKE_PREFIX_PATH}) |
31 | 31 |
32 # adjust the default behaviour of the FIND_XXX() commands: | 32 # adjust the default behaviour of the FIND_XXX() commands: |
33 # search headers and libraries in the target environment, search | 33 # search headers and libraries in the target environment, search |
34 # programs in the host environment | 34 # programs in the host environment |
35 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | 35 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) |
36 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | 36 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) |
37 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | 37 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
38 SET(CMAKE_REQUIRED_INCLUDES "${NACL_SDK_ROOT}/include") | 38 SET(CMAKE_REQUIRED_INCLUDES "${NACL_SDK_ROOT}/include") |
39 LINK_DIRECTORIES(${NACL_SDK_LIBDIR}) | 39 LINK_DIRECTORIES(${NACL_SDK_LIBDIR}) |
40 INCLUDE_DIRECTORIES(${NACL_SDK_ROOT}/include) | |
41 INCLUDE_DIRECTORIES(${EXTRA_INCLUDE}) | |
42 | 40 |
43 # nacl abi says 32bits little endian | 41 # nacl abi says 32bits little endian |
44 SET(CMAKE_SIZEOF_VOID_P 4) | 42 SET(CMAKE_SIZEOF_VOID_P 4) |
OLD | NEW |