Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jekoritz@microsoft.com>2021-04-06 01:05:34 +0300
committerGitHub <noreply@github.com>2021-04-06 01:05:34 +0300
commit8d6cd81d8e3b0bfd602a321b582cf3d272842128 (patch)
tree38059897e8a2846a965a5ce717819924d050aee9 /src/coreclr/dlls
parent49653839ef21f0cd886ee24caaf404ccaa1ac27e (diff)
Reorganize CoreCLR native build to reduce CMake reconfigures when the build system is untouched (#49906)
Diffstat (limited to 'src/coreclr/dlls')
-rw-r--r--src/coreclr/dlls/clretwrc/CMakeLists.txt2
-rw-r--r--src/coreclr/dlls/dbgshim/CMakeLists.txt2
-rw-r--r--src/coreclr/dlls/mscordac/CMakeLists.txt6
-rw-r--r--src/coreclr/dlls/mscordbi/CMakeLists.txt2
-rw-r--r--src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt4
-rw-r--r--src/coreclr/dlls/mscorrc/CMakeLists.txt2
6 files changed, 10 insertions, 8 deletions
diff --git a/src/coreclr/dlls/clretwrc/CMakeLists.txt b/src/coreclr/dlls/clretwrc/CMakeLists.txt
index d2cb5cfae98..cc427efcde4 100644
--- a/src/coreclr/dlls/clretwrc/CMakeLists.txt
+++ b/src/coreclr/dlls/clretwrc/CMakeLists.txt
@@ -20,6 +20,6 @@ add_library_clr(clretwrc SHARED
)
# add the install targets
-install_clr(TARGETS clretwrc ADDITIONAL_DESTINATIONS sharedFramework)
+install_clr(TARGETS clretwrc DESTINATIONS . sharedFramework COMPONENT runtime)
add_dependencies(clretwrc eventing_headers)
diff --git a/src/coreclr/dlls/dbgshim/CMakeLists.txt b/src/coreclr/dlls/dbgshim/CMakeLists.txt
index 1092799c866..5f323b24339 100644
--- a/src/coreclr/dlls/dbgshim/CMakeLists.txt
+++ b/src/coreclr/dlls/dbgshim/CMakeLists.txt
@@ -84,4 +84,4 @@ endif(CLR_CMAKE_HOST_WIN32)
target_link_libraries(dbgshim ${DBGSHIM_LIBRARIES})
# add the install targets
-install_clr(TARGETS dbgshim ADDITIONAL_DESTINATIONS sharedFramework)
+install_clr(TARGETS dbgshim DESTINATIONS . sharedFramework COMPONENT runtime)
diff --git a/src/coreclr/dlls/mscordac/CMakeLists.txt b/src/coreclr/dlls/mscordac/CMakeLists.txt
index 3ec2b964454..327560a030d 100644
--- a/src/coreclr/dlls/mscordac/CMakeLists.txt
+++ b/src/coreclr/dlls/mscordac/CMakeLists.txt
@@ -98,7 +98,7 @@ endif(CLR_CMAKE_HOST_WIN32)
# Create object library to enable creation of proper dependency of mscordaccore.exp on mscordac.obj and
# mscordaccore on both the mscordaccore.exp and mscordac.obj.
-_add_library(mscordacobj OBJECT mscordac.cpp)
+add_library_clr(mscordacobj OBJECT mscordac.cpp)
add_library_clr(mscordaccore SHARED ${CLR_DAC_SOURCES} $<TARGET_OBJECTS:mscordacobj>)
@@ -193,7 +193,7 @@ endif(CLR_CMAKE_HOST_UNIX)
target_link_libraries(mscordaccore PRIVATE ${COREDAC_LIBRARIES})
# add the install targets
-install_clr(TARGETS mscordaccore ADDITIONAL_DESTINATIONS sharedFramework)
+install_clr(TARGETS mscordaccore DESTINATIONS . sharedFramework COMPONENT runtime)
if(CLR_CMAKE_HOST_WIN32)
set(LONG_NAME_HOST_ARCH ${CLR_CMAKE_HOST_ARCH})
@@ -210,5 +210,5 @@ if(CLR_CMAKE_HOST_WIN32)
string(REGEX MATCH "#define VER_FILEVERSION[ \t]+[0-9]+(,[0-9]+)+" FILE_VERSION_LINE "${NATIVE_VERSION_HEADER}")
string(REGEX MATCHALL "[0-9]+" FILE_VERSION_COMPONENTS "${FILE_VERSION_LINE}")
list(JOIN FILE_VERSION_COMPONENTS "." FILE_VERSION)
- install(FILES $<TARGET_FILE:mscordaccore> RENAME mscordaccore_${LONG_NAME_HOST_ARCH}_${LONG_NAME_TARGET_ARCH}_${FILE_VERSION}.dll DESTINATION sharedFramework)
+ install(FILES $<TARGET_FILE:mscordaccore> RENAME mscordaccore_${LONG_NAME_HOST_ARCH}_${LONG_NAME_TARGET_ARCH}_${FILE_VERSION}.dll DESTINATION sharedFramework COMPONENT runtime)
endif()
diff --git a/src/coreclr/dlls/mscordbi/CMakeLists.txt b/src/coreclr/dlls/mscordbi/CMakeLists.txt
index f000748bee0..cc4b5664e65 100644
--- a/src/coreclr/dlls/mscordbi/CMakeLists.txt
+++ b/src/coreclr/dlls/mscordbi/CMakeLists.txt
@@ -120,4 +120,4 @@ elseif(CLR_CMAKE_HOST_UNIX)
endif(CLR_CMAKE_HOST_WIN32)
# add the install targets
-install_clr(TARGETS mscordbi ADDITIONAL_DESTINATIONS sharedFramework)
+install_clr(TARGETS mscordbi DESTINATIONS . sharedFramework COMPONENT runtime)
diff --git a/src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt b/src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt
index 09897cd7753..2df7852c304 100644
--- a/src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt
+++ b/src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt
@@ -219,6 +219,7 @@ if(CLR_CMAKE_TARGET_WIN32)
if(NOT DEFINED CLR_CROSS_COMPONENTS_BUILD)
add_custom_target(inject_debug_resources_coreclr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/inject_debug_resources_coreclr.timestamp)
+ add_dependencies(runtime inject_debug_resources_coreclr)
endif()
add_custom_command(
@@ -240,11 +241,12 @@ if(CLR_CMAKE_TARGET_WIN32)
if(NOT DEFINED CLR_CROSS_COMPONENTS_BUILD)
add_custom_target(inject_debug_resources_singlefilehost ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/inject_debug_resources_singlefilehost.timestamp)
+ add_dependencies(runtime inject_debug_resources_singlefilehost)
endif()
endif(CLR_CMAKE_TARGET_WIN32)
# add the install targets
-install_clr(TARGETS coreclr ADDITIONAL_DESTINATIONS sharedFramework)
+install_clr(TARGETS coreclr DESTINATIONS . sharedFramework COMPONENT runtime)
# Enable profile guided optimization
add_pgo(coreclr)
diff --git a/src/coreclr/dlls/mscorrc/CMakeLists.txt b/src/coreclr/dlls/mscorrc/CMakeLists.txt
index 040b12a240a..c6618f0b77b 100644
--- a/src/coreclr/dlls/mscorrc/CMakeLists.txt
+++ b/src/coreclr/dlls/mscorrc/CMakeLists.txt
@@ -15,7 +15,7 @@ if(CLR_CMAKE_HOST_WIN32)
include.rc
)
- install_clr(TARGETS mscorrc ADDITIONAL_DESTINATIONS sharedFramework)
+ install_clr(TARGETS mscorrc DESTINATIONS . sharedFramework COMPONENT runtime)
else()
build_resources(${CMAKE_CURRENT_SOURCE_DIR}/include.rc mscorrc TARGET_CPP_FILE)