-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
408 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule tree
updated
from 000000 to e0e704
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,20 @@ | ||
set(CMAKE_UNITY_BUILD false) | ||
add_compile_options(-w) # suppress warnings | ||
|
||
add_library(freetype2 STATIC | ||
tree/src/base/ftbase.c | ||
tree/src/base/ftbbox.c | ||
tree/src/base/ftbdf.c | ||
tree/src/base/ftbitmap.c | ||
tree/src/base/ftcid.c | ||
tree/src/base/ftdebug.c | ||
tree/src/base/ftfntfmt.c | ||
tree/src/base/ftfstype.c | ||
tree/src/base/ftgasp.c | ||
tree/src/base/ftglyph.c | ||
tree/src/base/ftgxval.c | ||
tree/src/base/ftinit.c | ||
tree/src/base/ftlcdfil.c | ||
tree/src/base/ftmm.c | ||
tree/src/base/ftotval.c | ||
tree/src/base/ftpatent.c | ||
tree/src/base/ftpfr.c | ||
tree/src/base/ftstroke.c | ||
tree/src/base/ftsynth.c | ||
tree/src/base/ftsystem.c | ||
tree/src/base/fttype1.c | ||
tree/src/base/ftwinfnt.c | ||
tree/src/autofit/autofit.c | ||
tree/src/bdf/bdf.c | ||
tree/src/bzip2/ftbzip2.c | ||
tree/src/cache/ftcache.c | ||
tree/src/cff/cff.c | ||
tree/src/cid/type1cid.c | ||
tree/src/gxvalid/gxvalid.c | ||
tree/src/gzip/ftgzip.c | ||
tree/src/lzw/ftlzw.c | ||
tree/src/otvalid/otvalid.c | ||
tree/src/pcf/pcf.c | ||
tree/src/pfr/pfr.c | ||
tree/src/psaux/psaux.c | ||
tree/src/pshinter/pshinter.c | ||
tree/src/psnames/psnames.c | ||
tree/src/raster/raster.c | ||
tree/src/sfnt/sfnt.c | ||
tree/src/smooth/smooth.c | ||
tree/src/truetype/truetype.c | ||
tree/src/type1/type1.c | ||
tree/src/type42/type42.c | ||
tree/src/winfonts/winfnt.c) | ||
set(BUILD_SHARED_LIBS OFF CACHE STRING "" FORCE) | ||
|
||
target_output_to_toolchain(freetype2) | ||
target_include_directories(freetype2 SYSTEM PUBLIC tree/include) | ||
target_compile_definitions(freetype2 PRIVATE -DFT2_BUILD_LIBRARY) | ||
target_link_libraries(freetype2 ${ZLIB}) | ||
set(DISABLE_FORCE_DEBUG_POSTFIX ON CACHE STRING "" FORCE) | ||
|
||
set(FT_DISABLE_ZLIB TRUE CACHE STRING "" FORCE) | ||
set(ZLIB_FOUND 1 CACHE STRING "" FORCE) | ||
|
||
set(PNG_FOUND 1 CACHE STRING "" FORCE) | ||
|
||
# TODO: probably should look into getting these enabled | ||
set(FT_DISABLE_HARFBUZZ TRUE CACHE STRING "" FORCE) | ||
set(FT_DISABLE_BZIP2 TRUE CACHE STRING "" FORCE) | ||
set(FT_DISABLE_BROTLI TRUE CACHE STRING "" FORCE) | ||
|
||
add_subdirectory(tree) | ||
|
||
target_link_libraries(freetype PUBLIC png_static ${ZLIB}) | ||
target_output_to_toolchain(freetype) |
Submodule tree
updated
from a19af2 to 920c55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set(PNG_SHARED OFF CACHE STRING "" FORCE) | ||
set(PNG_BUILD_ZLIB ON CACHE STRING "" FORCE) | ||
set(PNG_DEBUG_POSTFIX "" CACHE STRING "" FORCE) | ||
|
||
# TODO: remove this hack | ||
set(ZLIB_INCLUDE_DIRS "${CMAKE_CURRENT_BINARY_DIR}/../zlib/tree;${CMAKE_CURRENT_SOURCE_DIR}/../zlib/tree" CACHE STRING "" FORCE) | ||
|
||
add_subdirectory(tree) | ||
|
||
target_link_libraries(png_static ${ZLIB}) | ||
target_include_directories(png_static PUBLIC tree ${CMAKE_CURRENT_BINARY_DIR}/tree) | ||
set_target_properties(png_static PROPERTIES OUTPUT_NAME png) | ||
target_output_to_toolchain(png_static) | ||
|
||
add_library(png ALIAS png_static) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_library(utf8.h INTERFACE) | ||
target_include_directories(utf8.h INTERFACE tree) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.