]>
Commit | Line | Data |
---|---|---|
14957cd0 A |
1 | SET(JSC_SOURCES |
2 | ../jsc.cpp | |
3 | ) | |
4 | ||
5 | SET(JSC_LIBRARIES | |
6fe7ccc8 | 6 | ${WTF_LIBRARY_NAME} |
14957cd0 A |
7 | ${JavaScriptCore_LIBRARY_NAME} |
8 | ) | |
9 | ||
6fe7ccc8 | 10 | WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS() |
14957cd0 A |
11 | |
12 | WEBKIT_WRAP_SOURCELIST(${JSC_SOURCES}) | |
13 | INCLUDE_DIRECTORIES(./ ${JavaScriptCore_INCLUDE_DIRECTORIES}) | |
6fe7ccc8 | 14 | ADD_EXECUTABLE(${JSC_EXECUTABLE_NAME} ${JSC_SOURCES}) |
14957cd0 | 15 | TARGET_LINK_LIBRARIES(${JSC_EXECUTABLE_NAME} ${JSC_LIBRARIES}) |
6fe7ccc8 | 16 | SET_TARGET_PROPERTIES(${JSC_EXECUTABLE_NAME} PROPERTIES FOLDER "JavaScriptCore") |
14957cd0 A |
17 | |
18 | IF (JSC_LINK_FLAGS) | |
19 | ADD_TARGET_PROPERTIES(${JSC_EXECUTABLE_NAME} LINK_FLAGS "${JSC_LINK_FLAGS}") | |
20 | ENDIF () | |
21 | ||
6fe7ccc8 A |
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) | |
14957cd0 | 28 | ENDIF () |