| 1 | set(SOURCES |
| 2 | main.cpp |
| 3 | main.rc |
| 4 | application.manifest |
| 5 | |
| 6 | # Session factory and service reference |
| 7 | WSLCSessionFactory.cpp |
| 8 | WSLCSessionReference.cpp |
| 9 | |
| 10 | # Session and container implementation |
| 11 | WSLCSession.cpp |
| 12 | WSLCSessionRuntime.cpp |
| 13 | WSLCContainer.cpp |
| 14 | WSLCVirtualMachine.cpp |
| 15 | |
| 16 | # Process management |
| 17 | WSLCProcess.cpp |
| 18 | WSLCProcessControl.cpp |
| 19 | WSLCProcessIO.cpp |
| 20 | |
| 21 | # Volume management |
| 22 | WSLCVhdVolume.cpp |
| 23 | WSLCGuestVolume.cpp |
| 24 | WSLCVolumes.cpp |
| 25 | |
| 26 | # Supporting classes |
| 27 | DockerEventTracker.cpp |
| 28 | DockerHTTPClient.cpp |
| 29 | EventStore.cpp |
| 30 | IORelay.cpp |
| 31 | OptionParser.cpp |
| 32 | ServiceProcessLauncher.cpp |
| 33 | WindowsCertStore.cpp |
| 34 | ) |
| 35 | |
| 36 | set(HEADERS |
| 37 | DockerEventTracker.h |
| 38 | DockerHTTPClient.h |
| 39 | EventStore.h |
| 40 | IORelay.h |
| 41 | OptionParser.h |
| 42 | ServiceProcessLauncher.h |
| 43 | WSLCContainer.h |
| 44 | WSLCContainerMetadata.h |
| 45 | WindowsCertStore.h |
| 46 | WSLCProcess.h |
| 47 | WSLCProcessControl.h |
| 48 | WSLCProcessIO.h |
| 49 | WSLCSession.h |
| 50 | WSLCSessionRuntime.h |
| 51 | WSLCIdleState.h |
| 52 | WSLCSessionFactory.h |
| 53 | WSLCSessionReference.h |
| 54 | WSLCVirtualMachine.h |
| 55 | WSLCVhdVolume.h |
| 56 | WSLCGuestVolume.h |
| 57 | WSLCVolumes.h |
| 58 | IWSLCVolume.h |
| 59 | WSLCVolumeMetadata.h) |
| 60 | |
| 61 | add_executable(wslcsession WIN32 ${SOURCES} ${HEADERS}) |
| 62 | add_dependencies(wslcsession wslserviceidl) |
| 63 | add_compile_definitions(__WRL_CLASSIC_COM__) |
| 64 | add_compile_definitions(USE_COM_CONTEXT_DEF=1) |
| 65 | target_link_libraries(wslcsession |
| 66 | ${COMMON_LINK_LIBRARIES} |
| 67 | common |
| 68 | legacy_stdio_definitions |
| 69 | VirtDisk.lib |
| 70 | Crypt32.lib |
| 71 | delayimp.lib) |
| 72 | |
| 73 | set_target_properties(wslcsession PROPERTIES LINK_FLAGS "/DELAYLOAD:msi.dll /DELAYLOAD:WINTRUST.dll") |
| 74 | |
| 75 | target_precompile_headers(wslcsession REUSE_FROM common) |
| 76 | set_target_properties(wslcsession PROPERTIES FOLDER windows) |