Delete PEFingerPrint.* (#16325)
[platform/upstream/coreclr.git] / src / vm / crossgen / CMakeLists.txt
1 include(${CLR_DIR}/crossgen.cmake)
2
3 set(VM_CROSSGEN_SOURCES
4     ../class.cpp
5     ../appdomain.cpp
6     ../array.cpp
7     ../assembly.cpp
8     ../assemblyspec.cpp
9     ../binder.cpp
10     ../ceeload.cpp
11     ../ceemain.cpp
12     ../classhash.cpp
13     ../clrex.cpp
14     ../clrprivbinderutil.cpp
15     ../clsload.cpp
16     ../comdelegate.cpp
17     ../codeman.cpp
18     ../compile.cpp
19     ../custommarshalerinfo.cpp
20     ../domainfile.cpp
21     ../baseassemblyspec.cpp
22     ../corebindresult.cpp
23     ../coreassemblyspec.cpp
24     ../dataimage.cpp
25     ../decodemd.cpp
26     ../debuginfostore.cpp
27     ../ecall.cpp
28     ../eeconfig.cpp
29     ../eehash.cpp
30     ../eetwain.cpp
31     ../excep.cpp
32     ../field.cpp
33     ../fieldmarshaler.cpp
34     ../formattype.cpp
35     ../genericdict.cpp
36     ../generics.cpp
37     ../genmeth.cpp
38     ../hash.cpp
39     ../ilinstrumentation.cpp
40     ../ilmarshalers.cpp
41     ../ilstubcache.cpp
42     ../ilstubresolver.cpp
43     ../instmethhash.cpp
44     ../interoputil.cpp
45     ../invokeutil.cpp
46     ../inlinetracking.cpp
47     ../contractimpl.cpp
48     ../jitinterface.cpp
49     ../loaderallocator.cpp
50     ../memberload.cpp
51     ../method.cpp
52     ../methodimpl.cpp
53     ../methodtable.cpp
54     ../methodtablebuilder.cpp
55     ../mscorlib.cpp
56     ../stubcache.cpp
57     ../mlinfo.cpp
58     ../dllimport.cpp
59     ../dllimportcallback.cpp
60     ../pefile.cpp
61     ../peimage.cpp
62     ../peimagelayout.cpp
63     ../pendingload.cpp
64     ../precode.cpp
65     ../olevariant.cpp
66     ../siginfo.cpp
67     ../sigformat.cpp
68     ../simplerwlock.cpp
69     ../spinlock.cpp
70     ../stackingallocator.cpp
71     ../stubgen.cpp
72     ../stublink.cpp
73     ../typectxt.cpp
74     ../typedesc.cpp
75     ../typehandle.cpp
76     ../typehash.cpp
77     ../typeparse.cpp
78     ../typestring.cpp
79     ../util.cpp
80     ../vars.cpp
81     ../versionresilienthashcode.cpp
82     ../zapsig.cpp
83     ../gcinfodecoder.cpp
84     ../sha1.cpp
85     ../crossgencompile.cpp
86 )
87
88 if(FEATURE_READYTORUN)
89     list(APPEND VM_CROSSGEN_SOURCES
90       ../readytoruninfo.cpp
91     )
92 endif(FEATURE_READYTORUN)
93
94 include_directories(BEFORE ..)
95 include_directories(${CLR_DIR}/src/gc)
96 include_directories(../${ARCH_SOURCES_DIR})
97
98 if(CLR_CMAKE_TARGET_ARCH_AMD64)
99   list(APPEND VM_CROSSGEN_SOURCES 
100     ../${ARCH_SOURCES_DIR}/stublinkeramd64.cpp
101   )
102 elseif(CLR_CMAKE_TARGET_ARCH_I386)
103   list(APPEND VM_CROSSGEN_SOURCES 
104     ../${ARCH_SOURCES_DIR}/stublinkerx86.cpp
105     ../gcdecode.cpp
106   )
107 elseif(CLR_CMAKE_TARGET_ARCH_ARM)
108   list(APPEND VM_CROSSGEN_SOURCES 
109     ../${ARCH_SOURCES_DIR}/stubs.cpp
110   )
111 elseif(CLR_CMAKE_TARGET_ARCH_ARM64)
112   list(APPEND VM_CROSSGEN_SOURCES 
113     ../${ARCH_SOURCES_DIR}/stubs.cpp
114   )
115 else()
116   clr_unknown_arch()
117 endif()
118
119 if (WIN32)
120   list(APPEND VM_CROSSGEN_SOURCES
121     ../classcompat.cpp
122     ../clrprivbinderwinrt.cpp
123     ../clrprivtypecachewinrt.cpp
124     ../comtoclrcall.cpp
125     ../clrtocomcall.cpp
126     ../crossgenroparsetypename.cpp
127     ../crossgenroresolvenamespace.cpp
128     ../runtimecallablewrapper.cpp
129     ../winrthelpers.cpp
130     ../winrttypenameconverter.cpp
131   )
132
133   add_precompiled_header(common.h ../common.cpp VM_CROSSGEN_SOURCES)
134   # mscorlib.cpp does not compile with precompiled header file
135   set_source_files_properties(../mscorlib.cpp PROPERTIES COMPILE_FLAGS "/Y-")
136 endif (WIN32)
137
138 if (CLR_CMAKE_PLATFORM_LINUX)
139   list(APPEND VM_CROSSGEN_SOURCES
140     ../perfmap.cpp
141     ../perfinfo.cpp
142   )
143 endif (CLR_CMAKE_PLATFORM_LINUX)
144
145 add_library_clr(cee_crossgen ${VM_CROSSGEN_SOURCES})