-
Notifications
You must be signed in to change notification settings - Fork 63
FreeType submodule #1446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeType submodule #1446
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,9 +208,11 @@ else() | |
if (USE_RECOMMENDED_C_STANDARD) | ||
# GNU89 or later standard is required when building gzip or the compiler | ||
# will complain about implicitly defined lseek, read, write and close. | ||
try_c_flag(GNU89 "-std=gnu89") | ||
if (NOT FLAG_GNU89) | ||
message(FATAL_ERROR "GNU89 or C99 not supported by compiler") | ||
# GNU99 or later standard is required when building lua or lua will | ||
# complain that the compiler doesn't support 'long long'. | ||
try_c_flag(GNU99 "-std=gnu99") | ||
if (NOT FLAG_GNU99) | ||
message(FATAL_ERROR "GNU99 is not supported by the compiler") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test variable's name is now mismatched with the flag There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed. |
||
endif() | ||
endif() | ||
|
||
|
@@ -224,7 +226,7 @@ else() | |
if (NOT FLAG_GNUXX14) | ||
try_cxx_flag(GNUXX1Y "-std=gnu++1y") | ||
if (NOT FLAG_GNUXX1Y) | ||
message(FATAL_ERROR "GNU++14 or C++14 not supported by compiler") | ||
message(FATAL_ERROR "GNU++14 is not supported by the compiler") | ||
endif() | ||
endif() | ||
endif() | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
set(FREETYPE_DIR ${DAEMON_DIR}/libs/freetype) | ||
set(FREETYPE_INCLUDE_DIRS ${FREETYPE_DIR}/include) | ||
set(FREETYPE_LIBRARIES freetype) | ||
|
||
option(FT_DISABLE_BROTLI "Disable Brotli" ON) | ||
option(FT_DISABLE_BZIP2 "Disable bzip2" ON) | ||
option(FT_DISABLE_HARFBUZZ "Disable HarfBuzz" ON) | ||
option(FT_DISABLE_PNG "Disable PNG" ON) | ||
|
||
if (PREFER_EXTERNAL_LIBS AND NOT NACL) | ||
set(FREETYPE_INTERNAL_ZLIB OFF) | ||
else() | ||
set(FREETYPE_INTERNAL_ZLIB ON) | ||
endif() | ||
|
||
set(FT_DISABLE_ZLIB ${FREETYPE_INTERNAL_ZLIB} CACHE BOOL "Disable external zlib" FORCE) | ||
|
||
add_subdirectory(${FREETYPE_DIR}) | ||
|
||
mark_as_advanced(FT_DISABLE_BROTLI) | ||
mark_as_advanced(FT_DISABLE_BZIP2) | ||
mark_as_advanced(FT_DISABLE_HARFBUZZ) | ||
mark_as_advanced(FT_DISABLE_PNG) | ||
mark_as_advanced(FT_DISABLE_ZLIB) | ||
mark_as_advanced(FT_ENABLE_ERROR_STRINGS) |
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.