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
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ if (NOT WSL_DEVICEHOST_BIN)
file(CREATE_LINK ${WSL_DEVICE_HOST_SOURCE_DIR}/bin/${TARGET_PLATFORM}/wsldevicehost.pdb ${BIN}/wsldevicehost.pdb)
endif()

foreach(binary openvmm.exe openvmm.pdb wslopenvmm.dll wslopenvmm.pdb)
# OpenVMM binaries are packaged directly from NuGet; retain PDBs for symbol publishing.
foreach(binary openvmm.pdb wslopenvmm.pdb)
file(CREATE_LINK "${WSL_OPENVMM_SOURCE_DIR}/bin/${TARGET_PLATFORM}/${binary}" "${BIN}/${binary}")
endforeach()
Comment thread
damanm24 marked this conversation as resolved.

Expand Down
6 changes: 5 additions & 1 deletion msipackage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(OUTPUT_PACKAGE ${BIN}/wsl.msi)
set(PACKAGE_WIX_IN ${CMAKE_CURRENT_LIST_DIR}/package.wix.in)
set(PACKAGE_WIX ${BIN}/package.wix)
set(CAB_CACHE ${BIN}/cab)
set(WINDOWS_BINARIES wsl.exe;wslg.exe;wslhost.exe;wslrelay.exe;wslservice.exe;wslserviceproxystub.dll;wsldevicehostproxystub.dll;wslinstall.dll;wslc.exe;wslcsession.exe;openvmm.exe;wslopenvmm.dll)
set(WINDOWS_BINARIES wsl.exe;wslg.exe;wslhost.exe;wslrelay.exe;wslservice.exe;wslserviceproxystub.dll;wsldevicehostproxystub.dll;wslinstall.dll;wslc.exe;wslcsession.exe)
if (WSL_BUILD_WSL_SETTINGS)
list(APPEND WINDOWS_BINARIES "wslsettings/wslsettings.dll;wslsettings/wslsettings.exe;libwsl.dll")
endif()
Expand All @@ -27,6 +27,10 @@ foreach(binary ${WINDOWS_BINARIES})
list(APPEND BINARIES_DEPENDENCIES "${PACKAGE_INPUT_DIR}/${binary}")
endforeach()

foreach(binary openvmm.exe wslopenvmm.dll)
list(APPEND BINARIES_DEPENDENCIES "${WSL_OPENVMM_SOURCE_DIR}/bin/${TARGET_PLATFORM}/${binary}")
endforeach()

set(LINUX_BINARIES init;initrd.img)
foreach(binary ${LINUX_BINARIES})
list(APPEND BINARIES_DEPENDENCIES "${BIN}/${binary}")
Expand Down
6 changes: 3 additions & 3 deletions msipackage/package.wix.in
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@
<ServiceControl Id="StopService" Stop="both" Remove="uninstall" Name="WSLService" Wait="yes" />

<File Id="wsldevicehost.dll" Source="${WSL_DEVICE_HOST_DLL_PATH}" />
<File Id="openvmm.exe" Source="${PACKAGE_INPUT_DIR}/openvmm.exe" />
<File Id="wslopenvmm.dll" Source="${PACKAGE_INPUT_DIR}/wslopenvmm.dll" />

<File Id="openvmm.exe" Source="${WSL_OPENVMM_SOURCE_DIR}/bin/${TARGET_PLATFORM}/openvmm.exe" />
<File Id="wslopenvmm.dll" Source="${WSL_OPENVMM_SOURCE_DIR}/bin/${TARGET_PLATFORM}/wslopenvmm.dll" />
<!-- WSLC COM app - activated through WSLService -->
<RegistryKey Root="HKCR" Key="AppID\{E9B79997-57E3-4201-AECC-6A464E530DD2}">
<!-- O:BAG:BAD:(A;;CCDCSW;;;AU)(A;;CCDCSW;;;PS)(A;;CCDCSW;;;SY) -->
Expand Down
10 changes: 8 additions & 2 deletions src/windows/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ set(SOURCES
WslCoreNetworkingSupport.cpp
WslInstall.cpp
WslSecurity.cpp
VirtualMachineBackend.cpp
OpenVmmVirtualMachineBackend.cpp
SlowOperationWatcher.cpp
WslTelemetry.cpp
wslutil.cpp
Expand Down Expand Up @@ -143,6 +145,8 @@ set(HEADERS
WslCoreNetworkingSupport.h
WslInstall.h
WslSecurity.h
IVirtualMachineBackend.h
OpenVmmVirtualMachineBackend.h
SlowOperationWatcher.h
WslTelemetry.h
wslutil.h
Expand All @@ -156,12 +160,14 @@ add_dependencies(common wslserviceidl wsldevicehostidl localization wslservicemc

target_precompile_headers(common PRIVATE precomp.h)
set_target_properties(common PROPERTIES FOLDER windows)
target_include_directories(common PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/../service/mc/${TARGET_PLATFORM}/${CMAKE_BUILD_TYPE})
target_include_directories(common PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}/../service/mc/${TARGET_PLATFORM}/${CMAKE_BUILD_TYPE})

# common calls into HCS, HNS, the IP helper API, the VHD APIs, MSI, WinTrust and
# the config file parser, so anything linking common needs those libraries too.
# PUBLIC propagates them instead of making each consumer restate them.
target_link_libraries(common PUBLIC ${HCS_LINK_LIBRARIES} ${MSI_LINK_LIBRARIES} VirtDisk.lib configfile)
target_link_libraries(common PUBLIC ${HCS_LINK_LIBRARIES} ${MSI_LINK_LIBRARIES} VirtDisk.lib configfile wslopenvmm_client)

# WSLCUserSettings.cpp uses yaml-cpp headers.
# The per-source include path and definition below only apply when the file is
Expand Down
Loading
Loading