mirror of https://github.com/Chlumsky/msdfgen.git
Added new source files to all-in-one
This commit is contained in:
parent
40cce62696
commit
dcc0cd3780
|
|
@ -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>")
|
set_property(TARGET msdfgen PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
target_compile_features(msdfgen PUBLIC cxx_std_11)
|
target_compile_features(msdfgen PUBLIC cxx_std_11)
|
||||||
if(MSDFGEN_USE_FREETYPE)
|
if(MSDFGEN_USE_FREETYPE)
|
||||||
target_compile_definitions(msdfgen PUBLIC MSDFGEN_USE_FREETYPE)
|
|
||||||
target_link_libraries(msdfgen PRIVATE Freetype::Freetype)
|
target_link_libraries(msdfgen PRIVATE Freetype::Freetype)
|
||||||
|
else()
|
||||||
|
target_compile_definitions(msdfgen PUBLIC MSDFGEN_NO_FREETYPE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(msdfgen-test "${CMAKE_CURRENT_SOURCE_DIR}/test.cpp")
|
add_executable(msdfgen-test "${CMAKE_CURRENT_SOURCE_DIR}/test.cpp")
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,12 @@ sourceList = [
|
||||||
'core/BitmapRef.hpp',
|
'core/BitmapRef.hpp',
|
||||||
'core/Bitmap.h',
|
'core/Bitmap.h',
|
||||||
'core/Bitmap.hpp',
|
'core/Bitmap.hpp',
|
||||||
|
'core/Range.hpp',
|
||||||
'core/Projection.h',
|
'core/Projection.h',
|
||||||
'core/Projection.cpp',
|
'core/Projection.cpp',
|
||||||
|
'core/DistanceMapping.h',
|
||||||
|
'core/DistanceMapping.cpp',
|
||||||
|
'core/SDFTransformation.h',
|
||||||
'core/SignedDistance.hpp',
|
'core/SignedDistance.hpp',
|
||||||
'core/Scanline.h',
|
'core/Scanline.h',
|
||||||
'core/Scanline.cpp',
|
'core/Scanline.cpp',
|
||||||
|
|
@ -51,6 +55,8 @@ sourceList = [
|
||||||
'ext/import-font.cpp',
|
'ext/import-font.cpp',
|
||||||
'ext/resolve-shape-geometry.h',
|
'ext/resolve-shape-geometry.h',
|
||||||
'ext/resolve-shape-geometry.cpp',
|
'ext/resolve-shape-geometry.cpp',
|
||||||
|
'ext/import-svg.h',
|
||||||
|
'ext/import-svg.cpp',
|
||||||
'msdfgen.h'
|
'msdfgen.h'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -62,6 +68,9 @@ header = """
|
||||||
#define MSDFGEN_USE_FREETYPE
|
#define MSDFGEN_USE_FREETYPE
|
||||||
#define MSDFGEN_DISABLE_VARIABLE_FONTS
|
#define MSDFGEN_DISABLE_VARIABLE_FONTS
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MSDFGEN_ENABLE_SVG
|
||||||
|
#define MSDFGEN_DISABLE_SVG
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
@ -144,7 +153,7 @@ header = """
|
||||||
/*
|
/*
|
||||||
* MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR
|
* 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
|
* https://github.com/Chlumsky/msdfgen
|
||||||
* Published under the MIT license
|
* Published under the MIT license
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue