aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2015-03-30 07:52:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-30 07:52:52 -0700
commit6d0e7b2031f8eee4e88905082de0506cfbb2bfc3 (patch)
treeecdb5bd118bcf144d3864835833b533ac85ad708 /platform_tools
parent44b80228a42d5e7600948ff98ead363a9024a2d7 (diff)
WIP: Added support for giflib, updated jpeg and png
Diffstat (limited to 'platform_tools')
-rw-r--r--platform_tools/android/gyp/dependencies.gypi65
-rw-r--r--platform_tools/chromeos/gyp/dependencies.gypi35
2 files changed, 42 insertions, 58 deletions
diff --git a/platform_tools/android/gyp/dependencies.gypi b/platform_tools/android/gyp/dependencies.gypi
index 6507ee45f7..dca2438412 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,27 +60,6 @@
}
},
{
- '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',
'sources': [
@@ -160,11 +144,46 @@
'../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
+ ],
+ 'conditions': [
+ [ 'arm_neon == 1',
+ {
+ 'sources' : [
+ '../third_party/externals/jpeg/armv6_idct.S',
+ '../third_party/externals/jpeg/jsimd_arm_neon.S',
+ '../third_party/externals/jpeg/jsimd_neon.c',
+ ],
+ 'defines' : [
+ 'NV_ARM_NEON',
+ ],
+ },
+ ],
+ [ 'skia_arch_type == "mips" and mips_dsp == 2',
+ {
+ 'sources' : [
+ '../third_party/externals/jpeg/mips_jidctfst.c',
+ '../third_party/externals/jpeg/mips_idct_le.S',
+ ],
+ 'defines' : [
+ 'ANDROID_MIPS_IDCT',
+ ],
+ },
+ ],
+ [ '"x86" in skia_arch_type',
+ {
+ 'sources' : [
+ '../third_party/externals/jpeg/jidctintelsse.c',
+ ],
+ 'defines' : [
+ 'ANDROID_INTELSSE2_IDCT',
+ ],
+ },
+ ],
],
'include_dirs': [
'../third_party/externals/jpeg',
diff --git a/platform_tools/chromeos/gyp/dependencies.gypi b/platform_tools/chromeos/gyp/dependencies.gypi
deleted file mode 100644
index 38e3c5337f..0000000000
--- a/platform_tools/chromeos/gyp/dependencies.gypi
+++ /dev/null
@@ -1,35 +0,0 @@
-# This GYP file stores the dependencies necessary to build Skia on the Chrome OS
-# platform. The OS doesn't provide many stable libraries as part of the
-# distribution so we have to build a few of them ourselves.
-
-{
- 'variables': {
- 'skia_warnings_as_errors': 0,
- },
- 'targets': [
- {
- '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': [
- '-Wno-format',
- '-DHAVE_CONFIG_H',
- ],
- 'cflags!': [
- '-Wall',
- ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- '../third_party/externals/gif',
- ],
- }
- },
- ]
-}