]> git.saurik.com Git - apple/javascriptcore.git/blob - shell/CMakeLists.txt
JavaScriptCore-1097.3.tar.gz
[apple/javascriptcore.git] / shell / CMakeLists.txt
1 SET(JSC_SOURCES
2 ../jsc.cpp
3 )
4
5 SET(JSC_LIBRARIES
6 ${WTF_LIBRARY_NAME}
7 ${JavaScriptCore_LIBRARY_NAME}
8 )
9
10 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
11
12 WEBKIT_WRAP_SOURCELIST(${JSC_SOURCES})
13 INCLUDE_DIRECTORIES(./ ${JavaScriptCore_INCLUDE_DIRECTORIES})
14 ADD_EXECUTABLE(${JSC_EXECUTABLE_NAME} ${JSC_SOURCES})
15 TARGET_LINK_LIBRARIES(${JSC_EXECUTABLE_NAME} ${JSC_LIBRARIES})
16 SET_TARGET_PROPERTIES(${JSC_EXECUTABLE_NAME} PROPERTIES FOLDER "JavaScriptCore")
17
18 IF (JSC_LINK_FLAGS)
19 ADD_TARGET_PROPERTIES(${JSC_EXECUTABLE_NAME} LINK_FLAGS "${JSC_LINK_FLAGS}")
20 ENDIF ()
21
22 IF ("${PORT}" STREQUAL "Efl")
23 SET_TARGET_PROPERTIES(${JSC_EXECUTABLE_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
24 ENDIF ()
25
26 IF (SHOULD_INSTALL_JS_SHELL)
27 INSTALL(TARGETS ${JSC_EXECUTABLE_NAME} DESTINATION bin)
28 ENDIF ()