diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
commit | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch) | |
tree | 98110734c91668dfdbb126fcc0e15ddbd93738ca /src/utilcode/CMakeLists.txt | |
parent | fa45f57ed55137c75ac870356a1b8f76c84b229c (diff) | |
download | coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2 coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip |
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'src/utilcode/CMakeLists.txt')
-rw-r--r-- | src/utilcode/CMakeLists.txt | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/src/utilcode/CMakeLists.txt b/src/utilcode/CMakeLists.txt new file mode 100644 index 0000000000..9d35a7e641 --- /dev/null +++ b/src/utilcode/CMakeLists.txt @@ -0,0 +1,137 @@ + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +if(WIN32) + add_compile_options(/wd4996) +endif(WIN32) + +set(UTILCODE_COMMON_SOURCES + clrhost_nodependencies.cpp + ccomprc.cpp + ex.cpp + sbuffer.cpp + sstring_com.cpp + fstring.cpp + namespaceutil.cpp + makepath.cpp + splitpath.cpp + clrconfig.cpp + configuration.cpp + collections.cpp + posterror.cpp + fstream.cpp + clrhelpers.cpp + stgpool.cpp + stgpooli.cpp + stgpoolreadonly.cpp + utsem.cpp + peinformation.cpp + check.cpp + log.cpp + apithreadstress.cpp + arraylist.cpp + bitvector.cpp + comex.cpp + delayloadhelpers.cpp + guidfromname.cpp + jitperf.cpp + memorypool.cpp + iallocator.cpp + loaderheap.cpp + outstring.cpp + ilformatter.cpp + opinfo.cpp + dacutil.cpp + sortversioning.cpp + corimage.cpp + format1.cpp + prettyprintsig.cpp + regutil.cpp + sigbuilder.cpp + sigparser.cpp + sstring.cpp + util_nodependencies.cpp + utilmessagebox.cpp + safewrap.cpp + clrhost.cpp + cycletimer.cpp + md5.cpp + util.cpp + stresslog.cpp + debug.cpp + pedecoder.cpp + winfix.cpp + longfilepathwrappers.cpp + jithost.cpp +) + +# These source file do not yet compile on Linux. +# They should be moved out from here into the declaration +# of UTILCODE_SOURCES above after fixing compiler errors. +if(WIN32) + list(APPEND UTILCODE_COMMON_SOURCES + appxutil.cpp + dlwrap.cpp + downlevel.cpp + loadrc.cpp + newapis.cpp + securitywrapper.cpp + securityutil.cpp + stacktrace.cpp + ) + + if(CLR_CMAKE_PLATFORM_ARCH_I386 OR CLR_CMAKE_PLATFORM_ARCH_ARM) + list(APPEND UTILCODE_COMMON_SOURCES + lazycow.cpp + ) + endif() + + if(NOT DEFINED FEATURE_IMPLICIT_TLS) + list(APPEND UTILCODE_SOURCES + tls.cpp + ) + endif(NOT DEFINED FEATURE_IMPLICIT_TLS) +endif(WIN32) + +set(UTILCODE_SOURCES + ${UTILCODE_COMMON_SOURCES} + perflog.cpp +) + +if(WIN32) + if(NOT DEFINED FEATURE_IMPLICIT_TLS) + list(APPEND UTILCODE_SOURCES + tls.cpp + ) + endif(NOT DEFINED FEATURE_IMPLICIT_TLS) +endif() + +set(UTILCODE_DAC_SOURCES + ${UTILCODE_COMMON_SOURCES} + hostimpl.cpp +) + +set(UTILCODE_CROSSGEN_SOURCES + ${UTILCODE_COMMON_SOURCES} + hostimpl.cpp + perflog.cpp +) + +set(UTILCODE_STATICNOHOST_SOURCES + ${UTILCODE_COMMON_SOURCES} + hostimpl.cpp +) + +convert_to_absolute_path(UTILCODE_SOURCES ${UTILCODE_SOURCES}) +convert_to_absolute_path(UTILCODE_DAC_SOURCES ${UTILCODE_DAC_SOURCES}) +convert_to_absolute_path(UTILCODE_CROSSGEN_SOURCES ${UTILCODE_CROSSGEN_SOURCES}) +convert_to_absolute_path(UTILCODE_STATICNOHOST_SOURCES ${UTILCODE_STATICNOHOST_SOURCES}) + +if(CLR_CMAKE_PLATFORM_UNIX) + add_compile_options(-fPIC) +endif(CLR_CMAKE_PLATFORM_UNIX) + +add_subdirectory(dac) +add_subdirectory(dyncrt) +add_subdirectory(staticnohost) +add_subdirectory(crossgen) |