Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/Subsets.props
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
<_subset>$(_subset.Replace('+host+', '+$(DefaultHostSubsets)+'))</_subset>
<_subset>$(_subset.Replace('+packs+', '+$(DefaultPacksSubsets)+'))</_subset>
<_subset>$(_subset.Replace('+bootstrap+', '+bootstrap+$(BootstrapSubsets)+'))</_subset>
<_subset Condition="'$(TargetOS)' == 'browser'">$(_subset.Replace('+clr.runtime+', '+mono.emsdk+clr.runtime+'))</_subset>
<_subset Condition="'$(TargetOS)' == 'browser'">$(_subset.Replace('+clr.runtime+', '+mono.emsdk+clr.corelib+clr.runtime+'))</_subset>

<!-- Surround _subset in dashes to simplify checks below -->
<_subset>+$(_subset.Trim('+'))+</_subset>
Expand Down
28 changes: 23 additions & 5 deletions eng/native/functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,29 @@ function(install_clr)
endif()

foreach(destination ${destinations})
# We don't need to install the export libraries for our DLLs
# since they won't be directly linked against.
install(PROGRAMS $<TARGET_FILE:${targetName}> DESTINATION ${destination} COMPONENT ${INSTALL_CLR_COMPONENT} ${INSTALL_CLR_OPTIONAL})
if (NOT "${symbolFile}" STREQUAL "")
install_symbol_file(${symbolFile} ${destination} COMPONENT ${INSTALL_CLR_COMPONENT} ${INSTALL_CLR_OPTIONAL})
# CMake bug with executable WASM outputs - https://gitlab.kitware.com/cmake/cmake/-/issues/20745
if (CLR_CMAKE_TARGET_ARCH_WASM AND "${targetType}" STREQUAL "EXECUTABLE")
# Use install FILES since these are WASM assets that aren't executable.
install(FILES
"$<TARGET_FILE_DIR:${targetName}>/${targetName}.js"
"$<TARGET_FILE_DIR:${targetName}>/${targetName}.wasm"
DESTINATION ${destination} COMPONENT ${INSTALL_CLR_COMPONENT} ${INSTALL_CLR_OPTIONAL})

# Conditionally check for and copy any extra data file at install time.
install(CODE
"
if(EXISTS \"$<TARGET_FILE_DIR:${targetName}>/${targetName}.data\")
file(INSTALL \"$<TARGET_FILE_DIR:${targetName}>/${targetName}.data\" DESTINATION \"${CMAKE_INSTALL_PREFIX}/${destination}\")
endif()
"
COMPONENT ${INSTALL_CLR_COMPONENT} ${INSTALL_CLR_OPTIONAL})
else()
# We don't need to install the export libraries for our DLLs
# since they won't be directly linked against.
install(PROGRAMS $<TARGET_FILE:${targetName}> DESTINATION ${destination} COMPONENT ${INSTALL_CLR_COMPONENT} ${INSTALL_CLR_OPTIONAL})
if (NOT "${symbolFile}" STREQUAL "")
install_symbol_file(${symbolFile} ${destination} COMPONENT ${INSTALL_CLR_COMPONENT} ${INSTALL_CLR_OPTIONAL})
endif()
endif()

if(CLR_CMAKE_PGO_INSTRUMENT)
Expand Down
9 changes: 1 addition & 8 deletions src/coreclr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ if(CLR_CMAKE_HOST_UNIX)
endif()

add_subdirectory(pal)

if(NOT CLR_CMAKE_HOST_MACCATALYST AND NOT CLR_CMAKE_HOST_IOS AND NOT CLR_CMAKE_HOST_TVOS)
add_subdirectory(hosts)
endif()
else()
if(CLR_CMAKE_TARGET_UNIX)
add_subdirectory(${CLR_SRC_NATIVE_DIR}/external/libunwind_extras ${CLR_ARTIFACTS_OBJ_DIR}/external/libunwind)
Expand Down Expand Up @@ -311,8 +307,5 @@ endif()

if(NOT CLR_CMAKE_HOST_MACCATALYST AND NOT CLR_CMAKE_HOST_IOS AND NOT CLR_CMAKE_HOST_TVOS)
add_subdirectory(tools)
endif(NOT CLR_CMAKE_HOST_MACCATALYST AND NOT CLR_CMAKE_HOST_IOS AND NOT CLR_CMAKE_HOST_TVOS)

if(CLR_CMAKE_HOST_WIN32)
add_subdirectory(hosts)
endif(CLR_CMAKE_HOST_WIN32)
endif(NOT CLR_CMAKE_HOST_MACCATALYST AND NOT CLR_CMAKE_HOST_IOS AND NOT CLR_CMAKE_HOST_TVOS)
20 changes: 12 additions & 8 deletions src/coreclr/hosts/corewasmrun/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ endif (EXISTS "${_WASM_PRELOAD_DIR}")
target_compile_options(corewasmrun PRIVATE -fwasm-exceptions)
target_link_options(corewasmrun PRIVATE -fwasm-exceptions -sEXIT_RUNTIME=1 -sINITIAL_MEMORY=134217728 -sFORCE_FILESYSTEM=1 ${_WASM_PRELOAD_FILE} -Wl,-error-limit=0)

target_link_libraries(corewasmrun PRIVATE coreclr_static)
target_link_libraries(corewasmrun PRIVATE clrinterpreter)

target_link_libraries(corewasmrun PRIVATE icuuc)
target_link_libraries(corewasmrun PRIVATE icui18n)
target_link_libraries(corewasmrun PRIVATE icudata)

install_clr(TARGETS corewasmrun DESTINATIONS . COMPONENT hosts)
target_link_libraries(corewasmrun PRIVATE
coreclr_static
clrinterpreter
icuuc
icui18n
icudata)

# The corerun version for wasm is being installed in its own directory
# because it is an executable that comes with an index.html and we
# want to avoid clashes.
install_clr(TARGETS corewasmrun DESTINATIONS corewasmrun COMPONENT hosts)
install(FILES index.html DESTINATION corewasmrun COMPONENT hosts)
2 changes: 1 addition & 1 deletion src/coreclr/inc/bundle.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define _BUNDLE_H_

#include <sstring.h>
#include "coreclrhost.h"
#include <coreclrhost.h>

class Bundle;

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/inc/pinvokeoverride.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef _PINVOKEOVERRIDE_H_
#define _PINVOKEOVERRIDE_H_

#include "coreclrhost.h"
#include <coreclrhost.h>

class PInvokeOverride
{
Expand Down
Loading