Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fdo: Add WPE backends directory to the library RPATH #184

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ else ()
# There is no need to explicitly check wpe-1.0 here because it's a
# dependency already specified in the wpe-webkit.pc file.
pkg_check_modules(WEB_ENGINE REQUIRED wpe-webkit-1.0>=2.23.91)
pkg_get_variable(WPE_BACKENDS_DIR wpe-1.0 backendsdir)
if ("${WEB_ENGINE_VERSION}" VERSION_GREATER "2.23")
add_definitions(-DCOG_BG_COLOR_API_SUPPORTED=1)
else ()
Expand Down Expand Up @@ -304,6 +305,9 @@ if (COG_PLATFORM_FDO AND NOT COG_USE_WEBKITGTK)

add_library(cogplatform-fdo MODULE ${COGPLATFORM_FDO_SOURCES})
set_property(TARGET cogplatform-fdo PROPERTY C_STANDARD 99)
if (WPE_BACKENDS_DIR)
set_property(TARGET cogplatform-fdo PROPERTY INSTALL_RPATH ${WPE_BACKENDS_DIR})
endif ()
target_include_directories(cogplatform-fdo PUBLIC wayland ${COGPLATFORM_FDO_INCLUDE_DIRS})
target_link_libraries(cogplatform-fdo cogcore ${COGPLATFORM_FDO_LDFLAGS})
target_compile_options(cogplatform-fdo
Expand Down