Merge pull request #238 from kekekeks/static_freetype

Use static libfreetype for Linux
This commit is contained in:
Matthew Leibowitz 2017-02-12 23:36:09 +04:00 коммит произвёл GitHub
Родитель aafe6a79fb d72135b482
Коммит 5d2278eecf
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -439,7 +439,7 @@ Task ("externals-linux")
SetEnvironmentVariable ("SKIA_OUT", outPath);
// build skia_lib
RunGyp ("skia_os='linux' skia_arch_type='" + arch + "' skia_gpu=1 skia_pic=1 skia_pdf_use_sfntly=0", "ninja");
RunGyp ("skia_os='linux' skia_arch_type='" + arch + "' skia_gpu=1 skia_pic=1 skia_pdf_use_sfntly=0 freetype_static=1 skia_freetype_static=1", "ninja");
RunProcess (ninja, new ProcessSettings {
Arguments = "-C out/" + folder + "/Release " + targets,
WorkingDirectory = SKIA_PATH.FullPath,

Просмотреть файл

@ -66,7 +66,8 @@ library_paths = \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libSkKTX.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libdng_sdk.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libpiex.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libexpat_static.a
../../externals/skia/out/${ARCH}/Release/obj/gyp/libexpat_static.a \
../../externals/skia/out/${ARCH}/Release/libfreetype_static.a
defines = \
-DSK_INTERNAL -DSK_GAMMA_APPLY_TO_A8 -DQT_NO_KEYWORDS \
-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_SUPPORT_GPU=1 \
@ -81,7 +82,7 @@ cflags = \
-fPIC -fdata-sections -ffunction-sections
cflags_c =
cflags_cc = -std=c++11 -fno-rtti -fno-threadsafe-statics -Wnon-virtual-dtor
ldflags = $(library_dirs:%=-L%) -lpthread -ldl -lfontconfig -lfreetype -lGL -lGLU -lX11
ldflags = $(library_dirs:%=-L%) -lpthread -ldl -lfontconfig -lGL -lGLU -lX11
includes = $(include_dirs:%=-I%)
library_names = $(notdir ${library_paths})
libraries = $(library_names:lib%.a=-l%)