1 include_directories("inc")
2 include_directories("strongname/inc")
3 include_directories("inc/winrt")
4 include_directories("debug/inc")
5 include_directories("debug/inc/${ARCH_SOURCES_DIR}")
6 include_directories("debug/inc/dump")
7 include_directories("md/inc")
8 include_directories("classlibnative/bcltype")
9 include_directories("classlibnative/cryptography")
10 include_directories("classlibnative/inc")
11 include_directories("${GENERATED_INCLUDE_DIR}")
13 if(WIN32 AND FEATURE_EVENT_TRACE)
14 include_directories("${GENERATED_INCLUDE_DIR}/etw")
15 endif(WIN32 AND FEATURE_EVENT_TRACE)
18 if(CLR_CMAKE_PLATFORM_UNIX)
19 if(CLR_CMAKE_PLATFORM_LINUX)
20 if(CLR_CMAKE_PLATFORM_UNIX_AMD64 OR CLR_CMAKE_PLATFORM_UNIX_ARM)
21 add_subdirectory(debug/createdump)
23 endif(CLR_CMAKE_PLATFORM_LINUX)
25 add_subdirectory(ToolBox/SOS/Strike)
27 # Include the dummy c++ include files
28 include_directories("pal/inc/rt/cpp")
30 # This prevents inclusion of standard C compiler headers
31 add_compile_options(-nostdinc)
33 set (NATIVE_RESOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/nativeresources)
34 include_directories(${NATIVE_RESOURCE_DIR})
35 set (RC_TO_CPP ${NATIVE_RESOURCE_DIR}/rctocpp.awk)
36 set (PROCESS_RC ${NATIVE_RESOURCE_DIR}/processrc.awk)
37 set (RESOURCE_STRING_HEADER_DIR ${NATIVE_RESOURCE_DIR})
39 # Create a command to create a C++ source file containing an array of
40 # NativeStringResource structs which represent the information from a
41 # given Windows .rc file. The target C++ file path is returned in the
42 # variable specified by the TARGET_FILE parameter.
43 function(build_resources SOURCE TARGET_NAME TARGET_FILE)
45 get_compile_definitions(PREPROCESS_DEFINITIONS)
46 get_include_directories(INCLUDE_DIRECTORIES)
48 set(PREPROCESSED_SOURCE ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}.rc.i)
49 set(RESOURCE_ENTRY_ARRAY_CPP ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}.cpp)
52 OUTPUT ${RESOURCE_ENTRY_ARRAY_CPP}
53 # Preprocess the windows .rc file
54 COMMAND ${CMAKE_CXX_COMPILER} -E -P ${PREPROCESS_DEFINITIONS} ${INCLUDE_DIRECTORIES} -o ${PREPROCESSED_SOURCE} -x c ${SOURCE}
55 # Convert the preprocessed .rc file to a C++ file which will be used to make a static lib.
56 COMMAND ${AWK} -v name=${TARGET_NAME} -f ${RC_TO_CPP} -f ${PROCESS_RC} ${PREPROCESSED_SOURCE} >${RESOURCE_ENTRY_ARRAY_CPP}
57 DEPENDS ${SOURCE} ${RC_TO_CPP} ${PROCESS_RC}
60 include_directories(${RESOURCE_STRING_HEADER_DIR})
61 set(${TARGET_FILE} ${RESOURCE_ENTRY_ARRAY_CPP} PARENT_SCOPE)
65 add_subdirectory(nativeresources)
66 endif(CLR_CMAKE_PLATFORM_UNIX)
68 add_subdirectory(utilcode)
69 add_subdirectory(gcinfo)
70 add_subdirectory(coreclr)
74 add_subdirectory(debug)
76 add_subdirectory(strongname)
77 add_subdirectory(binder)
78 add_subdirectory(classlibnative)
79 add_subdirectory(dlls)
80 add_subdirectory(ToolBox)
81 add_subdirectory(tools)
82 add_subdirectory(unwinder)
83 add_subdirectory(ildasm)
84 add_subdirectory(ilasm)
87 add_subdirectory(ipcman)
90 if(CLR_CMAKE_PLATFORM_UNIX)
91 add_subdirectory(palrt)
92 endif(CLR_CMAKE_PLATFORM_UNIX)