1 include(${CLR_DIR}/crossgen.cmake)
3 set(VM_CROSSGEN_SOURCES
14 ../clrprivbinderutil.cpp
19 ../custommarshalerinfo.cpp
21 ../baseassemblyspec.cpp
23 ../coreassemblyspec.cpp
39 ../ilinstrumentation.cpp
49 ../loaderallocator.cpp
54 ../methodtablebuilder.cpp
59 ../dllimportcallback.cpp
70 ../stackingallocator.cpp
81 ../versionresilienthashcode.cpp
85 ../crossgencompile.cpp
88 if(FEATURE_READYTORUN)
89 list(APPEND VM_CROSSGEN_SOURCES
92 endif(FEATURE_READYTORUN)
94 include_directories(BEFORE ..)
95 include_directories(${CLR_DIR}/src/gc)
96 include_directories(../${ARCH_SOURCES_DIR})
98 if(CLR_CMAKE_TARGET_ARCH_AMD64)
99 list(APPEND VM_CROSSGEN_SOURCES
100 ../${ARCH_SOURCES_DIR}/stublinkeramd64.cpp
102 elseif(CLR_CMAKE_TARGET_ARCH_I386)
103 list(APPEND VM_CROSSGEN_SOURCES
104 ../${ARCH_SOURCES_DIR}/stublinkerx86.cpp
107 elseif(CLR_CMAKE_TARGET_ARCH_ARM)
108 list(APPEND VM_CROSSGEN_SOURCES
109 ../${ARCH_SOURCES_DIR}/stubs.cpp
111 elseif(CLR_CMAKE_TARGET_ARCH_ARM64)
112 list(APPEND VM_CROSSGEN_SOURCES
113 ../${ARCH_SOURCES_DIR}/stubs.cpp
120 list(APPEND VM_CROSSGEN_SOURCES
122 ../clrprivbinderwinrt.cpp
123 ../clrprivtypecachewinrt.cpp
126 ../crossgenroparsetypename.cpp
127 ../crossgenroresolvenamespace.cpp
128 ../runtimecallablewrapper.cpp
130 ../winrttypenameconverter.cpp
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-")
138 if (CLR_CMAKE_PLATFORM_LINUX)
139 list(APPEND VM_CROSSGEN_SOURCES
143 endif (CLR_CMAKE_PLATFORM_LINUX)
145 add_library_clr(cee_crossgen ${VM_CROSSGEN_SOURCES})