blob: cbd29b2657a6f5a3eafdb060ad4728fe560d82f1 [file] [log] [blame]
set(JSC_SOURCES
../jsc.cpp
)
set(JSC_LIBRARIES
${CMAKE_DL_LIBS}
JavaScriptCore${DEBUG_SUFFIX}
WTF${DEBUG_SUFFIX}
)
if ("${JavaScriptCore_LIBRARY_TYPE}" MATCHES "STATIC")
add_definitions(-DSTATICALLY_LINKED_WITH_JavaScriptCore)
endif ()
WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
WEBKIT_WRAP_SOURCELIST(${JSC_SOURCES})
include_directories(./ ${JavaScriptCore_INCLUDE_DIRECTORIES})
add_executable(jsc ${JSC_SOURCES})
target_link_libraries(jsc ${JSC_LIBRARIES})
set_target_properties(jsc PROPERTIES FOLDER "JavaScriptCore")
if (JSC_OUTPUT_NAME)
set_target_properties(jsc PROPERTIES OUTPUT_NAME ${JSC_OUTPUT_NAME})
endif ()
if (JSC_LINK_FLAGS)
ADD_TARGET_PROPERTIES(jsc LINK_FLAGS "${JSC_LINK_FLAGS}")
endif ()
if (SHOULD_INSTALL_JS_SHELL)
install(TARGETS jsc DESTINATION "${EXEC_INSTALL_DIR}")
endif ()
if (WIN32)
add_dependencies(jsc jscLib)
endif ()