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