1# Executor
2
3# Executor depends on execserver library (xscore)
4include_directories(../execserver)
5
6set(XECORE_SRCS
7	xeBatchExecutor.cpp
8	xeBatchExecutor.hpp
9	xeBatchResult.cpp
10	xeBatchResult.hpp
11	xeCallQueue.cpp
12	xeCallQueue.hpp
13	xeCommLink.cpp
14	xeCommLink.hpp
15	xeContainerFormatParser.cpp
16	xeContainerFormatParser.hpp
17	xeDefs.cpp
18	xeDefs.hpp
19	xeLocalTcpIpLink.cpp
20	xeLocalTcpIpLink.hpp
21	xeTcpIpLink.cpp
22	xeTcpIpLink.hpp
23	xeTestCase.cpp
24	xeTestCase.hpp
25	xeTestCaseListParser.cpp
26	xeTestCaseListParser.hpp
27	xeTestCaseResult.cpp
28	xeTestCaseResult.hpp
29	xeTestLogParser.cpp
30	xeTestLogParser.hpp
31	xeTestLogWriter.cpp
32	xeTestLogWriter.hpp
33	xeTestResultParser.cpp
34	xeTestResultParser.hpp
35	xeXMLParser.cpp
36	xeXMLParser.hpp
37	xeXMLWriter.cpp
38	xeXMLWriter.hpp
39	)
40
41set(XECORE_LIBS
42	xscore
43	decpp
44	deutil
45	dethread
46	debase
47	)
48
49add_library(xecore STATIC ${XECORE_SRCS})
50target_link_libraries(xecore ${XECORE_LIBS})
51
52include_directories(.)
53
54if (DE_OS_IS_WIN32 OR DE_OS_IS_UNIX OR DE_OS_IS_OSX OR DE_OS_IS_ANDROID)
55	add_executable(executor tools/xeCommandLineExecutor.cpp)
56	target_link_libraries(executor xecore)
57endif ()
58
59if (DE_OS_IS_WIN32 OR DE_OS_IS_UNIX OR DE_OS_IS_OSX)
60	add_executable(testlog-to-csv tools/xeTestLogCompare.cpp)
61	target_link_libraries(testlog-to-csv xecore)
62
63	add_executable(testlog-to-xml tools/xeBatchResultToXml.cpp)
64	target_link_libraries(testlog-to-xml xecore)
65
66	add_executable(testlog-to-junit tools/xeBatchResultToJUnit.cpp)
67	target_link_libraries(testlog-to-junit xecore)
68
69	add_executable(extract-values tools/xeExtractValues.cpp)
70	target_link_libraries(extract-values xecore)
71
72	add_executable(extract-shader-programs tools/xeExtractShaderPrograms.cpp)
73	target_link_libraries(extract-shader-programs xecore)
74
75	add_executable(merge-testlogs tools/xeMergeTestLogs.cpp)
76	target_link_libraries(merge-testlogs xecore)
77
78	add_executable(extract-sample-lists tools/xeExtractSampleLists.cpp)
79	target_link_libraries(extract-sample-lists xecore)
80endif ()
81