blob: f16c188c3cf46b92a573b0176dd430772c0afdb3 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
project(crossgen)
include(${CLR_DIR}/crossgen.cmake)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(../util)
include_directories(../../pal/prebuilt/corerror)
set(crossgen_SOURCES crossgen.cpp ../util/consoleargs.cpp)
if(WIN32)
set(crossgen_RESOURCES Native.rc)
add_definitions(-D_CRT_NON_CONFORMING_WCSTOK)
endif()
if(CLR_CMAKE_PLATFORM_UNIX)
add_compile_options(-fPIE)
endif(CLR_CMAKE_PLATFORM_UNIX)
add_definitions(-DFX_VER_INTERNALNAME_STR=crossgen.exe)
add_definitions(-DNO_NGENPDB)
add_executable_clr(crossgen
${crossgen_SOURCES}
${crossgen_RESOURCES}
)
target_link_libraries(crossgen
cee_crossgen
mdcompiler_crossgen
mdruntime_crossgen
mdruntimerw_crossgen
mdhotdata_crossgen
corguids
clrjit_crossgen
gcinfo_crossgen
corzap_crossgen
mscorlib_crossgen
strongname_crossgen
utilcode_crossgen
v3binder_crossgen
)
if(CLR_CMAKE_PLATFORM_UNIX)
target_link_libraries(crossgen
mscorrc_debug
coreclrpal
palrt
)
else()
target_link_libraries(crossgen
advapi32
ole32
oleaut32
uuid
user32
version
shlwapi
bcrypt
mdwinmd_crossgen
${STATIC_MT_CRT_LIB}
${STATIC_MT_VCRT_LIB}
)
endif(CLR_CMAKE_PLATFORM_UNIX)
add_subdirectory(../../zap/crossgen ../../zap/crossgen)
add_subdirectory(../../vm/crossgen ../../vm/crossgen)
add_subdirectory(../../vm/crossgen_mscorlib ../../vm/crossgen_mscorlib)
# add the install targets
install_clr(crossgen)
|