]> git.saurik.com Git - apple/javascriptcore.git/blame - shell/CMakeLists.txt
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / shell / CMakeLists.txt
CommitLineData
93a37866 1set(JSC_SOURCES
14957cd0
A
2 ../jsc.cpp
3)
4
93a37866 5set(JSC_LIBRARIES
93a37866 6 ${CMAKE_DL_LIBS}
81345200
A
7 JavaScriptCore
8 WTF
14957cd0
A
9)
10
93a37866
A
11if ("${JavaScriptCore_LIBRARY_TYPE}" MATCHES "STATIC")
12 add_definitions(-DSTATICALLY_LINKED_WITH_JavaScriptCore)
13endif ()
14
6fe7ccc8 15WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
14957cd0
A
16
17WEBKIT_WRAP_SOURCELIST(${JSC_SOURCES})
93a37866
A
18include_directories(./ ${JavaScriptCore_INCLUDE_DIRECTORIES})
19add_executable(jsc ${JSC_SOURCES})
20target_link_libraries(jsc ${JSC_LIBRARIES})
21set_target_properties(jsc PROPERTIES FOLDER "JavaScriptCore")
14957cd0 22
93a37866
A
23if (JSC_OUTPUT_NAME)
24 set_target_properties(jsc PROPERTIES OUTPUT_NAME ${JSC_OUTPUT_NAME})
25endif ()
14957cd0 26
93a37866
A
27if (JSC_LINK_FLAGS)
28 ADD_TARGET_PROPERTIES(jsc LINK_FLAGS "${JSC_LINK_FLAGS}")
29endif ()
6fe7ccc8 30
93a37866
A
31if (SHOULD_INSTALL_JS_SHELL)
32 install(TARGETS jsc DESTINATION "${EXEC_INSTALL_DIR}")
33endif ()