Skip to content

Commit

Permalink
Merge r230449 - [WPE] Add API version to library soname and pkg-confi…
Browse files Browse the repository at this point in the history
…g files

https://bugs.webkit.org/show_bug.cgi?id=180608

Reviewed by Žan Doberšek.

* PlatformWPE.cmake:
* wpe/wpe-webkit.pc.in:
  • Loading branch information
mcatanzaro committed May 9, 2018
1 parent cda85ae commit 2078291
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions Source/WebKit/ChangeLog
@@ -1,3 +1,13 @@
2018-04-09 Michael Catanzaro <mcatanzaro@igalia.com>

[WPE] Add API version to library soname and pkg-config files
https://bugs.webkit.org/show_bug.cgi?id=180608

Reviewed by Žan Doberšek.

* PlatformWPE.cmake:
* wpe/wpe-webkit.pc.in:

2018-04-09 Michael Catanzaro <mcatanzaro@igalia.com>

[WPE] Use GNU install directories
Expand Down
6 changes: 3 additions & 3 deletions Source/WebKit/PlatformWPE.cmake
@@ -1,6 +1,6 @@
include(InspectorGResources.cmake)

set(WebKit_OUTPUT_NAME WPEWebKit)
set(WebKit_OUTPUT_NAME WPEWebKit-${WPE_API_VERSION})
set(WebKit_WebProcess_OUTPUT_NAME WPEWebProcess)
set(WebKit_NetworkProcess_OUTPUT_NAME WPENetworkProcess)
set(WebKit_StorageProcess_OUTPUT_NAME WPEStorageProcess)
Expand All @@ -9,7 +9,7 @@ file(MAKE_DIRECTORY ${DERIVED_SOURCES_WPE_API_DIR})
file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_DIR})
file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_EXTENSION_DIR})

configure_file(wpe/wpe-webkit.pc.in ${CMAKE_BINARY_DIR}/wpe-webkit.pc @ONLY)
configure_file(wpe/wpe-webkit.pc.in ${CMAKE_BINARY_DIR}/wpe-webkit-${WPE_API_VERSION}.pc @ONLY)

add_definitions(-DWEBKIT2_COMPILATION)

Expand Down Expand Up @@ -271,7 +271,7 @@ target_link_libraries(WPEInjectedBundle WebKit)
target_include_directories(WPEInjectedBundle PRIVATE ${WebKit_INCLUDE_DIRECTORIES})
target_include_directories(WPEInjectedBundle SYSTEM PRIVATE ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})

install(FILES "${CMAKE_BINARY_DIR}/wpe-webkit.pc"
install(FILES "${CMAKE_BINARY_DIR}/wpe-webkit-${WPE_API_VERSION}.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
COMPONENT "Development"
)
Expand Down
2 changes: 1 addition & 1 deletion Source/WebKit/wpe/wpe-webkit.pc.in
Expand Up @@ -8,5 +8,5 @@ Description: Embeddable Web content engine
URL: https://wpewebkit.org
Version: @PROJECT_VERSION@
Requires: glib-2.0 libsoup-2.4
Libs: -L${libdir} -lWPEWebKit
Libs: -L${libdir} -lWPEWebKit-@WPE_API_VERSION@
Cflags: -I${includedir}/wpe-@WPE_API_VERSION@ -I${includedir}/wpe-@WPE_API_VERSION@/WPE

0 comments on commit 2078291

Please sign in to comment.