-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
37 lines (27 loc) · 910 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
project(dyld)
cmake_minimum_required(VERSION 2.4.0)
set(dyld_SRCS
src/dyld_debug.c
src/dyldExceptions.c
src/dyldLibSystemGlue.c
src/glue.c
src/threadLocalVariables.c
src/dyldAPIs.cpp
# dyldAPIsInLibSystem.cpp
src/dyld.cpp
src/dyld_gdb.cpp
src/dyldInitialization.cpp
src/dyldLock.cpp
src/dyldNew.cpp
src/ImageLoader.cpp
src/ImageLoaderMachOClassic.cpp
src/ImageLoaderMachOCompressed.cpp
src/ImageLoaderMachO.cpp
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fblocks")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -std=c99")
add_definitions(-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1080 -D__APPLE__ -D__APPLE_CC__ -D__APPLE_CPP__ -D__BLOCKS__)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/mach-o)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/launch-cache)
add_library(dyld SHARED ${dyld_SRCS})