-add_subdirectory(sample)
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR})
+include_directories(BEFORE ${CLR_DIR}/src/vm)
+include_directories(BEFORE ${CLR_DIR}/src/vm/${ARCH_SOURCES_DIR})
+
+if(CLR_CMAKE_PLATFORM_UNIX)
+ add_compile_options(-fPIC)
+endif(CLR_CMAKE_PLATFORM_UNIX)
+
+if(CMAKE_CONFIGURATION_TYPES)
+ foreach (Config DEBUG CHECKED)
+ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:${Config}>:WRITE_BARRIER_CHECK=1>)
+ endforeach (Config)
+else()
+ if(UPPERCASE_CMAKE_BUILD_TYPE STREQUAL DEBUG OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL CHECKED)
+ add_definitions(-DWRITE_BARRIER_CHECK=1)
+ endif(UPPERCASE_CMAKE_BUILD_TYPE STREQUAL DEBUG OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL CHECKED)
+endif(CMAKE_CONFIGURATION_TYPES)
+
+set( GC_SOURCES_DAC_AND_WKS_COMMON
+ gccommon.cpp
+ gcscan.cpp
+ gcsvr.cpp
+ gcwks.cpp
+ handletable.cpp
+ handletablecore.cpp
+ handletablescan.cpp
+ objecthandle.cpp
+ softwarewritewatch.cpp)
+
+set( GC_SOURCES_WKS
+ ${GC_SOURCES_DAC_AND_WKS_COMMON}
+ gceesvr.cpp
+ gceewks.cpp
+ handletablecache.cpp)
+
+set( GC_SOURCES_DAC
+ ${GC_SOURCES_DAC_AND_WKS_COMMON})
+
+convert_to_absolute_path(GC_SOURCES_WKS ${GC_SOURCES_WKS})
+convert_to_absolute_path(GC_SOURCES_DAC ${GC_SOURCES_DAC})
+
+add_subdirectory(wks)
+add_subdirectory(dac)
#pragma once
-#define _CRT_SECURE_NO_WARNINGS
+#ifndef _CRT_SECURE_NO_WARNINGS
+ #define _CRT_SECURE_NO_WARNINGS
+#endif // _CRT_SECURE_NO_WARNINGS
#include <stdint.h>
#include <stddef.h>
formattype.cpp
fptrstubs.cpp
frames.cpp
- ../gc/gccommon.cpp
- ../gc/gcscan.cpp
- ../gc/gcsvr.cpp
- ../gc/gcwks.cpp
genericdict.cpp
generics.cpp
- ../gc/handletable.cpp
- ../gc/handletablecore.cpp
- ../gc/handletablescan.cpp
hash.cpp
hillclimbing.cpp
ilstubcache.cpp
methoditer.cpp
methodtable.cpp
object.cpp
- ../gc/objecthandle.cpp
pefile.cpp
peimage.cpp
peimagelayout.cpp
securitydescriptorassembly.cpp
sigformat.cpp
siginfo.cpp
- ../gc/softwarewritewatch.cpp
stackwalk.cpp
stublink.cpp
stubmgr.cpp
gcenv.os.cpp
gchelpers.cpp
genmeth.cpp
- ../gc/gceesvr.cpp
- ../gc/gceewks.cpp
- ../gc/handletablecache.cpp
hosting.cpp
ibclogger.cpp
ilmarshalers.cpp