Index: platform_tools/android/gyp/dependencies.gypi |
diff --git a/platform_tools/android/gyp/dependencies.gypi b/platform_tools/android/gyp/dependencies.gypi |
index 6507ee45f742f6dbd6ebce160217eaddb8c76df0..fcf948de6237c09f11002b20bd4a2b5cca0974db 100644 |
--- a/platform_tools/android/gyp/dependencies.gypi |
+++ b/platform_tools/android/gyp/dependencies.gypi |
@@ -1,3 +1,8 @@ |
+# Copyright 2015 Google Inc. |
+# |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
# This GYP file stores the dependencies necessary to build Skia on the Android |
# platform. The OS doesn't provide many stable libraries as part of the |
# distribution so we have to build a few of them ourselves. |
@@ -55,33 +60,22 @@ |
} |
}, |
{ |
- 'target_name': 'gif', |
- 'type': 'static_library', |
- 'sources': [ |
- '../third_party/externals/gif/dgif_lib.c', |
- '../third_party/externals/gif/gifalloc.c', |
- '../third_party/externals/gif/gif_err.c', |
- ], |
- 'include_dirs': [ |
- '../third_party/externals/gif', |
- ], |
- 'cflags': [ |
- '-w', |
- '-DHAVE_CONFIG_H', |
- ], |
- 'direct_dependent_settings': { |
- 'include_dirs': [ |
- '../third_party/externals/gif', |
- ], |
- } |
- }, |
- { |
'target_name': 'png', |
'type': 'static_library', |
+ 'conditions': [ |
djsollen
2015/03/27 14:23:28
as a style note we usually put the conditions afte
msarett
2015/03/27 14:47:29
Done.
|
+ [ 'arm_neon == 1', |
djsollen
2015/03/27 14:23:28
need to add -DPNG_ARM_NEON_OPT=2
msarett
2015/03/27 14:47:28
Thanks!
|
+ { |
+ 'sources' : [ |
+ '../third_party/externals/png/arm/arm_init.c', |
+ '../third_party/externals/png/arm/filter_neon.S', |
+ '../third_party/externals/png/arm/filter_neon_intrinsics.c', |
+ ] |
+ }, |
+ ], |
+ ], |
'sources': [ |
'../third_party/externals/png/png.c', |
'../third_party/externals/png/pngerror.c', |
- '../third_party/externals/png/pnggccrd.c', |
'../third_party/externals/png/pngget.c', |
'../third_party/externals/png/pngmem.c', |
'../third_party/externals/png/pngpread.c', |
@@ -91,7 +85,6 @@ |
'../third_party/externals/png/pngrutil.c', |
'../third_party/externals/png/pngset.c', |
'../third_party/externals/png/pngtrans.c', |
- '../third_party/externals/png/pngvcrd.c', |
'../third_party/externals/png/pngwio.c', |
'../third_party/externals/png/pngwrite.c', |
'../third_party/externals/png/pngwtran.c', |
@@ -118,6 +111,32 @@ |
{ |
'target_name': 'jpeg', |
'type': 'static_library', |
+ 'conditions': [ |
+ [ 'arm_neon == 1', |
+ { |
+ 'sources' : [ |
djsollen
2015/03/27 14:23:28
-DNV_ARM_NEON
msarett
2015/03/27 14:47:29
Done.
|
+ '../third_party/externals/jpeg/armv6_idct.S', |
+ '../third_party/externals/jpeg/jsimd_arm_neon.S', |
+ '../third_party/externals/jpeg/jsimd_neon.c', |
+ ] |
+ }, |
+ ], |
+ [ 'skia_arch_type == "mips" and mips_dsp == 2', |
djsollen
2015/03/27 14:23:28
-DANDROID_MIPS_IDCT
msarett
2015/03/27 14:47:29
Done.
|
+ { |
+ 'sources' : [ |
+ '../third_party/externals/jpeg/mips_jidctfst.c', |
+ '../third_party/externals/jpeg/mips_idct_le.S', |
+ ] |
+ }, |
+ ], |
+ [ '"x86" in skia_arch_type', |
+ { |
+ 'sources' : [ |
djsollen
2015/03/27 14:23:28
-DANDROID_INTELSSE2_IDCT
msarett
2015/03/27 14:47:29
Done.
|
+ '../third_party/externals/jpeg/jidctintelsse.c', |
+ ] |
+ }, |
+ ], |
+ ], |
'sources': [ |
'../third_party/externals/jpeg/jcapimin.c', |
'../third_party/externals/jpeg/jcapistd.c', |
@@ -160,11 +179,11 @@ |
'../third_party/externals/jpeg/jidctfst.c', |
'../third_party/externals/jpeg/jidctint.c', |
'../third_party/externals/jpeg/jidctred.c', |
+ '../third_party/externals/jpeg/jmem-android.c', |
+ '../third_party/externals/jpeg/jmemmgr.c', |
'../third_party/externals/jpeg/jquant1.c', |
'../third_party/externals/jpeg/jquant2.c', |
'../third_party/externals/jpeg/jutils.c', |
- '../third_party/externals/jpeg/jmemmgr.c', |
- '../third_party/externals/jpeg/jmem-android.c', # ashmem is also available |
], |
'include_dirs': [ |
'../third_party/externals/jpeg', |