From 4d2405e8e59b7f1c4b13872dafed3c7d13ebd966 Mon Sep 17 00:00:00 2001 From: Pursche Date: Sun, 20 Oct 2024 00:44:14 +0200 Subject: [PATCH] Clean up unnecessary files from msdfgen and msdf-atlas-gen --- Dependencies/msdf-atlas-gen/.gitattributes | 1 - Dependencies/msdf-atlas-gen/.gitmodules | 6 - Dependencies/msdf-atlas-gen/CMakeLists.txt | 207 ----------- Dependencies/msdf-atlas-gen/CMakePresets.json | 155 --------- .../msdf-atlas-gen/cmake/CMakePresets.json | 154 -------- .../cmake/msdf-atlas-gen-config.cmake.in | 21 -- .../msdf-atlas-gen/cmake/version.cmake | 19 - Dependencies/msdfgen/msdfgen/.gitattributes | 1 - Dependencies/msdfgen/msdfgen/CMakeLists.txt | 328 ------------------ .../msdfgen/msdfgen/CMakePresets.json | 239 ------------- .../msdfgen/msdfgen/cmake/CMakePresets.json | 170 --------- .../msdfgen/msdfgen/cmake/msdfgen-config.h.in | 12 - .../msdfgen/cmake/msdfgenConfig.cmake.in | 48 --- .../msdfgen/msdfgen/cmake/version.cmake | 19 - 14 files changed, 1380 deletions(-) delete mode 100644 Dependencies/msdf-atlas-gen/.gitattributes delete mode 100644 Dependencies/msdf-atlas-gen/.gitmodules delete mode 100644 Dependencies/msdf-atlas-gen/CMakeLists.txt delete mode 100644 Dependencies/msdf-atlas-gen/CMakePresets.json delete mode 100644 Dependencies/msdf-atlas-gen/cmake/CMakePresets.json delete mode 100644 Dependencies/msdf-atlas-gen/cmake/msdf-atlas-gen-config.cmake.in delete mode 100644 Dependencies/msdf-atlas-gen/cmake/version.cmake delete mode 100644 Dependencies/msdfgen/msdfgen/.gitattributes delete mode 100644 Dependencies/msdfgen/msdfgen/CMakeLists.txt delete mode 100644 Dependencies/msdfgen/msdfgen/CMakePresets.json delete mode 100644 Dependencies/msdfgen/msdfgen/cmake/CMakePresets.json delete mode 100644 Dependencies/msdfgen/msdfgen/cmake/msdfgen-config.h.in delete mode 100644 Dependencies/msdfgen/msdfgen/cmake/msdfgenConfig.cmake.in delete mode 100644 Dependencies/msdfgen/msdfgen/cmake/version.cmake diff --git a/Dependencies/msdf-atlas-gen/.gitattributes b/Dependencies/msdf-atlas-gen/.gitattributes deleted file mode 100644 index 176a458..0000000 --- a/Dependencies/msdf-atlas-gen/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto diff --git a/Dependencies/msdf-atlas-gen/.gitmodules b/Dependencies/msdf-atlas-gen/.gitmodules deleted file mode 100644 index 64238d0..0000000 --- a/Dependencies/msdf-atlas-gen/.gitmodules +++ /dev/null @@ -1,6 +0,0 @@ -[submodule "msdfgen"] - path = msdfgen - url = https://github.com/Chlumsky/msdfgen -[submodule "artery-font-format"] - path = artery-font-format - url = https://github.com/Chlumsky/artery-font-format diff --git a/Dependencies/msdf-atlas-gen/CMakeLists.txt b/Dependencies/msdf-atlas-gen/CMakeLists.txt deleted file mode 100644 index d2b1f6b..0000000 --- a/Dependencies/msdf-atlas-gen/CMakeLists.txt +++ /dev/null @@ -1,207 +0,0 @@ - -cmake_minimum_required(VERSION 3.15) -include(cmake/version.cmake) - -option(MSDF_ATLAS_BUILD_STANDALONE "Build the msdf-atlas-gen standalone executable" ON) -option(MSDF_ATLAS_USE_VCPKG "Use vcpkg package manager to link project dependencies" ON) -option(MSDF_ATLAS_USE_SKIA "Build with the Skia library" ON) -option(MSDF_ATLAS_NO_ARTERY_FONT "Disable Artery Font export and do not require its submodule" OFF) -option(MSDF_ATLAS_MSDFGEN_EXTERNAL "Do not build the msdfgen submodule but find it as an external package" OFF) -option(MSDF_ATLAS_INSTALL "Generate installation target" OFF) -option(MSDF_ATLAS_DYNAMIC_RUNTIME "Link dynamic runtime library instead of static" OFF) -option(BUILD_SHARED_LIBS "Generate dynamic library files instead of static" OFF) - -if(NOT MSDF_ATLAS_MSDFGEN_EXTERNAL) - set(MSDFGEN_DISABLE_SVG ON CACHE BOOL "Disable unused SVG functionality to minimize dependencies") - set(MSDFGEN_CORE_ONLY OFF CACHE INTERNAL "Only build the core msdfgen library with no dependencies (disabled for msdf-atlas-gen)" FORCE) - set(MSDFGEN_BUILD_STANDALONE OFF CACHE BOOL "Build the msdfgen standalone executable") - set(MSDFGEN_USE_VCPKG ${MSDF_ATLAS_USE_VCPKG} CACHE INTERNAL "Use vcpkg package manager to link msdfgen project dependencies" FORCE) - set(MSDFGEN_USE_OPENMP OFF CACHE INTERNAL "Build with OpenMP support for multithreaded code (disabled for msdf-atlas-gen)" FORCE) - set(MSDFGEN_USE_CPP11 ON CACHE INTERNAL "Build with C++11 enabled (always enabled for msdf-atlas-gen)" FORCE) - set(MSDFGEN_USE_SKIA ${MSDF_ATLAS_USE_SKIA} CACHE INTERNAL "Build msdfgen with the Skia library" FORCE) - set(MSDFGEN_INSTALL ${MSDF_ATLAS_INSTALL} CACHE INTERNAL "Generate installation target for msdfgen" FORCE) - set(MSDFGEN_DYNAMIC_RUNTIME ${MSDF_ATLAS_DYNAMIC_RUNTIME} CACHE INTERNAL "Link dynamic runtime library instead of static for msdfgen" FORCE) -endif() - -get_property(MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) -if(NOT MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE) - message(STATUS "CMAKE_BUILD_TYPE not set, defaulting to Release") - set(CMAKE_BUILD_TYPE Release) -endif() - -if(MSDF_ATLAS_DYNAMIC_RUNTIME) - set(MSDF_ATLAS_MSVC_RUNTIME "MultiThreaded$<$:Debug>DLL") -else() - set(MSDF_ATLAS_MSVC_RUNTIME "MultiThreaded$<$:Debug>") -endif() - -if(BUILD_SHARED_LIBS) - set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) -endif() - -if(MSDF_ATLAS_USE_VCPKG) - # Make sure that vcpkg toolchain file is set - if(NOT CMAKE_TOOLCHAIN_FILE) - if(DEFINED ENV{VCPKG_ROOT}) - set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake") - else() - message(SEND_ERROR "Vcpkg toolchain not configured. Either set VCPKG_ROOT environment variable or pass -DCMAKE_TOOLCHAIN_FILE=VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake to cmake") - endif() - endif() - # Default to statically linked vcpkg triplet on Windows - if(WIN32 AND NOT VCPKG_TARGET_TRIPLET AND NOT MSDF_ATLAS_DYNAMIC_RUNTIME) - if(CMAKE_GENERATOR_PLATFORM MATCHES "64$" AND NOT CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64") - set(VCPKG_TARGET_TRIPLET "x64-windows-static") - elseif(CMAKE_GENERATOR_PLATFORM MATCHES "32$" OR CMAKE_GENERATOR_PLATFORM STREQUAL "x86") - set(VCPKG_TARGET_TRIPLET "x86-windows-static") - else() - if(CMAKE_GENERATOR_PLATFORM) - message(WARNING "Vcpkg triplet not explicitly specified and could not be deduced. Recommend using -DVCPKG_TARGET_TRIPLET=x64-windows-static or similar") - else() - message(WARNING "Vcpkg triplet not explicitly specified and could not be deduced. Recommend using -A to explicitly select platform (Win32 or x64)") - endif() - endif() - endif() - # Select project features - if(NOT MSDF_ATLAS_VCPKG_FEATURES_SET) - set(VCPKG_MANIFEST_NO_DEFAULT_FEATURES ON) - if(MSDF_ATLAS_USE_SKIA) - list(APPEND VCPKG_MANIFEST_FEATURES "geometry-preprocessing") - endif() - endif() - set(MSDFGEN_VCPKG_FEATURES_SET ON) -endif() - -# Version is specified in vcpkg.json -project(msdf-atlas-gen VERSION ${MSDF_ATLAS_VERSION} LANGUAGES CXX) - -if(MSDF_ATLAS_MSDFGEN_EXTERNAL) - if(NOT TARGET msdfgen::msdfgen) - find_package(msdfgen REQUIRED) - endif() -else() - add_subdirectory(msdfgen) -endif() -find_package(Threads REQUIRED) -if(NOT MSDFGEN_DISABLE_PNG AND NOT TARGET PNG::PNG) - find_package(PNG REQUIRED) -endif() - -file(GLOB_RECURSE MSDF_ATLAS_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "msdf-atlas-gen/*.h" "msdf-atlas-gen/*.hpp") -file(GLOB_RECURSE MSDF_ATLAS_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "msdf-atlas-gen/*.cpp") - -# msdf-atlas-gen library -add_library(msdf-atlas-gen ${MSDF_ATLAS_HEADERS} ${MSDF_ATLAS_SOURCES}) -add_library(msdf-atlas-gen::msdf-atlas-gen ALIAS msdf-atlas-gen) -set_target_properties(msdf-atlas-gen PROPERTIES PUBLIC_HEADER "${MSDF_ATLAS_HEADERS}") -set_property(TARGET msdf-atlas-gen PROPERTY MSVC_RUNTIME_LIBRARY "${MSDF_ATLAS_MSVC_RUNTIME}") -target_compile_definitions(msdf-atlas-gen PUBLIC - MSDF_ATLAS_VERSION=${MSDF_ATLAS_VERSION} - MSDF_ATLAS_VERSION_MAJOR=${MSDF_ATLAS_VERSION_MAJOR} - MSDF_ATLAS_VERSION_MINOR=${MSDF_ATLAS_VERSION_MINOR} - MSDF_ATLAS_VERSION_REVISION=${MSDF_ATLAS_VERSION_REVISION} - MSDF_ATLAS_COPYRIGHT_YEAR=${MSDF_ATLAS_COPYRIGHT_YEAR} -) -target_include_directories(msdf-atlas-gen INTERFACE - $ - $ -) -if(MSDF_ATLAS_NO_ARTERY_FONT) - target_compile_definitions(msdf-atlas-gen PUBLIC MSDF_ATLAS_NO_ARTERY_FONT) -else() - target_include_directories(msdf-atlas-gen PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/artery-font-format) -endif() -set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT msdf-atlas-gen) - -target_compile_features(msdf-atlas-gen PUBLIC cxx_std_11) -target_link_libraries(msdf-atlas-gen PRIVATE Threads::Threads) -if(NOT MSDFGEN_DISABLE_PNG) - target_link_libraries(msdf-atlas-gen PRIVATE PNG::PNG) -endif() -target_link_libraries(msdf-atlas-gen PUBLIC msdfgen::msdfgen) - -if(BUILD_SHARED_LIBS AND WIN32) - target_compile_definitions(msdf-atlas-gen PRIVATE "MSDF_ATLAS_PUBLIC=__declspec(dllexport)") - target_compile_definitions(msdf-atlas-gen INTERFACE "MSDF_ATLAS_PUBLIC=__declspec(dllimport)") -else() - target_compile_definitions(msdf-atlas-gen PUBLIC MSDF_ATLAS_PUBLIC=) -endif() - -# msdf-atlas-gen standalone executable -if(MSDF_ATLAS_BUILD_STANDALONE) - set(MSDF_ATLAS_STANDALONE_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/msdf-atlas-gen/main.cpp") - if(MSVC) - set(MSDF_ATLAS_STANDALONE_SOURCES ${MSDF_ATLAS_STANDALONE_SOURCES} "${CMAKE_CURRENT_SOURCE_DIR}/msdf-atlas-gen.rc") - endif() - add_executable(msdf-atlas-gen-standalone ${MSDF_ATLAS_STANDALONE_SOURCES}) - target_compile_definitions(msdf-atlas-gen-standalone PUBLIC MSDF_ATLAS_STANDALONE) - target_compile_definitions(msdf-atlas-gen-standalone PRIVATE MSDF_ATLAS_VERSION_UNDERLINE=${MSDF_ATLAS_VERSION_UNDERLINE}) - set_property(TARGET msdf-atlas-gen-standalone PROPERTY MSVC_RUNTIME_LIBRARY "${MSDF_ATLAS_MSVC_RUNTIME}") - set_target_properties(msdf-atlas-gen-standalone PROPERTIES - OUTPUT_NAME msdf-atlas-gen - ARCHIVE_OUTPUT_NAME msdf-atlas-gen-standalone - # Avoid deleting msdf-atlas-gen.lib during clean - ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - target_link_libraries(msdf-atlas-gen-standalone PRIVATE msdf-atlas-gen::msdf-atlas-gen) - set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT msdf-atlas-gen-standalone) -endif() - -# Installation -if(MSDF_ATLAS_INSTALL) - include(GNUInstallDirs) - include(CMakePackageConfigHelpers) - set(MSDF_ATLAS_CONFIG_PATH "lib/cmake/msdf-atlas-gen") - - # install tree package config - write_basic_package_version_file( - "${CMAKE_CURRENT_BINARY_DIR}/msdf-atlas-gen-config-version.cmake" - VERSION ${PROJECT_VERSION} - COMPATIBILITY SameMajorVersion - ) - - configure_package_config_file( - cmake/msdf-atlas-gen-config.cmake.in - ${MSDF_ATLAS_CONFIG_PATH}/msdf-atlas-gen-config.cmake - INSTALL_DESTINATION ${MSDF_ATLAS_CONFIG_PATH} - NO_CHECK_REQUIRED_COMPONENTS_MACRO - ) - - # build tree package config - configure_file( - cmake/msdf-atlas-gen-config.cmake.in - msdf-atlas-gen-config.cmake - @ONLY - ) - - install(TARGETS msdf-atlas-gen EXPORT msdf-atlas-gen-targets - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR} - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/msdf-atlas-gen - ) - if(MSVC AND BUILD_SHARED_LIBS) - install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL) - endif() - - export(EXPORT msdf-atlas-gen-targets NAMESPACE msdf-atlas-gen:: FILE "${CMAKE_CURRENT_BINARY_DIR}/msdf-atlas-gen-targets.cmake") - install(EXPORT msdf-atlas-gen-targets FILE msdf-atlas-gen-targets.cmake NAMESPACE msdf-atlas-gen:: DESTINATION ${MSDF_ATLAS_CONFIG_PATH}) - - if(MSDF_ATLAS_BUILD_STANDALONE) - install(TARGETS msdf-atlas-gen-standalone EXPORT msdf-atlas-gen-binary-targets DESTINATION ${CMAKE_INSTALL_BINDIR}) - if(MSVC) - install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL) - endif() - export(EXPORT msdf-atlas-gen-binary-targets NAMESPACE msdf-atlas-gen-standalone:: FILE "${CMAKE_CURRENT_BINARY_DIR}/msdf-atlas-gen-binary-targets.cmake") - install(EXPORT msdf-atlas-gen-binary-targets FILE msdf-atlas-gen-binary-targets.cmake NAMESPACE msdf-atlas-gen-standalone:: DESTINATION ${MSDF_ATLAS_CONFIG_PATH}) - endif() - - install( - FILES - "${CMAKE_CURRENT_BINARY_DIR}/${MSDF_ATLAS_CONFIG_PATH}/msdf-atlas-gen-config.cmake" - "${CMAKE_CURRENT_BINARY_DIR}/msdf-atlas-gen-config-version.cmake" - DESTINATION ${MSDF_ATLAS_CONFIG_PATH} - ) -endif() diff --git a/Dependencies/msdf-atlas-gen/CMakePresets.json b/Dependencies/msdf-atlas-gen/CMakePresets.json deleted file mode 100644 index 2db4e79..0000000 --- a/Dependencies/msdf-atlas-gen/CMakePresets.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "version": 4, - "cmakeMinimumRequired": { - "major": 3, - "minor": 23, - "patch": 0 - }, - "include": [ - "cmake/CMakePresets.json" - ], - "configurePresets": [ - { - "name": "win64", - "displayName": "Windows x64 default config (static, vcpkg, Skia)", - "inherits": [ "win64-base", "vcpkg", "skia" ] - }, { - "name": "win32", - "displayName": "Windows x86 default config (static, vcpkg, Skia)", - "inherits": [ "win32-base", "vcpkg", "skia" ] - }, { - "name": "win64-dynamic", - "displayName": "Windows x64 dynamic config (vcpkg, Skia)", - "inherits": [ "win64-base", "vcpkg", "skia", "dynamic-runtime", "dynamic-lib" ], - "binaryDir": "${sourceDir}/build/win64-dynamic" - }, { - "name": "win32-dynamic", - "displayName": "Windows x86 dynamic config (vcpkg, Skia)", - "inherits": [ "win32-base", "vcpkg", "skia", "dynamic-runtime", "dynamic-lib" ], - "binaryDir": "${sourceDir}/build/win32-dynamic" - }, { - "name": "win64-no-skia", - "displayName": "Windows x64 config without Skia (static, vcpkg)", - "inherits": [ "win64-base", "vcpkg", "no-skia" ] - }, { - "name": "win32-no-skia", - "displayName": "Windows x86 config without Skia (static, vcpkg)", - "inherits": [ "win32-base", "vcpkg", "no-skia" ] - }, - - { - "name": "osx-vcpkg-rel", - "displayName": "Mac OS release config with vcpkg and Skia (static)", - "inherits": [ "osx-rel-base", "vcpkg", "skia" ] - }, { - "name": "osx-vcpkg-dbg", - "displayName": "Mac OS debug config with vcpkg and Skia (static)", - "inherits": [ "osx-dbg-base", "vcpkg", "skia" ] - }, { - "name": "osx-no-skia-rel", - "displayName": "Mac OS release config with system libraries and no Skia (static, install)", - "inherits": [ "osx-rel-base", "no-vcpkg", "no-skia", "install" ] - }, { - "name": "osx-no-skia-dbg", - "displayName": "Mac OS debug config with system libraries and no Skia (static, install)", - "inherits": [ "osx-dbg-base", "no-vcpkg", "no-skia", "install" ] - }, - - { - "name": "linux-vcpkg-rel", - "displayName": "Linux release config with vcpkg and Skia (static)", - "inherits": [ "linux-rel-base", "vcpkg", "skia" ] - }, { - "name": "linux-vcpkg-dbg", - "displayName": "Linux debug config with vcpkg and Skia (static)", - "inherits": [ "linux-dbg-base", "vcpkg", "skia" ] - }, { - "name": "linux-no-skia-rel", - "displayName": "Linux release config with system libraries and no Skia (static, install)", - "inherits": [ "linux-rel-base", "no-vcpkg", "no-skia", "install" ] - }, { - "name": "linux-no-skia-dbg", - "displayName": "Linux debug config with system libraries and no Skia (static, install)", - "inherits": [ "linux-dbg-base", "no-vcpkg", "no-skia", "install" ] - } - ], - "buildPresets": [ - { - "name": "win64-rel", - "configurePreset": "win64", - "configuration": "Release" - }, { - "name": "win64-dbg", - "configurePreset": "win64", - "configuration": "Debug" - }, { - "name": "win32-rel", - "configurePreset": "win32", - "configuration": "Release" - }, { - "name": "win32-dbg", - "configurePreset": "win32", - "configuration": "Debug" - }, { - "name": "win64-dynamic-rel", - "configurePreset": "win64-dynamic", - "configuration": "Release" - }, { - "name": "win64-dynamic-dbg", - "configurePreset": "win64-dynamic", - "configuration": "Debug" - }, { - "name": "win32-dynamic-rel", - "configurePreset": "win32-dynamic", - "configuration": "Release" - }, { - "name": "win32-dynamic-dbg", - "configurePreset": "win32-dynamic", - "configuration": "Debug" - }, { - "name": "win64-no-skia-rel", - "configurePreset": "win64-no-skia", - "configuration": "Release" - }, { - "name": "win64-no-skia-dbg", - "configurePreset": "win64-no-skia", - "configuration": "Debug" - }, { - "name": "win32-no-skia-rel", - "configurePreset": "win32-no-skia", - "configuration": "Release" - }, { - "name": "win32-no-skia-dbg", - "configurePreset": "win32-no-skia", - "configuration": "Debug" - }, - - { - "name": "osx-vcpkg-rel", - "configurePreset": "osx-vcpkg-rel" - }, { - "name": "osx-vcpkg-dbg", - "configurePreset": "osx-vcpkg-dbg" - }, { - "name": "osx-no-skia-rel", - "configurePreset": "osx-no-skia-rel" - }, { - "name": "osx-no-skia-dbg", - "configurePreset": "osx-no-skia-dbg" - }, - - { - "name": "linux-vcpkg-rel", - "configurePreset": "linux-vcpkg-rel" - }, { - "name": "linux-vcpkg-dbg", - "configurePreset": "linux-vcpkg-dbg" - }, { - "name": "linux-no-skia-rel", - "configurePreset": "linux-no-skia-rel" - }, { - "name": "linux-no-skia-dbg", - "configurePreset": "linux-no-skia-dbg" - } - ] -} diff --git a/Dependencies/msdf-atlas-gen/cmake/CMakePresets.json b/Dependencies/msdf-atlas-gen/cmake/CMakePresets.json deleted file mode 100644 index a3eec35..0000000 --- a/Dependencies/msdf-atlas-gen/cmake/CMakePresets.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "version": 4, - "cmakeMinimumRequired": { - "major": 3, - "minor": 23, - "patch": 0 - }, - "configurePresets": [ - { - "name": "release-only", - "displayName": "Release only configuration", - "hidden": true, - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release" - } - }, { - "name": "debug-only", - "displayName": "Debug only configuration", - "hidden": true, - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" - } - }, { - "name": "win64-base", - "displayName": "Windows 64-bit base configuration", - "hidden": true, - "architecture": "x64", - "binaryDir": "${sourceDir}/build/win64", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Windows" - } - }, { - "name": "win32-base", - "displayName": "Windows 32-bit base configuration", - "hidden": true, - "architecture": "Win32", - "binaryDir": "${sourceDir}/build/win32", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Windows" - } - }, { - "name": "osx-base", - "displayName": "Mac OS base configuration", - "hidden": true, - "binaryDir": "${sourceDir}/build/osx", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Darwin" - } - }, { - "name": "osx-rel-base", - "displayName": "Mac OS base release configuration", - "inherits": [ "osx-base", "release-only" ], - "hidden": true, - "binaryDir": "${sourceDir}/build/osx-rel" - }, { - "name": "osx-dbg-base", - "displayName": "Mac OS base debug configuration", - "inherits": [ "osx-base", "debug-only" ], - "hidden": true, - "binaryDir": "${sourceDir}/build/osx-dbg" - }, { - "name": "linux-base", - "displayName": "Linux base configuration", - "hidden": true, - "binaryDir": "${sourceDir}/build/linux", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Linux" - } - }, { - "name": "linux-rel-base", - "displayName": "Linux base release configuration", - "inherits": [ "linux-base", "release-only" ], - "hidden": true, - "binaryDir": "${sourceDir}/build/linux-rel" - }, { - "name": "linux-dbg-base", - "displayName": "Linux base debug configuration", - "inherits": [ "linux-base", "debug-only" ], - "hidden": true, - "binaryDir": "${sourceDir}/build/linux-dbg" - }, { - "name": "vcpkg", - "displayName": "Configuration with vcpkg as dependency management system", - "hidden": true, - "cacheVariables": { - "MSDF_ATLAS_USE_VCPKG": "ON" - } - }, { - "name": "no-vcpkg", - "displayName": "Configuration with dependencies not managed by vcpkg", - "hidden": true, - "cacheVariables": { - "MSDF_ATLAS_USE_VCPKG": "OFF" - } - }, { - "name": "skia", - "displayName": "Configuration with Skia geometry preprocessing", - "hidden": true, - "cacheVariables": { - "MSDF_ATLAS_USE_SKIA": "ON" - } - }, { - "name": "no-skia", - "displayName": "Configuration without Skia geometry preprocessing", - "hidden": true, - "cacheVariables": { - "MSDF_ATLAS_USE_SKIA": "OFF" - } - }, { - "name": "install", - "displayName": "Configuration with installation targets", - "hidden": true, - "cacheVariables": { - "MSDF_ATLAS_INSTALL": "ON" - } - }, { - "name": "static-runtime", - "displayName": "Configuration that links against the static runtime", - "hidden": true, - "cacheVariables": { - "MSDF_ATLAS_DYNAMIC_RUNTIME": "OFF" - } - }, { - "name": "dynamic-runtime", - "displayName": "Configuration that links against the dynamic runtime", - "hidden": true, - "cacheVariables": { - "MSDF_ATLAS_DYNAMIC_RUNTIME": "ON" - } - }, { - "name": "static-lib", - "displayName": "Configuration that builds and links msdfgen statically", - "hidden": true, - "cacheVariables": { - "BUILD_SHARED_LIBS": "OFF" - } - }, { - "name": "dynamic-lib", - "displayName": "Configuration that builds and links msdfgen dynamically", - "hidden": true, - "cacheVariables": { - "BUILD_SHARED_LIBS": "ON" - } - } - ] -} diff --git a/Dependencies/msdf-atlas-gen/cmake/msdf-atlas-gen-config.cmake.in b/Dependencies/msdf-atlas-gen/cmake/msdf-atlas-gen-config.cmake.in deleted file mode 100644 index b5b2317..0000000 --- a/Dependencies/msdf-atlas-gen/cmake/msdf-atlas-gen-config.cmake.in +++ /dev/null @@ -1,21 +0,0 @@ - -include(CMakeFindDependencyMacro) - -set(MSDF_ATLAS_STANDALONE_AVAILABLE @MSDF_ATLAS_BUILD_STANDALONE@) -set(MSDF_ATLAS_NO_PNG @MSDFGEN_DISABLE_PNG@) - -if(NOT MSDF_ATLAS_NO_PNG) - find_dependency(PNG REQUIRED) -endif() -find_dependency(msdfgen REQUIRED) - -include("${CMAKE_CURRENT_LIST_DIR}/msdf-atlas-gen-targets.cmake") - -if(MSDF_ATLAS_STANDALONE_AVAILABLE) - include("${CMAKE_CURRENT_LIST_DIR}/msdf-atlas-gen-binary-targets.cmake") - if(${CMAKE_VERSION} VERSION_LESS "3.18.0") - set_target_properties(msdf-atlas-gen-standalone::msdf-atlas-gen-standalone PROPERTIES IMPORTED_GLOBAL TRUE) - endif() - add_executable(msdf-atlas-gen::msdf-atlas-gen-run ALIAS msdf-atlas-gen-standalone::msdf-atlas-gen-standalone) - set(MSDF_ATLAS_GEN_EXECUTABLE "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/msdf-atlas-gen@CMAKE_EXECUTABLE_SUFFIX@") -endif() diff --git a/Dependencies/msdf-atlas-gen/cmake/version.cmake b/Dependencies/msdf-atlas-gen/cmake/version.cmake deleted file mode 100644 index 291f632..0000000 --- a/Dependencies/msdf-atlas-gen/cmake/version.cmake +++ /dev/null @@ -1,19 +0,0 @@ - -# This script reads version from vcpkg.json and sets it to ${MSDF_ATLAS_VERSION} etc. - -cmake_minimum_required(VERSION 3.15) - -file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/../vcpkg.json" MSDF_ATLAS_VCPKG_JSON) - -string(REGEX MATCH "\"version\"[ \t\n\r]*:[ \t\n\r]*\"[^\"]*\"" MSDF_ATLAS_TMP_VERSION_PAIR ${MSDF_ATLAS_VCPKG_JSON}) -string(REGEX REPLACE "\"version\"[ \t\n\r]*:[ \t\n\r]*\"([^\"]*)\"" "\\1" MSDF_ATLAS_VERSION ${MSDF_ATLAS_TMP_VERSION_PAIR}) -string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)" "\\1" MSDF_ATLAS_VERSION_MAJOR ${MSDF_ATLAS_VERSION}) -string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)" "\\2" MSDF_ATLAS_VERSION_MINOR ${MSDF_ATLAS_VERSION}) -string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)" "\\3" MSDF_ATLAS_VERSION_REVISION ${MSDF_ATLAS_VERSION}) -string(LENGTH ${MSDF_ATLAS_VERSION} MSDF_ATLAS_VERSION_LENGTH) -string(REPEAT "-" ${MSDF_ATLAS_VERSION_LENGTH} MSDF_ATLAS_VERSION_UNDERLINE) -string(TIMESTAMP MSDF_ATLAS_COPYRIGHT_YEAR "%Y") - -unset(MSDF_ATLAS_TMP_VERSION_PAIR) -unset(MSDF_ATLAS_VERSION_LENGTH) -unset(MSDF_ATLAS_VCPKG_JSON) diff --git a/Dependencies/msdfgen/msdfgen/.gitattributes b/Dependencies/msdfgen/msdfgen/.gitattributes deleted file mode 100644 index 176a458..0000000 --- a/Dependencies/msdfgen/msdfgen/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto diff --git a/Dependencies/msdfgen/msdfgen/CMakeLists.txt b/Dependencies/msdfgen/msdfgen/CMakeLists.txt deleted file mode 100644 index 44e8fe0..0000000 --- a/Dependencies/msdfgen/msdfgen/CMakeLists.txt +++ /dev/null @@ -1,328 +0,0 @@ - -cmake_minimum_required(VERSION 3.15) -include(cmake/version.cmake) - -option(MSDFGEN_CORE_ONLY "Only build the core library with no dependencies" OFF) -option(MSDFGEN_BUILD_STANDALONE "Build the msdfgen standalone executable" ON) -option(MSDFGEN_USE_VCPKG "Use vcpkg package manager to link project dependencies" ON) -option(MSDFGEN_USE_OPENMP "Build with OpenMP support for multithreaded code" OFF) -option(MSDFGEN_USE_CPP11 "Build with C++11 enabled" ON) -option(MSDFGEN_USE_SKIA "Build with the Skia library" ON) -option(MSDFGEN_INSTALL "Generate installation target" OFF) -option(MSDFGEN_DYNAMIC_RUNTIME "Link dynamic runtime library instead of static" OFF) -option(BUILD_SHARED_LIBS "Generate dynamic library files instead of static" OFF) - -if(MSDFGEN_CORE_ONLY AND MSDFGEN_USE_VCPKG) - message(STATUS "Option MSDFGEN_USE_VCPKG ignored due to MSDFGEN_CORE_ONLY - core has no dependencies") - set(MSDFGEN_USE_VCPKG OFF) -endif() - -get_property(MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) -if(NOT MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE) - message(STATUS "CMAKE_BUILD_TYPE not set, defaulting to Release") - set(CMAKE_BUILD_TYPE Release) -endif() - -if(MSDFGEN_USE_VCPKG) - # Make sure that vcpkg toolchain file is set - if(NOT CMAKE_TOOLCHAIN_FILE) - if(DEFINED ENV{VCPKG_ROOT}) - set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake") - else() - message(SEND_ERROR "Vcpkg toolchain not configured. Either set VCPKG_ROOT environment variable or pass -DCMAKE_TOOLCHAIN_FILE=VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake to cmake") - endif() - endif() - # Default to statically linked vcpkg triplet on Windows - if(WIN32 AND NOT VCPKG_TARGET_TRIPLET AND NOT MSDFGEN_DYNAMIC_RUNTIME) - if(CMAKE_GENERATOR_PLATFORM MATCHES "64$" AND NOT CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64") - set(VCPKG_TARGET_TRIPLET "x64-windows-static") - elseif(CMAKE_GENERATOR_PLATFORM MATCHES "32$" OR CMAKE_GENERATOR_PLATFORM STREQUAL "x86") - set(VCPKG_TARGET_TRIPLET "x86-windows-static") - else() - if(CMAKE_GENERATOR_PLATFORM) - message(WARNING "Vcpkg triplet not explicitly specified and could not be deduced. Recommend using -DVCPKG_TARGET_TRIPLET=x64-windows-static or similar") - else() - message(WARNING "Vcpkg triplet not explicitly specified and could not be deduced. Recommend using -A to explicitly select platform (Win32 or x64)") - endif() - endif() - endif() - # Select project features - if(NOT MSDFGEN_VCPKG_FEATURES_SET) - set(VCPKG_MANIFEST_NO_DEFAULT_FEATURES ON) - if(NOT MSDFGEN_CORE_ONLY) - list(APPEND VCPKG_MANIFEST_FEATURES "extensions") - endif() - if(MSDFGEN_BUILD_STANDALONE) - list(APPEND VCPKG_MANIFEST_FEATURES "standalone") - endif() - if(MSDFGEN_USE_SKIA) - list(APPEND VCPKG_MANIFEST_FEATURES "geometry-preprocessing") - endif() - if(MSDFGEN_USE_OPENMP) - list(APPEND VCPKG_MANIFEST_FEATURES "openmp") - endif() - endif() -endif() - -# Version is specified in vcpkg.json -project(msdfgen VERSION ${MSDFGEN_VERSION} LANGUAGES CXX) - -if(MSDFGEN_DYNAMIC_RUNTIME) - set(MSDFGEN_MSVC_RUNTIME "MultiThreaded$<$:Debug>DLL") -else() - set(MSDFGEN_MSVC_RUNTIME "MultiThreaded$<$:Debug>") -endif() - -if(BUILD_SHARED_LIBS) - set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) -endif() - -if(MAX_WARNING_LEVEL) - if (MSVC) - add_compile_options(/W4) - else() - add_compile_options(-Wall -Wextra -Wpedantic) - endif() -endif() - -file(GLOB_RECURSE MSDFGEN_CORE_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "core/*.h" "core/*.hpp") -file(GLOB_RECURSE MSDFGEN_CORE_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "core/*.cpp") -file(GLOB_RECURSE MSDFGEN_EXT_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "ext/*.h" "ext/*.hpp") -file(GLOB_RECURSE MSDFGEN_EXT_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "ext/*.cpp" "lib/*.cpp") - -# Core library -add_library(msdfgen-core "${CMAKE_CURRENT_SOURCE_DIR}/msdfgen.h" ${MSDFGEN_CORE_HEADERS} ${MSDFGEN_CORE_SOURCES}) -add_library(msdfgen::msdfgen-core ALIAS msdfgen-core) -set_target_properties(msdfgen-core PROPERTIES PUBLIC_HEADER "${MSDFGEN_CORE_HEADERS}") -set_property(TARGET msdfgen-core PROPERTY MSVC_RUNTIME_LIBRARY "${MSDFGEN_MSVC_RUNTIME}") -target_compile_definitions(msdfgen-core PUBLIC - MSDFGEN_VERSION=${MSDFGEN_VERSION} - MSDFGEN_VERSION_MAJOR=${MSDFGEN_VERSION_MAJOR} - MSDFGEN_VERSION_MINOR=${MSDFGEN_VERSION_MINOR} - MSDFGEN_VERSION_REVISION=${MSDFGEN_VERSION_REVISION} - MSDFGEN_COPYRIGHT_YEAR=${MSDFGEN_COPYRIGHT_YEAR} -) -target_include_directories(msdfgen-core INTERFACE - $ - $ -) -set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT msdfgen-core) - -if(MSDFGEN_USE_CPP11) - target_compile_features(msdfgen-core PUBLIC cxx_std_11) - target_compile_definitions(msdfgen-core PUBLIC MSDFGEN_USE_CPP11) -endif() - -if(MSDFGEN_USE_OPENMP) - # Note: Clang doesn't support OpenMP by default... - find_package(OpenMP REQUIRED COMPONENTS CXX) - target_compile_definitions(msdfgen-core PUBLIC MSDFGEN_USE_OPENMP) - target_link_libraries(msdfgen-core PUBLIC OpenMP::OpenMP_CXX) -endif() - -if(BUILD_SHARED_LIBS AND WIN32) - target_compile_definitions(msdfgen-core PRIVATE "MSDFGEN_PUBLIC=__declspec(dllexport)") - target_compile_definitions(msdfgen-core INTERFACE "MSDFGEN_PUBLIC=__declspec(dllimport)") -else() - target_compile_definitions(msdfgen-core PUBLIC MSDFGEN_PUBLIC=) -endif() - -# Extensions library -if(NOT MSDFGEN_CORE_ONLY) - if(NOT TARGET Freetype::Freetype) - find_package(Freetype REQUIRED) - endif() - if(NOT MSDFGEN_DISABLE_SVG AND NOT TARGET tinyxml2::tinyxml2) - find_package(tinyxml2 REQUIRED) - endif() - if(NOT MSDFGEN_DISABLE_PNG AND NOT TARGET PNG::PNG) - find_package(PNG REQUIRED) - endif() - - add_library(msdfgen-ext "${CMAKE_CURRENT_SOURCE_DIR}/msdfgen-ext.h" ${MSDFGEN_EXT_HEADERS} ${MSDFGEN_EXT_SOURCES}) - add_library(msdfgen::msdfgen-ext ALIAS msdfgen-ext) - set_target_properties(msdfgen-ext PROPERTIES PUBLIC_HEADER "${MSDFGEN_EXT_HEADERS}") - set_property(TARGET msdfgen-ext PROPERTY MSVC_RUNTIME_LIBRARY "${MSDFGEN_MSVC_RUNTIME}") - target_compile_definitions(msdfgen-ext INTERFACE MSDFGEN_EXTENSIONS) - if(NOT MSDFGEN_DISABLE_SVG) - target_compile_definitions(msdfgen-ext PUBLIC MSDFGEN_USE_TINYXML2) - target_link_libraries(msdfgen-ext PRIVATE tinyxml2::tinyxml2) - else() - target_compile_definitions(msdfgen-ext PUBLIC MSDFGEN_DISABLE_SVG) - endif() - if(NOT MSDFGEN_DISABLE_PNG) - target_compile_definitions(msdfgen-ext PUBLIC MSDFGEN_USE_LIBPNG) - target_link_libraries(msdfgen-ext PRIVATE PNG::PNG) - else() - target_compile_definitions(msdfgen-ext PUBLIC MSDFGEN_DISABLE_PNG) - endif() - if(MSDFGEN_DISABLE_VARIABLE_FONTS) - target_compile_definitions(msdfgen-ext PUBLIC MSDFGEN_DISABLE_VARIABLE_FONTS) - endif() - target_link_libraries(msdfgen-ext PRIVATE Freetype::Freetype msdfgen::msdfgen-core) - target_include_directories(msdfgen-ext - PUBLIC - $ - $ - PRIVATE - ${CMAKE_CURRENT_SOURCE_DIR}/include - ) - set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT msdfgen-ext) - - if(MSDFGEN_USE_SKIA) - set(MSDFGEN_SKIA_LIB skia) - set(CMAKE_THREAD_PREFER_PTHREAD TRUE) - set(THREADS_PREFER_PTHREAD_FLAG TRUE) - find_package(Threads REQUIRED) - if(NOT TARGET skia) - if(MSDFGEN_USE_VCPKG) - find_package(unofficial-skia REQUIRED) - set(MSDFGEN_SKIA_LIB unofficial::skia::skia) - else() - find_package(skia REQUIRED) - endif() - endif() - target_compile_features(msdfgen-ext PUBLIC cxx_std_17) - target_compile_definitions(msdfgen-ext PUBLIC MSDFGEN_USE_SKIA) - target_link_libraries(msdfgen-ext PRIVATE Threads::Threads ${MSDFGEN_SKIA_LIB}) - endif() - - if(BUILD_SHARED_LIBS AND WIN32) - target_compile_definitions(msdfgen-ext PRIVATE "MSDFGEN_EXT_PUBLIC=__declspec(dllexport)") - target_compile_definitions(msdfgen-ext INTERFACE "MSDFGEN_EXT_PUBLIC=__declspec(dllimport)") - else() - target_compile_definitions(msdfgen-ext PUBLIC MSDFGEN_EXT_PUBLIC=) - endif() - - add_library(msdfgen-full INTERFACE) - add_library(msdfgen::msdfgen ALIAS msdfgen-full) - target_link_libraries(msdfgen-full INTERFACE msdfgen::msdfgen-core msdfgen::msdfgen-ext) -else() - add_library(msdfgen::msdfgen ALIAS msdfgen-core) -endif() - -# Standalone executable -if(MSDFGEN_BUILD_STANDALONE) - set(MSDFGEN_STANDALONE_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/main.cpp") - if(MSVC) - set(MSDFGEN_STANDALONE_SOURCES ${MSDFGEN_STANDALONE_SOURCES} "${CMAKE_CURRENT_SOURCE_DIR}/msdfgen.rc") - endif() - add_executable(msdfgen ${MSDFGEN_STANDALONE_SOURCES}) - target_compile_definitions(msdfgen PUBLIC MSDFGEN_STANDALONE) - target_compile_definitions(msdfgen PRIVATE MSDFGEN_VERSION_UNDERLINE=${MSDFGEN_VERSION_UNDERLINE}) - set_property(TARGET msdfgen PROPERTY MSVC_RUNTIME_LIBRARY "${MSDFGEN_MSVC_RUNTIME}") - target_link_libraries(msdfgen PRIVATE msdfgen::msdfgen) - set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT msdfgen) -endif() - -# Hide ZERO_CHECK and ALL_BUILD targets -set_property(GLOBAL PROPERTY USE_FOLDERS ON) -set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER meta) - -# Installation -if(MSDFGEN_INSTALL) - include(GNUInstallDirs) - include(CMakePackageConfigHelpers) - set(MSDFGEN_CONFIG_PATH "lib/cmake/msdfgen") - - # Generate msdfgen-config.h - if(BUILD_SHARED_LIBS AND WIN32) - set(MSDFGEN_PUBLIC_MACRO_VALUE " __declspec(dllimport)") - else() - set(MSDFGEN_PUBLIC_MACRO_VALUE "") - endif() - set(MSDFGEN_ADDITIONAL_DEFINES "") - if(MSDFGEN_USE_CPP11) - set(MSDFGEN_ADDITIONAL_DEFINES "${MSDFGEN_ADDITIONAL_DEFINES}\n#define MSDFGEN_USE_CPP11") - endif() - if(MSDFGEN_USE_OPENMP) - set(MSDFGEN_ADDITIONAL_DEFINES "${MSDFGEN_ADDITIONAL_DEFINES}\n#define MSDFGEN_USE_OPENMP") - endif() - if(NOT MSDFGEN_CORE_ONLY) - set(MSDFGEN_ADDITIONAL_DEFINES "${MSDFGEN_ADDITIONAL_DEFINES}\n#define MSDFGEN_EXTENSIONS") - if(MSDFGEN_USE_SKIA) - set(MSDFGEN_ADDITIONAL_DEFINES "${MSDFGEN_ADDITIONAL_DEFINES}\n#define MSDFGEN_USE_SKIA") - endif() - if(NOT MSDFGEN_DISABLE_SVG) - set(MSDFGEN_ADDITIONAL_DEFINES "${MSDFGEN_ADDITIONAL_DEFINES}\n#define MSDFGEN_USE_TINYXML2") - else() - set(MSDFGEN_ADDITIONAL_DEFINES "${MSDFGEN_ADDITIONAL_DEFINES}\n#define MSDFGEN_DISABLE_SVG") - endif() - if(NOT MSDFGEN_DISABLE_PNG) - set(MSDFGEN_ADDITIONAL_DEFINES "${MSDFGEN_ADDITIONAL_DEFINES}\n#define MSDFGEN_USE_LIBPNG") - else() - set(MSDFGEN_ADDITIONAL_DEFINES "${MSDFGEN_ADDITIONAL_DEFINES}\n#define MSDFGEN_DISABLE_PNG") - endif() - if(MSDFGEN_DISABLE_VARIABLE_FONTS) - set(MSDFGEN_ADDITIONAL_DEFINES "${MSDFGEN_ADDITIONAL_DEFINES}\n#define MSDFGEN_DISABLE_VARIABLE_FONTS") - endif() - endif() - configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/msdfgen-config.h.in" msdfgen-config.h) - - write_basic_package_version_file( - "${CMAKE_CURRENT_BINARY_DIR}/msdfgenConfigVersion.cmake" - VERSION ${PROJECT_VERSION} - COMPATIBILITY SameMajorVersion - ) - - configure_package_config_file( - "${CMAKE_CURRENT_SOURCE_DIR}/cmake/msdfgenConfig.cmake.in" - ${MSDFGEN_CONFIG_PATH}/msdfgenConfig.cmake - INSTALL_DESTINATION ${MSDFGEN_CONFIG_PATH} - NO_CHECK_REQUIRED_COMPONENTS_MACRO - ) - - configure_file( - "${CMAKE_CURRENT_SOURCE_DIR}/cmake/msdfgenConfig.cmake.in" - msdfgenConfig.cmake - @ONLY - ) - - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/msdfgen-config.h" DESTINATION include/msdfgen) - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/msdfgen-config.h" DESTINATION include/msdfgen/msdfgen) - install(TARGETS msdfgen-core EXPORT msdfgenTargets - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR} - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/msdfgen/core - ) - install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/msdfgen.h" DESTINATION include/msdfgen) - if(MSVC AND BUILD_SHARED_LIBS) - install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL) - endif() - - if(NOT MSDFGEN_CORE_ONLY) - install(TARGETS msdfgen-ext EXPORT msdfgenTargets - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR} - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/msdfgen/ext - ) - install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/msdfgen-ext.h" DESTINATION include/msdfgen) - if(MSVC AND BUILD_SHARED_LIBS) - install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL) - endif() - install(TARGETS msdfgen-full EXPORT msdfgenTargets) - endif() - - export(EXPORT msdfgenTargets NAMESPACE msdfgen:: FILE "${CMAKE_CURRENT_BINARY_DIR}/msdfgenTargets.cmake") - install(EXPORT msdfgenTargets FILE msdfgenTargets.cmake NAMESPACE msdfgen:: DESTINATION ${MSDFGEN_CONFIG_PATH}) - - if(MSDFGEN_BUILD_STANDALONE) - install(TARGETS msdfgen EXPORT msdfgenBinaryTargets DESTINATION ${CMAKE_INSTALL_BINDIR}) - if(MSVC) - install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL) - endif() - export(EXPORT msdfgenBinaryTargets NAMESPACE msdfgen-standalone:: FILE "${CMAKE_CURRENT_BINARY_DIR}/msdfgenBinaryTargets.cmake") - install(EXPORT msdfgenBinaryTargets FILE msdfgenBinaryTargets.cmake NAMESPACE msdfgen-standalone:: DESTINATION ${MSDFGEN_CONFIG_PATH}) - endif() - - install( - FILES - "${CMAKE_CURRENT_BINARY_DIR}/${MSDFGEN_CONFIG_PATH}/msdfgenConfig.cmake" - "${CMAKE_CURRENT_BINARY_DIR}/msdfgenConfigVersion.cmake" - DESTINATION ${MSDFGEN_CONFIG_PATH} - ) -endif() diff --git a/Dependencies/msdfgen/msdfgen/CMakePresets.json b/Dependencies/msdfgen/msdfgen/CMakePresets.json deleted file mode 100644 index f6f2424..0000000 --- a/Dependencies/msdfgen/msdfgen/CMakePresets.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "version": 4, - "cmakeMinimumRequired": { - "major": 3, - "minor": 23, - "patch": 0 - }, - "include": [ - "cmake/CMakePresets.json" - ], - "configurePresets": [ - { - "name": "win64", - "displayName": "Windows x64 default config (static, vcpkg, Skia)", - "inherits": [ "win64-base", "vcpkg", "skia" ] - }, { - "name": "win32", - "displayName": "Windows x86 default config (static, vcpkg, Skia)", - "inherits": [ "win32-base", "vcpkg", "skia" ] - }, { - "name": "win64-omp", - "displayName": "Windows x64 config with OpenMP (static, vcpkg, Skia)", - "inherits": [ "win64-base", "openmp", "vcpkg", "skia" ], - "binaryDir": "${sourceDir}/build/win64-omp" - }, { - "name": "win32-omp", - "displayName": "Windows x86 config with OpenMP (static, vcpkg, Skia)", - "inherits": [ "win32-base", "openmp", "vcpkg", "skia" ], - "binaryDir": "${sourceDir}/build/win32-omp" - }, { - "name": "win64-dynamic", - "displayName": "Windows x64 dynamic config (vcpkg, Skia)", - "inherits": [ "win64-base", "vcpkg", "skia", "dynamic-runtime", "dynamic-lib" ], - "binaryDir": "${sourceDir}/build/win64-dynamic" - }, { - "name": "win32-dynamic", - "displayName": "Windows x86 dynamic config (vcpkg, Skia)", - "inherits": [ "win32-base", "vcpkg", "skia", "dynamic-runtime", "dynamic-lib" ], - "binaryDir": "${sourceDir}/build/win32-dynamic" - }, { - "name": "win64-no-skia", - "displayName": "Windows x64 config without Skia (static, vcpkg)", - "inherits": [ "win64-base", "vcpkg", "no-skia" ] - }, { - "name": "win32-no-skia", - "displayName": "Windows x86 config without Skia (static, vcpkg)", - "inherits": [ "win32-base", "vcpkg", "no-skia" ] - }, { - "name": "win64-core", - "displayName": "Windows x64 core-only config (static)", - "inherits": [ "win64-base", "core-only" ], - "binaryDir": "${sourceDir}/build/win64-core" - }, { - "name": "win32-core", - "displayName": "Windows x86 core-only config (static)", - "inherits": [ "win32-base", "core-only" ], - "binaryDir": "${sourceDir}/build/win32-core" - }, - - { - "name": "osx-vcpkg-rel", - "displayName": "Mac OS release config with vcpkg and Skia (static)", - "inherits": [ "osx-rel-base", "vcpkg", "skia" ] - }, { - "name": "osx-vcpkg-dbg", - "displayName": "Mac OS debug config with vcpkg and Skia (static)", - "inherits": [ "osx-dbg-base", "vcpkg", "skia" ] - }, { - "name": "osx-no-skia-rel", - "displayName": "Mac OS release config with system libraries and no Skia (static, install)", - "inherits": [ "osx-rel-base", "no-vcpkg", "no-skia", "install" ] - }, { - "name": "osx-no-skia-dbg", - "displayName": "Mac OS debug config with system libraries and no Skia (static, install)", - "inherits": [ "osx-dbg-base", "no-vcpkg", "no-skia", "install" ] - }, { - "name": "osx-core-rel", - "displayName": "Mac OS release core-only config (static, install)", - "inherits": [ "osx-rel-base", "core-only", "install" ], - "binaryDir": "${sourceDir}/build/osx-core-rel" - }, { - "name": "osx-core-dbg", - "displayName": "Mac OS debug core-only config (static, install)", - "inherits": [ "osx-dbg-base", "core-only", "install" ], - "binaryDir": "${sourceDir}/build/osx-core-dbg" - }, - - { - "name": "linux-vcpkg-rel", - "displayName": "Linux release config with vcpkg and Skia (static)", - "inherits": [ "linux-rel-base", "vcpkg", "skia" ] - }, { - "name": "linux-vcpkg-dbg", - "displayName": "Linux debug config with vcpkg and Skia (static)", - "inherits": [ "linux-dbg-base", "vcpkg", "skia" ] - }, { - "name": "linux-no-skia-rel", - "displayName": "Linux release config with system libraries and no Skia (static, install)", - "inherits": [ "linux-rel-base", "no-vcpkg", "no-skia", "install" ] - }, { - "name": "linux-no-skia-dbg", - "displayName": "Linux debug config with system libraries and no Skia (static, install)", - "inherits": [ "linux-dbg-base", "no-vcpkg", "no-skia", "install" ] - }, { - "name": "linux-core-rel", - "displayName": "Linux release core-only config (static, install)", - "inherits": [ "linux-rel-base", "core-only", "install" ], - "binaryDir": "${sourceDir}/build/linux-core-rel" - }, { - "name": "linux-core-dbg", - "displayName": "Linux debug core-only config (static, install)", - "inherits": [ "linux-dbg-base", "core-only", "install" ], - "binaryDir": "${sourceDir}/build/linux-core-dbg" - } - ], - "buildPresets": [ - { - "name": "win64-rel", - "configurePreset": "win64", - "configuration": "Release" - }, { - "name": "win64-dbg", - "configurePreset": "win64", - "configuration": "Debug" - }, { - "name": "win32-rel", - "configurePreset": "win32", - "configuration": "Release" - }, { - "name": "win32-dbg", - "configurePreset": "win32", - "configuration": "Debug" - }, { - "name": "win64-omp-rel", - "configurePreset": "win64-omp", - "configuration": "Release" - }, { - "name": "win64-omp-dbg", - "configurePreset": "win64-omp", - "configuration": "Debug" - }, { - "name": "win32-omp-rel", - "configurePreset": "win32-omp", - "configuration": "Release" - }, { - "name": "win32-omp-dbg", - "configurePreset": "win32-omp", - "configuration": "Debug" - }, { - "name": "win64-dynamic-rel", - "configurePreset": "win64-dynamic", - "configuration": "Release" - }, { - "name": "win64-dynamic-dbg", - "configurePreset": "win64-dynamic", - "configuration": "Debug" - }, { - "name": "win32-dynamic-rel", - "configurePreset": "win32-dynamic", - "configuration": "Release" - }, { - "name": "win32-dynamic-dbg", - "configurePreset": "win32-dynamic", - "configuration": "Debug" - }, { - "name": "win64-no-skia-rel", - "configurePreset": "win64-no-skia", - "configuration": "Release" - }, { - "name": "win64-no-skia-dbg", - "configurePreset": "win64-no-skia", - "configuration": "Debug" - }, { - "name": "win32-no-skia-rel", - "configurePreset": "win32-no-skia", - "configuration": "Release" - }, { - "name": "win32-no-skia-dbg", - "configurePreset": "win32-no-skia", - "configuration": "Debug" - }, { - "name": "win64-core-rel", - "configurePreset": "win64-core", - "configuration": "Release" - }, { - "name": "win64-core-dbg", - "configurePreset": "win64-core", - "configuration": "Debug" - }, { - "name": "win32-core-rel", - "configurePreset": "win32-core", - "configuration": "Release" - }, { - "name": "win32-core-dbg", - "configurePreset": "win32-core", - "configuration": "Debug" - }, - - { - "name": "osx-vcpkg-rel", - "configurePreset": "osx-vcpkg-rel" - }, { - "name": "osx-vcpkg-dbg", - "configurePreset": "osx-vcpkg-dbg" - }, { - "name": "osx-no-skia-rel", - "configurePreset": "osx-no-skia-rel" - }, { - "name": "osx-no-skia-dbg", - "configurePreset": "osx-no-skia-dbg" - }, { - "name": "osx-core-rel", - "configurePreset": "osx-core-rel" - }, { - "name": "osx-core-dbg", - "configurePreset": "osx-core-dbg" - }, - - { - "name": "linux-vcpkg-rel", - "configurePreset": "linux-vcpkg-rel" - }, { - "name": "linux-vcpkg-dbg", - "configurePreset": "linux-vcpkg-dbg" - }, { - "name": "linux-no-skia-rel", - "configurePreset": "linux-no-skia-rel" - }, { - "name": "linux-no-skia-dbg", - "configurePreset": "linux-no-skia-dbg" - }, { - "name": "linux-core-rel", - "configurePreset": "linux-core-rel" - }, { - "name": "linux-core-dbg", - "configurePreset": "linux-core-dbg" - } - ] -} diff --git a/Dependencies/msdfgen/msdfgen/cmake/CMakePresets.json b/Dependencies/msdfgen/msdfgen/cmake/CMakePresets.json deleted file mode 100644 index e30f167..0000000 --- a/Dependencies/msdfgen/msdfgen/cmake/CMakePresets.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "version": 4, - "cmakeMinimumRequired": { - "major": 3, - "minor": 23, - "patch": 0 - }, - "configurePresets": [ - { - "name": "release-only", - "displayName": "Release only configuration", - "hidden": true, - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release" - } - }, { - "name": "debug-only", - "displayName": "Debug only configuration", - "hidden": true, - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" - } - }, { - "name": "win64-base", - "displayName": "Windows 64-bit base configuration", - "hidden": true, - "architecture": "x64", - "binaryDir": "${sourceDir}/build/win64", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Windows" - } - }, { - "name": "win32-base", - "displayName": "Windows 32-bit base configuration", - "hidden": true, - "architecture": "Win32", - "binaryDir": "${sourceDir}/build/win32", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Windows" - } - }, { - "name": "osx-base", - "displayName": "Mac OS base configuration", - "hidden": true, - "binaryDir": "${sourceDir}/build/osx", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Darwin" - } - }, { - "name": "osx-rel-base", - "displayName": "Mac OS base release configuration", - "inherits": [ "osx-base", "release-only" ], - "hidden": true, - "binaryDir": "${sourceDir}/build/osx-rel" - }, { - "name": "osx-dbg-base", - "displayName": "Mac OS base debug configuration", - "inherits": [ "osx-base", "debug-only" ], - "hidden": true, - "binaryDir": "${sourceDir}/build/osx-dbg" - }, { - "name": "linux-base", - "displayName": "Linux base configuration", - "hidden": true, - "binaryDir": "${sourceDir}/build/linux", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Linux" - } - }, { - "name": "linux-rel-base", - "displayName": "Linux base release configuration", - "inherits": [ "linux-base", "release-only" ], - "hidden": true, - "binaryDir": "${sourceDir}/build/linux-rel" - }, { - "name": "linux-dbg-base", - "displayName": "Linux base debug configuration", - "inherits": [ "linux-base", "debug-only" ], - "hidden": true, - "binaryDir": "${sourceDir}/build/linux-dbg" - }, { - "name": "core-only", - "displayName": "Configuration with extensions disabled", - "hidden": true, - "cacheVariables": { - "MSDFGEN_CORE_ONLY": "ON", - "MSDFGEN_USE_VCPKG": "OFF", - "MSDFGEN_USE_SKIA": "OFF" - } - }, { - "name": "vcpkg", - "displayName": "Configuration with vcpkg as dependency management system", - "hidden": true, - "cacheVariables": { - "MSDFGEN_USE_VCPKG": "ON" - } - }, { - "name": "no-vcpkg", - "displayName": "Configuration with dependencies not managed by vcpkg", - "hidden": true, - "cacheVariables": { - "MSDFGEN_USE_VCPKG": "OFF" - } - }, { - "name": "openmp", - "displayName": "Configuration with OpenMP enabled", - "hidden": true, - "cacheVariables": { - "MSDFGEN_USE_OPENMP": "ON" - } - }, { - "name": "skia", - "displayName": "Configuration with Skia geometry preprocessing", - "hidden": true, - "cacheVariables": { - "MSDFGEN_USE_SKIA": "ON" - } - }, { - "name": "no-skia", - "displayName": "Configuration without Skia geometry preprocessing", - "hidden": true, - "cacheVariables": { - "MSDFGEN_USE_SKIA": "OFF" - } - }, { - "name": "install", - "displayName": "Configuration with installation targets", - "hidden": true, - "cacheVariables": { - "MSDFGEN_INSTALL": "ON" - } - }, { - "name": "static-runtime", - "displayName": "Configuration that links against the static runtime", - "hidden": true, - "cacheVariables": { - "MSDFGEN_DYNAMIC_RUNTIME": "OFF" - } - }, { - "name": "dynamic-runtime", - "displayName": "Configuration that links against the dynamic runtime", - "hidden": true, - "cacheVariables": { - "MSDFGEN_DYNAMIC_RUNTIME": "ON" - } - }, { - "name": "static-lib", - "displayName": "Configuration that builds and links msdfgen statically", - "hidden": true, - "cacheVariables": { - "BUILD_SHARED_LIBS": "OFF" - } - }, { - "name": "dynamic-lib", - "displayName": "Configuration that builds and links msdfgen dynamically", - "hidden": true, - "cacheVariables": { - "BUILD_SHARED_LIBS": "ON" - } - } - ] -} diff --git a/Dependencies/msdfgen/msdfgen/cmake/msdfgen-config.h.in b/Dependencies/msdfgen/msdfgen/cmake/msdfgen-config.h.in deleted file mode 100644 index 4959f6b..0000000 --- a/Dependencies/msdfgen/msdfgen/cmake/msdfgen-config.h.in +++ /dev/null @@ -1,12 +0,0 @@ - -#pragma once - -#define MSDFGEN_PUBLIC${MSDFGEN_PUBLIC_MACRO_VALUE} -#define MSDFGEN_EXT_PUBLIC${MSDFGEN_PUBLIC_MACRO_VALUE} - -#define MSDFGEN_VERSION ${MSDFGEN_VERSION} -#define MSDFGEN_VERSION_MAJOR ${MSDFGEN_VERSION_MAJOR} -#define MSDFGEN_VERSION_MINOR ${MSDFGEN_VERSION_MINOR} -#define MSDFGEN_VERSION_REVISION ${MSDFGEN_VERSION_REVISION} -#define MSDFGEN_COPYRIGHT_YEAR ${MSDFGEN_COPYRIGHT_YEAR} -${MSDFGEN_ADDITIONAL_DEFINES} diff --git a/Dependencies/msdfgen/msdfgen/cmake/msdfgenConfig.cmake.in b/Dependencies/msdfgen/msdfgen/cmake/msdfgenConfig.cmake.in deleted file mode 100644 index df11057..0000000 --- a/Dependencies/msdfgen/msdfgen/cmake/msdfgenConfig.cmake.in +++ /dev/null @@ -1,48 +0,0 @@ - -include(CMakeFindDependencyMacro) - -set(MSDFGEN_CORE_ONLY @MSDFGEN_CORE_ONLY@) -set(MSDFGEN_USE_VCPKG @MSDFGEN_USE_VCPKG@) -set(MSDFGEN_USE_OPENMP @MSDFGEN_USE_OPENMP@) -set(MSDFGEN_USE_SKIA @MSDFGEN_USE_SKIA@) -set(MSDFGEN_STANDALONE_AVAILABLE @MSDFGEN_BUILD_STANDALONE@) - -if(NOT MSDFGEN_CORE_ONLY) - find_dependency(Freetype REQUIRED) - find_dependency(tinyxml2 REQUIRED) - find_dependency(PNG REQUIRED) -endif() -if(MSDFGEN_USE_SKIA) - find_dependency(Threads REQUIRED) - if(MSDFGEN_USE_VCPKG) - find_dependency(unofficial-skia REQUIRED) - else() - find_dependency(skia REQUIRED) - endif() -endif() -if(MSDFGEN_USE_OPENMP) - find_dependency(OpenMP REQUIRED COMPONENTS CXX) -endif() - -include("${CMAKE_CURRENT_LIST_DIR}/msdfgenTargets.cmake") - -if(MSDFGEN_CORE_ONLY) - if(${CMAKE_VERSION} VERSION_LESS "3.18.0") - set_target_properties(msdfgen::msdfgen-core PROPERTIES IMPORTED_GLOBAL TRUE) - endif() - add_library(msdfgen::msdfgen ALIAS msdfgen::msdfgen-core) -else() - if(${CMAKE_VERSION} VERSION_LESS "3.18.0") - set_target_properties(msdfgen::msdfgen-full PROPERTIES IMPORTED_GLOBAL TRUE) - endif() - add_library(msdfgen::msdfgen ALIAS msdfgen::msdfgen-full) -endif() - -if(MSDFGEN_STANDALONE_AVAILABLE) - include("${CMAKE_CURRENT_LIST_DIR}/msdfgenBinaryTargets.cmake") - if(${CMAKE_VERSION} VERSION_LESS "3.18.0") - set_target_properties(msdfgen-standalone::msdfgen PROPERTIES IMPORTED_GLOBAL TRUE) - endif() - add_executable(msdfgen::msdfgen-run ALIAS msdfgen-standalone::msdfgen) - set(MSDFGEN_EXECUTABLE "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/msdfgen@CMAKE_EXECUTABLE_SUFFIX@") -endif() diff --git a/Dependencies/msdfgen/msdfgen/cmake/version.cmake b/Dependencies/msdfgen/msdfgen/cmake/version.cmake deleted file mode 100644 index 279ace3..0000000 --- a/Dependencies/msdfgen/msdfgen/cmake/version.cmake +++ /dev/null @@ -1,19 +0,0 @@ - -# This script reads version from vcpkg.json and sets it to ${MSDFGEN_VERSION} etc. - -cmake_minimum_required(VERSION 3.15) - -file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/../vcpkg.json" MSDFGEN_VCPKG_JSON) - -string(REGEX MATCH "\"version\"[ \t\n\r]*:[ \t\n\r]*\"[^\"]*\"" MSDFGEN_TMP_VERSION_PAIR ${MSDFGEN_VCPKG_JSON}) -string(REGEX REPLACE "\"version\"[ \t\n\r]*:[ \t\n\r]*\"([^\"]*)\"" "\\1" MSDFGEN_VERSION ${MSDFGEN_TMP_VERSION_PAIR}) -string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)" "\\1" MSDFGEN_VERSION_MAJOR ${MSDFGEN_VERSION}) -string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)" "\\2" MSDFGEN_VERSION_MINOR ${MSDFGEN_VERSION}) -string(REGEX REPLACE "^([0-9]*)\\.([0-9]*)\\.([0-9]*)" "\\3" MSDFGEN_VERSION_REVISION ${MSDFGEN_VERSION}) -string(LENGTH ${MSDFGEN_VERSION} MSDFGEN_VERSION_LENGTH) -string(REPEAT "-" ${MSDFGEN_VERSION_LENGTH} MSDFGEN_VERSION_UNDERLINE) -string(TIMESTAMP MSDFGEN_COPYRIGHT_YEAR "%Y") - -unset(MSDFGEN_TMP_VERSION_PAIR) -unset(MSDFGEN_VERSION_LENGTH) -unset(MSDFGEN_VCPKG_JSON)