1e5c31af7Sopenharmony_ci# ExecServer
2e5c31af7Sopenharmony_ci
3e5c31af7Sopenharmony_ciset(XSCORE_SRCS
4e5c31af7Sopenharmony_ci	xsDefs.cpp
5e5c31af7Sopenharmony_ci	xsDefs.hpp
6e5c31af7Sopenharmony_ci	xsExecutionServer.cpp
7e5c31af7Sopenharmony_ci	xsExecutionServer.hpp
8e5c31af7Sopenharmony_ci	xsPosixFileReader.cpp
9e5c31af7Sopenharmony_ci	xsPosixFileReader.hpp
10e5c31af7Sopenharmony_ci	xsPosixTestProcess.cpp
11e5c31af7Sopenharmony_ci	xsPosixTestProcess.hpp
12e5c31af7Sopenharmony_ci	xsProtocol.cpp
13e5c31af7Sopenharmony_ci	xsProtocol.hpp
14e5c31af7Sopenharmony_ci	xsTcpServer.cpp
15e5c31af7Sopenharmony_ci	xsTcpServer.hpp
16e5c31af7Sopenharmony_ci	xsTestDriver.cpp
17e5c31af7Sopenharmony_ci	xsTestDriver.hpp
18e5c31af7Sopenharmony_ci	xsTestProcess.cpp
19e5c31af7Sopenharmony_ci	xsTestProcess.hpp
20e5c31af7Sopenharmony_ci	)
21e5c31af7Sopenharmony_ci
22e5c31af7Sopenharmony_ciset(XSCORE_LIBS
23e5c31af7Sopenharmony_ci	decpp
24e5c31af7Sopenharmony_ci	deutil
25e5c31af7Sopenharmony_ci	dethread
26e5c31af7Sopenharmony_ci	debase
27e5c31af7Sopenharmony_ci	)
28e5c31af7Sopenharmony_ci
29e5c31af7Sopenharmony_ciif (DE_OS_IS_WIN32)
30e5c31af7Sopenharmony_ci	set(XSCORE_SRCS
31e5c31af7Sopenharmony_ci		${XSCORE_SRCS}
32e5c31af7Sopenharmony_ci		xsWin32TestProcess.cpp
33e5c31af7Sopenharmony_ci		xsWin32TestProcess.hpp)
34e5c31af7Sopenharmony_ciendif ()
35e5c31af7Sopenharmony_ci
36e5c31af7Sopenharmony_ciadd_library(xscore STATIC ${XSCORE_SRCS})
37e5c31af7Sopenharmony_citarget_link_libraries(xscore ${XSCORE_LIBS})
38e5c31af7Sopenharmony_ci
39e5c31af7Sopenharmony_ciinclude_directories(.)
40e5c31af7Sopenharmony_ci
41e5c31af7Sopenharmony_ciif (DE_OS_IS_WIN32 OR DE_OS_IS_OSX OR DE_OS_IS_UNIX)
42e5c31af7Sopenharmony_ci	# Build standalone execserver binary
43e5c31af7Sopenharmony_ci	add_executable(execserver tools/xsMain.cpp)
44e5c31af7Sopenharmony_ci	target_link_libraries(execserver xscore)
45e5c31af7Sopenharmony_ci
46e5c31af7Sopenharmony_ci	# Tests
47e5c31af7Sopenharmony_ci	add_executable(execserver-test tools/xsTest.cpp)
48e5c31af7Sopenharmony_ci	target_link_libraries(execserver-test xscore)
49e5c31af7Sopenharmony_ci	add_dependencies(execserver-test execserver)
50e5c31af7Sopenharmony_ci
51e5c31af7Sopenharmony_ci	# Basic client
52e5c31af7Sopenharmony_ci	add_executable(execserver-client tools/xsClient.cpp)
53e5c31af7Sopenharmony_ci	target_link_libraries(execserver-client xscore)
54e5c31af7Sopenharmony_ciendif ()
55