forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
78 lines (69 loc) · 2.08 KB
/
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
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
72
73
74
75
76
77
78
set(MDCOMPILER_SOURCES
assemblymd.cpp
assemblymd_emit.cpp
classfactory.cpp
custattr_import.cpp
custattr_emit.cpp
disp.cpp
emit.cpp
filtermanager.cpp
helper.cpp
import.cpp
importhelper.cpp
mdutil.cpp
regmeta.cpp
regmeta_compilersupport.cpp
regmeta_emit.cpp
regmeta_import.cpp
regmeta_imetadatatables.cpp
regmeta_vm.cpp
)
set(MDCOMPILER_HEADERS
../../inc/corhdr.h
../../inc/corpriv.h
../../inc/mdcommon.h
../../inc/metadata.h
../../inc/posterror.h
../../inc/sstring.h
../../inc/switches.h
../inc/cahlprinternal.h
../inc/mdlog.h
../inc/metamodelrw.h
../inc/rwutil.h
../inc/stgio.h
classfactory.h
custattr.h
disp.h
filtermanager.h
importhelper.h
mdutil.h
regmeta.h
)
set(MDCOMPILER_WKS_SOURCES
${MDCOMPILER_SOURCES}
verifylayouts.cpp
)
set(MDCOMPILER_WKS_HEADERS
${MDCOMPILER_HEADERS}
../inc/verifylayouts.h
)
convert_to_absolute_path(MDCOMPILER_SOURCES ${MDCOMPILER_SOURCES})
convert_to_absolute_path(MDCOMPILER_HEADERS ${MDCOMPILER_HEADERS})
convert_to_absolute_path(MDCOMPILER_WKS_SOURCES ${MDCOMPILER_WKS_SOURCES})
convert_to_absolute_path(MDCOMPILER_WKS_HEADERS ${MDCOMPILER_WKS_HEADERS})
if (CLR_CMAKE_TARGET_WIN32)
list(APPEND MDCOMPILER_SOURCES ${MDCOMPILER_HEADERS})
list(APPEND MDCOMPILER_WKS_SOURCES ${MDCOMPILER_WKS_HEADERS})
endif()
add_library_clr(mdcompiler_dac ${MDCOMPILER_SOURCES})
set_target_properties(mdcompiler_dac PROPERTIES DAC_COMPONENT TRUE)
target_precompile_headers(mdcompiler_dac PRIVATE stdafx.h)
add_library_clr(mdcompiler_wks OBJECT ${MDCOMPILER_WKS_SOURCES})
target_compile_definitions(mdcompiler_wks PRIVATE FEATURE_METADATA_EMIT_ALL)
target_precompile_headers(mdcompiler_wks PRIVATE stdafx.h)
add_library_clr(mdcompiler-dbi ${MDCOMPILER_SOURCES})
set_target_properties(mdcompiler-dbi PROPERTIES DBI_COMPONENT TRUE)
target_precompile_headers(mdcompiler-dbi PRIVATE stdafx.h)
add_library_clr(mdcompiler_ppdb ${MDCOMPILER_SOURCES})
target_compile_definitions(mdcompiler_ppdb PRIVATE FEATURE_METADATA_EMIT_ALL FEATURE_METADATA_EMIT_PORTABLE_PDB)
target_precompile_headers(mdcompiler_ppdb PRIVATE stdafx.h)