[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 13 Jun 2011 10:36:40 +0000 (10:36 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 13 Jun 2011 10:36:40 +0000 (10:36 +0000)
commit4c941247b4123a561d9c92808a76abd9dc5802ee
tree40af3909603b138a148caf0ef6a774f9c6f9f0a2
parente2247207e135d32f1c0eb4800e6b3c7242bfcb51
[CMAKE]
* Move cmake files to the cmake folder.
* Rename msc.cmake to msvc.cmake and toolchain-mingw32.cmake to toolchain-gcc.cmake.
* Add compilerflags.cmake to group macros that handle different compiler flags.
* Move add_linkerflag and set_unicode macros to compilerflags.cmake. They were duplicated in gcc.cmake and msvc.cmake.
* Add add_compiler_flags macro to handle CMAKE_C_FLAGS and CMAKE_CXX_FLAGS properly, and replace add_definitions calls with add_compiler_flags calls when we're adding compiler flags, not definitions.
* Reorganize gcc.cmake to have compiler flags then linking and compiling rules.
* Move CMAKE_ASM_COMPILE_OBJECT out of toolchain-gcc.cmake into gcc.cmake and add ${CMAKE_C_FLAGS} to it, now that flags are properly set.
* Don't pass <FLAGS> (compiler flags) when linking.
* Without the (commented out) linker script flag, CMAKE_SHARED_LINKER_FLAGS_INIT is the same for both i386 and amd64. Deduplicate it.
* Fix CMAKE_C_STANDARD_LIBRARIES comment.
* Use <FLAGS> in msvc CMAKE_ASM_COMPILE_OBJECT instead of manual includes.
* Don't set ntdllsys linker language to C, it's an asm lib.
* Remove ros_cd.cmake as it's not needed anymore.
* Define _CRT_SECURE_NO_WARNINGS when compiling host tools with msvc.

svn path=/trunk/; revision=52210
15 files changed:
reactos/CMakeLists.txt
reactos/cmake/CMakeMacros.cmake [moved from reactos/CMakeMacros.cmake with 100% similarity]
reactos/cmake/baseaddress.cmake [moved from reactos/baseaddress.cmake with 100% similarity]
reactos/cmake/compilerflags.cmake [new file with mode: 0644]
reactos/cmake/config-amd64.cmake [moved from reactos/config-amd64.cmake with 100% similarity]
reactos/cmake/config-arm.cmake [moved from reactos/config-arm.cmake with 100% similarity]
reactos/cmake/config.cmake [moved from reactos/config.cmake with 100% similarity]
reactos/cmake/gcc.cmake [moved from reactos/gcc.cmake with 89% similarity]
reactos/cmake/msvc.cmake [moved from reactos/msc.cmake with 89% similarity]
reactos/configure.cmd
reactos/configure.sh
reactos/ntoskrnl/CMakeLists.txt
reactos/ros_cd.cmake [deleted file]
reactos/toolchain-gcc.cmake [moved from reactos/toolchain-mingw32.cmake with 67% similarity]
reactos/tools/CMakeLists.txt