| 1 | set(SOURCES |
| 2 | DistributionRegistration.cpp |
| 3 | LxssUserCallback.cpp |
| 4 | LxssUserSession.cpp |
| 5 | LxssUserSessionFactory.cpp |
| 6 | LxssIptables.cpp |
| 7 | LxssHttpProxy.cpp |
| 8 | LxssInstance.cpp |
| 9 | PluginManager.cpp |
| 10 | ServiceMain.cpp |
| 11 | BridgedNetworking.cpp |
| 12 | GnsRpcServer.cpp |
| 13 | GuestTelemetryLogger.cpp |
| 14 | Lifetime.cpp |
| 15 | LxssConsoleManager.cpp |
| 16 | LxssCreateProcess.cpp |
| 17 | MirroredNetworking.cpp |
| 18 | WslCoreGuestNetworkService.cpp |
| 19 | WslCoreInstance.cpp |
| 20 | WslMirroredNetworking.cpp |
| 21 | WslCoreTcpIpStateTracking.cpp |
| 22 | WslCoreVm.cpp |
| 23 | HcsVirtualMachine.cpp |
| 24 | WSLCSessionManager.cpp |
| 25 | WSLCSessionManagerFactory.cpp |
| 26 | WSLCPluginNotifier.cpp |
| 27 | main.rc |
| 28 | ${CMAKE_CURRENT_BINARY_DIR}/../mc/${TARGET_PLATFORM}/${CMAKE_BUILD_TYPE}/wsleventschema.rc |
| 29 | application.manifest) |
| 30 | |
| 31 | set(HEADERS |
| 32 | ../../inc/comservicehelper.h |
| 33 | DistributionRegistration.h |
| 34 | LxssUserCallback.h |
| 35 | LxssUserSession.h |
| 36 | LxssUserSessionFactory.h |
| 37 | LxssIptables.h |
| 38 | LxssHttpProxy.h |
| 39 | PluginManager.h |
| 40 | LxssInstance.h |
| 41 | BridgedNetworking.h |
| 42 | GnsRpcServer.h |
| 43 | GuestTelemetryLogger.h |
| 44 | IMirroredNetworkManager.h |
| 45 | Lifetime.h |
| 46 | LxssConsoleManager.h |
| 47 | LxssCreateProcess.h |
| 48 | MirroredNetworking.h |
| 49 | WslCoreGuestNetworkService.h |
| 50 | WslCoreInstance.h |
| 51 | WslMirroredNetworking.h |
| 52 | WslCoreNetworkEndpoint.h |
| 53 | WslCoreTcpIpStateTracking.h |
| 54 | WslCoreVm.h |
| 55 | HcsVirtualMachine.h |
| 56 | WSLCSessionManager.h |
| 57 | WSLCSessionManagerFactory.h |
| 58 | WSLCPluginNotifier.h) |
| 59 | |
| 60 | add_executable(wslservice ${SOURCES} ${HEADERS}) |
| 61 | add_dependencies(wslservice wslserviceidl wslservicemc) |
| 62 | add_compile_definitions(__WRL_CLASSIC_COM__) |
| 63 | add_compile_definitions(__WRL_DISABLE_STATIC_INITIALIZE__) |
| 64 | add_compile_definitions(USE_COM_CONTEXT_DEF=1) |
| 65 | set_target_properties(wslservice PROPERTIES LINK_FLAGS "/merge:minATL=.rdata /include:__minATLObjMap_LxssUserSession_COM /include:__minATLObjMap_WSLCSessionManager_COM") |
| 66 | target_link_libraries(wslservice |
| 67 | ${COMMON_LINK_LIBRARIES} |
| 68 | ${MSI_LINK_LIBRARIES} |
| 69 | ${HCS_LINK_LIBRARIES} |
| 70 | ${SERVICE_LINK_LIBRARIES} |
| 71 | common |
| 72 | configfile |
| 73 | legacy_stdio_definitions |
| 74 | VirtDisk.lib |
| 75 | Winhttp.lib |
| 76 | Synchronization.lib |
| 77 | yaml-cpp) |
| 78 | |
| 79 | target_precompile_headers(wslservice REUSE_FROM common) |
| 80 | set_target_properties(wslservice PROPERTIES FOLDER windows) |