master
txt 172 lines 4.42 KB
Raw
1 set(SOURCES
2 APICompat.cpp
3 ConsoleProgressBar.cpp
4 ConsoleProgressIndicator.cpp
5 ConsoleState.cpp
6 DeviceHostProxy.cpp
7 disk.cpp
8 Distribution.cpp
9 Dmesg.cpp
10 DnsResolver.cpp
11 DnsTunnelingChannel.cpp
12 ExecutionContext.cpp
13 filesystem.cpp
14 GnsChannel.cpp
15 GnsPortTrackerChannel.cpp
16 GuestDeviceManager.cpp
17 HandleConsoleProgressBar.cpp
18 hcs.cpp
19 helpers.cpp
20 hvsocket.cpp
21 interop.cpp
22 HandleIO.cpp
23 Localization.cpp
24 lxssbusclient.cpp
25 lxssclient.cpp
26 LxssMessagePort.cpp
27 LxssSecurity.cpp
28 LxssServerPort.cpp
29 MountSpecParsing.cpp
30 NatNetworking.cpp
31 notifications.cpp
32 Redirector.cpp
33 registry.cpp
34 relay.cpp
35 RingBuffer.cpp
36 socket.cpp
37 string.cpp
38 SubProcess.cpp
39 svccomm.cpp
40 timestamp.cpp
41 VTSupport.cpp
42 WindowsUpdateIntegration.cpp
43 WSLCContainerLauncher.cpp
44 ConsommeNetworking.cpp
45 WSLCProcessLauncher.cpp
46 WslClient.cpp
47 WslCoreConfig.cpp
48 WslCoreFilesystem.cpp
49 WslCoreFirewallSupport.cpp
50 WslCoreHostDnsInfo.cpp
51 WslCoreNetworkEndpointSettings.cpp
52 WslCoreNetworkingSupport.cpp
53 WslInstall.cpp
54 WslSecurity.cpp
55 SlowOperationWatcher.cpp
56 WslTelemetry.cpp
57 wslutil.cpp
58 install.cpp
59 WSLCUserSettings.cpp
60 notifications.cpp)
61
62 set(HEADERS
63 ../../../generated/Localization.h
64 APICompat.h
65 ../inc/docker_schema.h
66 ../inc/wslc_schema.h
67 ../inc/lxssbusclient.h
68 ../inc/lxssclient.h
69 ../inc/LxssDynamicFunction.h
70 ../inc/traceloggingconfig.h
71 ../inc/wdk.h
72 ../inc/wsl.h
73 ../inc/wslconfig.h
74 ../inc/wslhost.h
75 ../inc/wslpolicies.h
76 ../inc/WslPluginApi.h
77 ../inc/wslrelay.h
78 ../../shared/inc/CommandLine.h
79 ../../shared/inc/defs.h
80 ../../shared/inc/hns_schema.h
81 ../../shared/inc/JsonUtils.h
82 ../../shared/inc/lxfsshares.h
83 ../../shared/inc/lxinitshared.h
84 ../../shared/inc/message.h
85 ../../shared/inc/prettyprintshared.h
86 ../../shared/inc/retryshared.h
87 ../../shared/inc/SocketChannel.h
88 ../../shared/inc/socketshared.h
89 ../../shared/inc/stringshared.h
90 ConsoleProgressBar.h
91 ConsoleProgressIndicator.h
92 ConsoleState.h
93 DeviceHostProxy.h
94 disk.hpp
95 Distribution.h
96 Dmesg.h
97 DnsResolver.h
98 DnsTunnelingChannel.h
99 ExecutionContext.h
100 filesystem.hpp
101 GnsChannel.h
102 GnsPortTrackerChannel.h
103 GuestDeviceManager.h
104 HandleConsoleProgressBar.h
105 hcs.hpp
106 hcs_schema.h
107 helpers.hpp
108 hvsocket.hpp
109 INetworkingEngine.h
110 interop.hpp
111 HandleIO.h
112 LxssMessagePort.h
113 LxssPort.h
114 LxssSecurity.h
115 LxssServerPort.h
116 MountSpecParsing.h
117 NatNetworking.h
118 notifications.h
119 precomp.h
120 Redirector.h
121 registry.hpp
122 relay.hpp
123 RingBuffer.h
124 socket.hpp
125 string.hpp
126 Stringify.h
127 SubProcess.h
128 svccomm.hpp
129 timestamp.hpp
130 VTSupport.h
131 WindowsUpdateIntegration.h
132 WSLCContainerLauncher.h
133 WSLCContainerEntry.h
134 ConsommeNetworking.h
135 WSLCProcessLauncher.h
136 WslClient.h
137 WslCoreConfig.h
138 WslCoreFilesystem.h
139 WslCoreFirewallSupport.h
140 WslCoreHostDnsInfo.h
141 WslCoreMessageQueue.h
142 WslCoreNetworkEndpointSettings.h
143 WslCoreNetworkingSupport.h
144 WslInstall.h
145 WslSecurity.h
146 SlowOperationWatcher.h
147 WslTelemetry.h
148 wslutil.h
149 EnumVariantMap.h
150 WSLCUserSettings.h
151 WSLCSessionDefaults.h
152 )
153
154 add_library(common STATIC ${SOURCES} ${HEADERS})
155 add_dependencies(common wslserviceidl wsldevicehostidl localization wslservicemc wslinstalleridl yaml-cpp)
156
157 target_precompile_headers(common PRIVATE precomp.h)
158 set_target_properties(common PROPERTIES FOLDER windows)
159 target_include_directories(common PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/../service/mc/${TARGET_PLATFORM}/${CMAKE_BUILD_TYPE})
160
161 # common calls into HCS, HNS, the IP helper API, the VHD APIs, MSI, WinTrust and
162 # the config file parser, so anything linking common needs those libraries too.
163 # PUBLIC propagates them instead of making each consumer restate them.
164 target_link_libraries(common PUBLIC ${HCS_LINK_LIBRARIES} ${MSI_LINK_LIBRARIES} VirtDisk.lib configfile)
165
166 # WSLCUserSettings.cpp uses yaml-cpp headers.
167 # The per-source include path and definition below only apply when the file is
168 # compiled on its own, so keep it out of the unity sources.
169 set_source_files_properties(WSLCUserSettings.cpp PROPERTIES
170 INCLUDE_DIRECTORIES "${yaml-cpp_SOURCE_DIR}/include"
171 COMPILE_DEFINITIONS "YAML_CPP_STATIC_DEFINE"
172 SKIP_UNITY_BUILD_INCLUSION ON)