Refactor cmake scripts.
Do not use bundled libobjc on Darwin. Refactor cmake scritps: introduce os.cmake, arch.cmake, compiler.cmake, libobjc.cmake, luajit.cmake. Remove the hack with building libobjc/luajit as a dependency on cfg. Do not specify -ggdb when compiling with clang. Add -fno-objc-legacy-dispatch and -fobjc-nonfragile-abi when compiling with CLang on Linux. Remove -fgnu-runtime when compiling with gcc on Mac. Many minor cleanups.
Showing
- CMakeLists.txt 6 additions, 155 deletionsCMakeLists.txt
- cfg/CMakeLists.txt 0 additions, 3 deletionscfg/CMakeLists.txt
- cmake/arch.cmake 16 additions, 0 deletionscmake/arch.cmake
- cmake/compiler.cmake 114 additions, 0 deletionscmake/compiler.cmake
- cmake/libobjc.cmake 48 additions, 0 deletionscmake/libobjc.cmake
- cmake/luajit.cmake 57 additions, 1 deletioncmake/luajit.cmake
- cmake/os.cmake 29 additions, 0 deletionscmake/os.cmake
- src/CMakeLists.txt 1 addition, 6 deletionssrc/CMakeLists.txt
- third_party/CMakeLists.txt 1 addition, 93 deletionsthird_party/CMakeLists.txt
Loading
Please register or sign in to comment