Browse Source

Added new source files to all-in-one

Chlumsky 1 year ago
parent
commit
b9606c6998
2 changed files with 12 additions and 2 deletions
  1. 2 1
      all-in-one/CMakeLists.txt
  2. 10 1
      all-in-one/generate.py

+ 2 - 1
all-in-one/CMakeLists.txt

@@ -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")

+ 10 - 1
all-in-one/generate.py

@@ -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
  *