summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /src/3rdparty/CMakeLists.txt
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/3rdparty/CMakeLists.txt')
-rw-r--r--src/3rdparty/CMakeLists.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/3rdparty/CMakeLists.txt b/src/3rdparty/CMakeLists.txt
new file mode 100644
index 0000000..540ee1c
--- /dev/null
+++ b/src/3rdparty/CMakeLists.txt
@@ -0,0 +1,39 @@
+add_subdirectory(libuemf)
+add_subdirectory(libcroco)
+add_subdirectory(libdepixelize)
+add_subdirectory(adaptagrams)
+add_subdirectory(autotrace)
+
+if(WITH_INTERNAL_2GEOM)
+ set(2GEOM_BUILD_SHARED ${BUILD_SHARED_LIBS} CACHE BOOL "")
+ add_subdirectory(2geom)
+endif()
+
+if(WITH_INTERNAL_CAIRO)
+ include(ExternalProject)
+ if(WIN32)
+ # Overwrites system cairo
+ ExternalProject_Add(cairo_ext
+ PREFIX cairo
+ GIT_REPOSITORY https://gitlab.freedesktop.org/cairo/cairo.git
+ GIT_TAG 1.17.6
+ GIT_SHALLOW TRUE
+ SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cairo
+ PATCH_COMMAND git checkout ${CMAKE_CURRENT_SOURCE_DIR}/cairo/src && git apply --unsafe-paths --directory ${CMAKE_CURRENT_SOURCE_DIR}/cairo/ ${CMAKE_SOURCE_DIR}/packaging/cairo.patch
+ CONFIGURE_COMMAND meson setup --buildtype=debugoptimized -Dgtk_doc=false . ${CMAKE_CURRENT_SOURCE_DIR}/cairo && ninja clean
+ BUILD_COMMAND meson compile
+ INSTALL_COMMAND meson install
+ )
+ else()
+ ExternalProject_Add(cairo_ext
+ PREFIX cairo
+ GIT_REPOSITORY https://gitlab.freedesktop.org/cairo/cairo.git
+ GIT_TAG 1.17.6
+ GIT_SHALLOW TRUE
+ SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cairo
+ PATCH_COMMAND git checkout ${CMAKE_CURRENT_SOURCE_DIR}/cairo/src && git apply --unsafe-paths --directory ${CMAKE_CURRENT_SOURCE_DIR}/cairo/ ${CMAKE_SOURCE_DIR}/packaging/cairo.patch
+ BUILD_COMMAND make -j16
+ CONFIGURE_COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/cairo/autogen.sh" --prefix=${CMAKE_INSTALL_PREFIX} --disable-trace --disable-script-interpreter --libdir=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} && make clean
+ )
+ endif()
+endif()