[EFL][GTK][WK2] Fix UIProcess build with GStreamer and without VIDEO
[WebKit-https.git] / Source / JavaScriptCore / shell / CMakeLists.txt
1 set(JSC_SOURCES
2     ../jsc.cpp
3 )
4
5 set(JSC_LIBRARIES
6     ${CMAKE_DL_LIBS}
7     JavaScriptCore${DEBUG_SUFFIX}
8     WTF${DEBUG_SUFFIX}
9 )
10
11 if (WTF_OS_MAC_OS_X)
12     list(APPEND JSC_LIBRARIES edit)
13 endif ()
14
15 if ("${JavaScriptCore_LIBRARY_TYPE}" MATCHES "STATIC")
16     add_definitions(-DSTATICALLY_LINKED_WITH_JavaScriptCore)
17 endif ()
18
19 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
20
21 WEBKIT_WRAP_SOURCELIST(${JSC_SOURCES})
22 include_directories(./ ${JavaScriptCore_INCLUDE_DIRECTORIES})
23 include_directories(SYSTEM ${JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES})
24 add_executable(jsc ${JSC_SOURCES})
25 target_link_libraries(jsc ${JSC_LIBRARIES})
26 set_target_properties(jsc PROPERTIES FOLDER "JavaScriptCore")
27
28 if (JSC_OUTPUT_NAME)
29     set_target_properties(jsc PROPERTIES OUTPUT_NAME ${JSC_OUTPUT_NAME})
30 endif ()
31
32 if (JSC_LINK_FLAGS)
33     ADD_TARGET_PROPERTIES(jsc LINK_FLAGS "${JSC_LINK_FLAGS}")
34 endif ()
35
36 if (SHOULD_INSTALL_JS_SHELL)
37     install(TARGETS jsc DESTINATION "${EXEC_INSTALL_DIR}")
38 endif ()
39
40 if (WIN32)
41     add_dependencies(jsc jscLib)
42 endif ()
43
44 if (NOT WIN32)
45     set(TESTB3_SOURCES
46         ../b3/testb3.cpp
47     )
48
49     add_executable(testb3 ${TESTB3_SOURCES})
50     target_link_libraries(testb3 ${JSC_LIBRARIES})
51 endif ()