Skip to content

Commit

Permalink
Merge pull request #701 from microsoft/master
Browse files Browse the repository at this point in the history
[librsvg] Remove debug postfix (microsoft#19460)
  • Loading branch information
Jimmy-Hu authored Aug 9, 2021
2 parents 83d8acb + d95f86c commit 47e6465
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 17 deletions.
6 changes: 2 additions & 4 deletions ports/librsvg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ else()
list(APPEND LIBRSVG_SOURCES rsvg.symbols)
endif()

set(CMAKE_DEBUG_POSTFIX "d")

add_library(rsvg-2.40 ${LIBRSVG_SOURCES})
add_library(pixbufloader-svg ${PIXBUFLOADERSVG_SOURCES})

Expand Down Expand Up @@ -130,8 +128,8 @@ install(
)

install(FILES
rsvg.h
rsvg-cairo.h
rsvg.h
rsvg-cairo.h
librsvg-features.h
librsvg-enum-types.h
DESTINATION include/librsvg
Expand Down
18 changes: 8 additions & 10 deletions ports/librsvg/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,23 @@ vcpkg_extract_source_archive_ex(
ARCHIVE ${ARCHIVE}
)

file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
configure_file(${CMAKE_CURRENT_LIST_DIR}/config.h.linux ${SOURCE_PATH}/config.h.linux COPYONLY)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
configure_file("${CMAKE_CURRENT_LIST_DIR}/config.h.linux" "${SOURCE_PATH}/config.h.linux" COPYONLY)

vcpkg_find_acquire_program(PKGCONFIG)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
PREFER_NINJA
OPTIONS
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
)

vcpkg_install_cmake()
vcpkg_cmake_install()

vcpkg_copy_pdbs()

vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-librsvg TARGET_PATH share/unofficial-librsvg)
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-librsvg CONFIG_PATH share/unofficial-librsvg)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
12 changes: 10 additions & 2 deletions ports/librsvg/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"name": "librsvg",
"version": "2.40.20",
"port-version": 4,
"port-version": 5,
"description": "A small library to render Scalable Vector Graphics (SVG)",
"homepage": "https://gitlab.gnome.org/GNOME/librsvg",
"dependencies": [
"cairo",
"gdk-pixbuf",
"libcroco",
"pango"
"pango",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3562,7 +3562,7 @@
},
"librsvg": {
"baseline": "2.40.20",
"port-version": 4
"port-version": 5
},
"librsync": {
"baseline": "2020-09-16",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/librsvg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f1c471322f23a090a973337e83f0d9743adc549d",
"version": "2.40.20",
"port-version": 5
},
{
"git-tree": "0a02c4941810ea725b6686e203ae81deb257e24c",
"version": "2.40.20",
Expand Down

0 comments on commit 47e6465

Please sign in to comment.