blob: 4b40a88013196d01aa06f78cf57fd5267d6754e9 [file] [log] [blame]
set(MiniBrowser_SOURCES
main.cpp
)
set(MiniBrowser_PRIVATE_INCLUDE_DIRECTORIES
${CMAKE_BINARY_DIR}
${DERIVED_SOURCES_WPE_API_DIR}
${FORWARDING_HEADERS_WPE_DIR}
${JavaScriptCoreGLib_DERIVED_SOURCES_DIR}
${JavaScriptCoreGLib_FRAMEWORK_HEADERS_DIR}
)
set(MiniBrowser_SYSTEM_INCLUDE_DIRECTORIES
${ATK_INCLUDE_DIRS}
${GLIB_INCLUDE_DIRS}
${LIBSOUP_INCLUDE_DIRS}
${WPEBACKEND_FDO_INCLUDE_DIRS}
)
set(MiniBrowser_PRIVATE_LIBRARIES
${ATK_LIBRARIES}
${JavaScriptCore_LIBRARY_NAME}
${WPEBACKEND_FDO_LIBRARIES}
WPE::libwpe
WebKit::WPEToolingBackends
WebKit::WebKit
)
if (NOT USE_GSTREAMER_FULL)
list(APPEND MiniBrowser_PRIVATE_INCLUDE_DIRECTORIES ${GSTREAMER_INCLUDE_DIRS})
list(APPEND MiniBrowser_PRIVATE_LIBRARIES ${GSTREAMER_LIBRARIES})
endif ()
if (DEVELOPER_MODE)
list(APPEND MiniBrowser_PRIVATE_DEFINITIONS WEBKIT_INJECTED_BUNDLE_PATH="${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
endif ()
WEBKIT_EXECUTABLE_DECLARE(MiniBrowser)
WEBKIT_EXECUTABLE(MiniBrowser)
install(TARGETS MiniBrowser DESTINATION "${LIBEXEC_INSTALL_DIR}")
if (ENABLE_WPE_QT_API)
add_subdirectory(qt)
endif ()