Added new source files to all-in-one

This commit is contained in:
Chlumsky 2024-05-07 22:50:09 +02:00
parent 40cce62696
commit dcc0cd3780
2 changed files with 12 additions and 2 deletions

View File

@ -50,8 +50,9 @@ add_library(msdfgen "${CMAKE_CURRENT_SOURCE_DIR}/msdfgen.h" "${CMAKE_CURRENT_SOU
set_property(TARGET msdfgen PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
target_compile_features(msdfgen PUBLIC cxx_std_11)
if(MSDFGEN_USE_FREETYPE)
target_compile_definitions(msdfgen PUBLIC MSDFGEN_USE_FREETYPE)
target_link_libraries(msdfgen PRIVATE Freetype::Freetype)
else()
target_compile_definitions(msdfgen PUBLIC MSDFGEN_NO_FREETYPE)
endif()
add_executable(msdfgen-test "${CMAKE_CURRENT_SOURCE_DIR}/test.cpp")

View File

@ -15,8 +15,12 @@ sourceList = [
'core/BitmapRef.hpp',
'core/Bitmap.h',
'core/Bitmap.hpp',
'core/Range.hpp',
'core/Projection.h',
'core/Projection.cpp',
'core/DistanceMapping.h',
'core/DistanceMapping.cpp',
'core/SDFTransformation.h',
'core/SignedDistance.hpp',
'core/Scanline.h',
'core/Scanline.cpp',
@ -51,6 +55,8 @@ sourceList = [
'ext/import-font.cpp',
'ext/resolve-shape-geometry.h',
'ext/resolve-shape-geometry.cpp',
'ext/import-svg.h',
'ext/import-svg.cpp',
'msdfgen.h'
]
@ -62,6 +68,9 @@ header = """
#define MSDFGEN_USE_FREETYPE
#define MSDFGEN_DISABLE_VARIABLE_FONTS
#endif
#ifndef MSDFGEN_ENABLE_SVG
#define MSDFGEN_DISABLE_SVG
#endif
#include <cstddef>
#include <cstdlib>
@ -144,7 +153,7 @@ header = """
/*
* MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR
* ---------------------------------------------
* A utility by Viktor Chlumsky, (c) 2014 - 2023
* A utility by Viktor Chlumsky, (c) 2014 - 2024
* https://github.com/Chlumsky/msdfgen
* Published under the MIT license
*