mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 13:39:08 +08:00
546813ae7b
* update glib to meson * update ci baseline * update glib to 2.66.3 remove cmakelists * fix some minor meson issue but meson is still a mess * add_bin_to_path to vcpkg_install_meson * regen docs * try fixing/touching all glib dependent ports * fix libsigcpp-3 version * fix glibmm * fix gmime * fix libcroco * update libnice * fix atk build * update harfbuzz * fix few builds * update libxmlpp * fix gdk-pixbuf * fix gts * gts add patch * remove old libsigcpp * add missing comma * fix supports logic * fix name mismatch * restore original ci baseline. * fix a lot of small details. increment controls. * fix harfbuzz & glib * bump port version * update port_versions * fix version field * update versions * fix glib in harfbuzz * update port versions * silly uppercase type * update port-versions * fix cairo build * update version * fix atk * update atk port-verisons * fix gts public includes * update versions * fix cairomm * fix pango * fix ignition * update versions. * fix gtk * fix librsvg * update versions * fix atk linux * fix libgpod * update versions * fix lcm * fix librsvg * update pango and pangomm * update pango to meson * more updates * update pixman * fix cairo * fix cairo * some fixes * reorder meson a bit * add none.txt for meson * fix x86_x64 to x86 "cross" builds * add tiff pkgconfig * update gdk-pixbuf * fix tiff and jpeg * add graphene * fix gdk-pixbuf * add sassc * update gtk * fix cairo complete build * add harfbuzz inlcude in pango since meson does not add it into pkgconfig. * fix gtk build. Remaining issue fix install script. * fix gtk build * fix io2d * add supports field * fix cartographer? * fix librsvg build * fix gtk build * fix cartographer * fix sassc on linux * fix tiff and libjpeg pc files * fix pixman x86 * _isnanf is undefined on arm- * merge fix for make on arm64 * fix gdk-pixbuf on arm64-windows * pixman remove test/demos. should fix it on osx. * [vcpkg_install_meson] add bin to path to run code generators * [vcpkg_configure_meson] deactivate native compiler in cross builds make x86 on x86_x64 a native instead of a cross build (as long as we are not building for UWP) * pixman reenable UWP support. * pixman reenable arm support * add pixman:arm-uwp=fail to baseline * update gtkmm * remove double whitespaces * gtk baseline gtk dependency on cairo x11 remove double spaces in flags * fix linux build * native none again * cairo fix cairo-script.pc * comment out patch since the cairo changes should have fixed it. * disable wayland backend in GTK since CI is missing system packages * silly typo in cairo pc file correction install lzo pc on windows * remove double spaces in _FLAGS remove unnecessary comments * actually disabling wayland backend * fix glib codegen issue having the wrong path * try to fix paths in glib codegen * integrate changes form #12860 * add the uwp patch back in * deactivate extra harfbuzz shapers. * vcpkg x-add-version --all --overwrite-version * remove patches in tesseract. * fix version * rerun add-version * add libgpod:x64-linux=fail to baseline due to missing system tools/libraries * change regex to take double - into account. * run x-add-version * run format-manifest * add missing removal of multiple spaces back into the regex * remove ws diff change * fix gtkmm the upstream way * remove ws to reduce diff * make glib build on osx * format manifest * run x-add-version * add pthread dependency * update baseline due to glib compiling on osx now. * add meson as a dep to glib * - add glib host dependencies - switch to manifest of touched ports * switch to manifest. * [libxml2] add gnuinstalldirs * [libxml2] add missing include of GNUInstallDirs * add version info * add include dir to pc files .... * update version * add UWP as crosscompiling target * Apply suggestions from code review * trying to fix cairo pthread detection on osx. * fix libmicrohttpd by adding the required system frameworks on osx * fix poppler by not removing the CXX standard * fix missing coretext header from harfbuzz in pano * fix formating issues * fix librsvg on osx * revert version changes * bump version * version stuff. * fix graphene version stuff * fix version stuff * removing ports from ci baseline to cause me pain * move cairomm:x64-linux=fail to gtkmm:x64-linx=fail remove pangomm:x64-osx=fail * fix typo * revert ws changes to vcpkg_install_meson * update port version after merge * version stuff * fix fluidsynth by adding vcpkg_check_features * move cairo to ci baseline on osx * version stuff * fluidsynth corrections * more version stuff * apply code review changes * clean version stuff. * update version stuff * code review cleanup * version stuff * formating * update version stuff again * remove gdi again * version stuff * version stuff * version baseline * Apply strega-nil suggestions from code review * run x-add-version * reset versions to upstream/master * v8 CONTROL -> json * reset fluidsynth to upstream/master * first batch of version-string -> version conversion * second and last batch of version-string -> version conversions * update version stuff * disable gdi feature in harfbuzz (missing user32 linkage in qt5-base) * version stuff * Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * more CR stuff * update versions * back out provision changes so that pr can be merged. Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
152 lines
4.2 KiB
CMake
152 lines
4.2 KiB
CMake
cmake_minimum_required(VERSION 3.11)
|
|
project(librsvg C)
|
|
|
|
find_package(unofficial-libcroco CONFIG REQUIRED)
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(GLIB2 glib-2.0 gobject-2.0 gmodule-2 gio-2 IMPORTED_TARGET)
|
|
pkg_check_modules(CAIRO cairo IMPORTED_TARGET)
|
|
pkg_check_modules(GDK_PIXBUF gdk-pixbuf-2.0 IMPORTED_TARGET)
|
|
pkg_check_modules(PANGO pango pangocairo IMPORTED_TARGET)
|
|
find_package(LibXml2 REQUIRED)
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
else()
|
|
pkg_check_modules(PANGO2 pangoft2 pangofc IMPORTED_TARGET)
|
|
set(PANGO_FT2_LIB PkgConfig::PANGO2)
|
|
endif()
|
|
|
|
# Add include directories
|
|
include_directories(${CAIRO_INCLUDE_DIRS} ${GDK_PIXBUF_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS} ${PANGO_INCLUDE_DIRS} ${PANGO2_INCLUDE_DIRS})
|
|
|
|
set(LIBRSVG_SOURCES
|
|
librsvg-features.c
|
|
rsvg-css.c
|
|
rsvg-css.h
|
|
rsvg-compat.h
|
|
rsvg-defs.c
|
|
rsvg-defs.h
|
|
rsvg-image.c
|
|
rsvg-image.h
|
|
rsvg-io.c
|
|
rsvg-io.h
|
|
rsvg-paint-server.c
|
|
rsvg-paint-server.h
|
|
rsvg-path.c
|
|
rsvg-path.h
|
|
rsvg-private.h
|
|
rsvg-base-file-util.c
|
|
rsvg-filter.c
|
|
rsvg-filter.h
|
|
rsvg-marker.c
|
|
rsvg-marker.h
|
|
rsvg-mask.c
|
|
rsvg-mask.h
|
|
rsvg-shapes.c
|
|
rsvg-shapes.h
|
|
rsvg-structure.c
|
|
rsvg-structure.h
|
|
rsvg-styles.c
|
|
rsvg-styles.h
|
|
rsvg-text.c
|
|
rsvg-text.h
|
|
rsvg-cond.c
|
|
rsvg-base.c
|
|
librsvg-enum-types.c
|
|
rsvg-cairo-draw.c
|
|
rsvg-cairo-draw.h
|
|
rsvg-cairo-render.c
|
|
rsvg-cairo-render.h
|
|
rsvg-cairo-clip.h
|
|
rsvg-cairo-clip.c
|
|
rsvg.c
|
|
rsvg-gobject.c
|
|
rsvg-file-util.c
|
|
rsvg-size-callback.c
|
|
rsvg-size-callback.h
|
|
rsvg-xml.c
|
|
rsvg-xml.h
|
|
rsvg.h
|
|
rsvg-cairo.h
|
|
librsvg-features.h
|
|
librsvg-enum-types.h
|
|
)
|
|
|
|
set(PIXBUFLOADERSVG_SOURCES
|
|
gdk-pixbuf-loader/io-svg.c
|
|
)
|
|
|
|
if(WIN32)
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.win32 ${CMAKE_CURRENT_SOURCE_DIR}/config.h COPYONLY)
|
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/rsvg.def
|
|
COMMAND echo "EXPORTS" > ${CMAKE_CURRENT_SOURCE_DIR}/rsvg.def
|
|
COMMAND ${CMAKE_C_COMPILER} /EP ${CMAKE_CURRENT_SOURCE_DIR}/rsvg.symbols >> ${CMAKE_CURRENT_SOURCE_DIR}/rsvg.def)
|
|
list(APPEND LIBRSVG_SOURCES rsvg.def)
|
|
else()
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.linux ${CMAKE_CURRENT_SOURCE_DIR}/config.h COPYONLY)
|
|
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})
|
|
|
|
target_compile_definitions(rsvg-2.40 PRIVATE -DRSVG_COMPILATION -D_CRT_SECURE_NO_WARNINGS -DSRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
target_include_directories(pixbufloader-svg PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_compile_definitions(pixbufloader-svg PRIVATE
|
|
-DRSVG_COMPILATION
|
|
-D_CRT_SECURE_NO_WARNINGS
|
|
-DSRCDIR="${CMAKE_CURRENT_SOURCE_DIR}"
|
|
-DGDK_PIXBUF_ENABLE_BACKEND
|
|
-DG_LOG_DOMAIN="libpixbufloader-svg")
|
|
|
|
target_link_libraries(rsvg-2.40 PRIVATE
|
|
PkgConfig::GLIB2
|
|
${LIBXML2_LIBRARIES}
|
|
PkgConfig::PANGO
|
|
PkgConfig::GDK_PIXBUF
|
|
${PANGO_FT2_LIB}
|
|
unofficial::libcroco::croco-0.6
|
|
)
|
|
target_link_libraries(pixbufloader-svg PRIVATE
|
|
rsvg-2.40
|
|
PkgConfig::GLIB2
|
|
PkgConfig::GDK_PIXBUF
|
|
)
|
|
|
|
install(TARGETS rsvg-2.40 pixbufloader-svg
|
|
EXPORT librsvg-targets
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
|
|
install(
|
|
EXPORT librsvg-targets
|
|
NAMESPACE unofficial::librsvg::
|
|
FILE unofficial-librsvg-targets.cmake
|
|
DESTINATION share/unofficial-librsvg
|
|
)
|
|
|
|
install(FILES
|
|
rsvg.h
|
|
rsvg-cairo.h
|
|
librsvg-features.h
|
|
librsvg-enum-types.h
|
|
DESTINATION include/librsvg
|
|
)
|
|
|
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/unofficial-librsvg-config.cmake "
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(PkgConfig)
|
|
pkg_check_modules(GLIB2 glib-2.0 gobject-2.0 gmodule-2 gio-2 IMPORTED_TARGET)
|
|
pkg_check_modules(CAIRO cairo IMPORTED_TARGET)
|
|
pkg_check_modules(GDK_PIXBUF gdk-pixbuf IMPORTED_TARGET)
|
|
pkg_check_modules(PANGO pango pangocairo IMPORTED_TARGET)
|
|
find_dependency(unofficial-libcroco CONFIG)
|
|
|
|
include(\${CMAKE_CURRENT_LIST_DIR}/unofficial-librsvg-targets.cmake)
|
|
")
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-librsvg-config.cmake DESTINATION share/unofficial-librsvg)
|