aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/common_variables.gypi
diff options
context:
space:
mode:
authorGravatar djsollen <djsollen@google.com>2015-04-01 11:20:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-01 11:20:12 -0700
commit1865900525b6c6df19824813c0d3222ad6a90da2 (patch)
treec25b8cb22688f221ef43a96de11f7baf0dd888c5 /gyp/common_variables.gypi
parent2469c999518e7b0063d35e9e2eb074a0477c21ac (diff)
Revert of Enable both static and dynamically linked libpng (patchset #4 id:60001 of https://codereview.chromium.org/1032253003/)
Reason for revert: breaking the nexus_9 and ios builds. Original issue's description: > Enable both static and dynamically linked libpng > > All platforms except android are configured to use the statically linked copy of libpng. Android uses the system provided dynamic copy for SkImageDecoder and the static copy for SkCodec. The exception being android framework builds that currently use the dynamic copy everywhere. > > This CL also enables NEON optimizations for libpng. > > Committed: https://skia.googlesource.com/skia/+/2469c999518e7b0063d35e9e2eb074a0477c21ac TBR=scroggo@google.com,msarett@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1050183002
Diffstat (limited to 'gyp/common_variables.gypi')
-rw-r--r--gyp/common_variables.gypi9
1 files changed, 9 insertions, 0 deletions
diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi
index 8fb4620b82..80ab7c91ed 100644
--- a/gyp/common_variables.gypi
+++ b/gyp/common_variables.gypi
@@ -165,6 +165,15 @@
}, {
'skia_release_optimization_level%': '<(skia_default_gcc_optimization_level)',
}],
+ [ 'skia_os == "android"', {
+ # skia_libpng_static - instead of linking libpng with '-lpng' and
+ # including the headers from '/usr/include/png.h', compile and
+ # statically link the version of libpng in
+ # third_party/externals/libpng.
+ 'skia_libpng_static%': '0',
+ }, {
+ 'skia_libpng_static%': '1',
+ }],
[ 'skia_sanitizer', {
'skia_clang_build': 1,
'skia_keep_frame_pointer': 1,