-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
71 lines (68 loc) · 2.16 KB
/
CMakeLists.txt
File metadata and controls
71 lines (68 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
set(SOURCES
DistributionRegistration.cpp
LxssUserCallback.cpp
LxssUserSession.cpp
LxssUserSessionFactory.cpp
LxssIptables.cpp
LxssHttpProxy.cpp
LxssInstance.cpp
PluginManager.cpp
ServiceMain.cpp
BridgedNetworking.cpp
GnsRpcServer.cpp
GuestTelemetryLogger.cpp
Lifetime.cpp
LxssConsoleManager.cpp
LxssCreateProcess.cpp
MirroredNetworking.cpp
WslCoreGuestNetworkService.cpp
WslCoreInstance.cpp
WslMirroredNetworking.cpp
WslCoreTcpIpStateTracking.cpp
WslCoreVm.cpp
main.rc
${CMAKE_CURRENT_BINARY_DIR}/../mc/${TARGET_PLATFORM}/${CMAKE_BUILD_TYPE}/wsleventschema.rc
application.manifest)
set(HEADERS
../../inc/comservicehelper.h
DistributionRegistration.h
LxssUserCallback.h
LxssUserSession.h
LxssUserSessionFactory.h
LxssIptables.h
LxssHttpProxy.h
PluginManager.h
LxssInstance.h
BridgedNetworking.h
GnsRpcServer.h
GuestTelemetryLogger.h
IMirroredNetworkManager.h
Lifetime.h
LxssConsoleManager.h
LxssCreateProcess.h
MirroredNetworking.h
WslCoreGuestNetworkService.h
WslCoreInstance.h
WslMirroredNetworking.h
WslCoreNetworkEndpoint.h
WslCoreTcpIpStateTracking.h
WslCoreVm.h)
add_executable(wslservice ${SOURCES} ${HEADERS})
add_dependencies(wslservice wslserviceidl wslservicemc wslpluginhostidl)
add_compile_definitions(__WRL_CLASSIC_COM__)
add_compile_definitions(__WRL_DISABLE_STATIC_INITIALIZE__)
add_compile_definitions(USE_COM_CONTEXT_DEF=1)
set_target_properties(wslservice PROPERTIES LINK_FLAGS "/merge:minATL=.rdata /include:__minATLObjMap_LxssUserSession_COM")
target_link_libraries(wslservice
${COMMON_LINK_LIBRARIES}
${MSI_LINK_LIBRARIES}
${HCS_LINK_LIBRARIES}
${SERVICE_LINK_LIBRARIES}
common
configfile
legacy_stdio_definitions
VirtDisk.lib
Winhttp.lib
Synchronization.lib)
target_precompile_headers(wslservice REUSE_FROM common)
set_target_properties(wslservice PROPERTIES FOLDER windows)