Skip to content

Commit

Permalink
Exclude the PDF font subsetter on Linux to reduce size. see issue #174
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Jan 30, 2017
1 parent 076bcc9 commit f9e2ab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cake/BuildExternals.cake
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Task ("externals-osx")
.Does (() =>
{
var buildArch = new Action<string, string> ((arch, skiaArch) => {
RunGyp ("skia_arch_type='" + skiaArch + "' skia_gpu=1 skia_pdf_use_sfntly=0 skia_osx_deployment_target=10.8", "xcode");
RunGyp ("skia_arch_type='" + skiaArch + "' skia_gpu=1 skia_osx_deployment_target=10.8", "xcode");

XCodeBuild (new XCodeBuildSettings {
Project = "native-builds/libSkiaSharp_osx/libSkiaSharp.xcodeproj",
Expand Down Expand Up @@ -429,7 +429,7 @@ Task ("externals-linux")
AppendEnvironmentVariable ("PATH", DEPOT_PATH.FullPath);

var targets =
"skia_lib pdf sfntly icuuc dng_sdk libSkKTX sksl piex raw_codec zlib libetc1 " +
"skia_lib pdf dng_sdk libSkKTX sksl piex raw_codec zlib libetc1 " +
"libwebp_dsp_enc opts_avx opts_sse42 opts_hsw xml svg";

var buildArch = new Action<string, string> ((arch, folder) => {
Expand All @@ -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", "ninja");
RunGyp ("skia_os='linux' skia_arch_type='" + arch + "' skia_gpu=1 skia_pic=1 skia_pdf_use_sfntly=0", "ninja");
RunProcess (ninja, new ProcessSettings {
Arguments = "-C out/" + folder + "/Release " + targets,
WorkingDirectory = SKIA_PATH.FullPath,
Expand Down
2 changes: 0 additions & 2 deletions native-builds/libSkiaSharp_linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ library_paths = \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libjpeg-turbo.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libzlib.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libetc1.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libsfntly.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libicuuc.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libraw_codec.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libSkKTX.a \
../../externals/skia/out/${ARCH}/Release/obj/gyp/libdng_sdk.a \
Expand Down

0 comments on commit f9e2ab4

Please sign in to comment.