Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: platform_tools/android/gyp/dependencies.gypi

Issue 1038863003: WIP: Added support for giflib, updated jpeg and png (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Merge Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/images.gyp ('k') | platform_tools/chromeos/gyp/dependencies.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 Google Inc.
2 #
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
1 # This GYP file stores the dependencies necessary to build Skia on the Android 6 # This GYP file stores the dependencies necessary to build Skia on the Android
2 # platform. The OS doesn't provide many stable libraries as part of the 7 # platform. The OS doesn't provide many stable libraries as part of the
3 # distribution so we have to build a few of them ourselves. 8 # distribution so we have to build a few of them ourselves.
4 # 9 #
5 # NOTE: We tried adding the gyp file to the android/ directory at the root of 10 # NOTE: We tried adding the gyp file to the android/ directory at the root of
6 # the Skia repo, but that resulted in the generated makefiles being created 11 # the Skia repo, but that resulted in the generated makefiles being created
7 # outside of the out directory. We may be able to move the bulk of this gyp 12 # outside of the out directory. We may be able to move the bulk of this gyp
8 # to the /android directory and put a simple shim here, but that has yet to be 13 # to the /android directory and put a simple shim here, but that has yet to be
9 # tested. 14 # tested.
10 15
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 'defines': [ 53 'defines': [
49 'HAVE_EXPAT_CONFIG_H', 54 'HAVE_EXPAT_CONFIG_H',
50 ], 55 ],
51 'direct_dependent_settings': { 56 'direct_dependent_settings': {
52 'include_dirs': [ 57 'include_dirs': [
53 '../third_party/externals/expat/lib', # For expat.h 58 '../third_party/externals/expat/lib', # For expat.h
54 ], 59 ],
55 } 60 }
56 }, 61 },
57 { 62 {
58 'target_name': 'gif',
59 'type': 'static_library',
60 'sources': [
61 '../third_party/externals/gif/dgif_lib.c',
62 '../third_party/externals/gif/gifalloc.c',
63 '../third_party/externals/gif/gif_err.c',
64 ],
65 'include_dirs': [
66 '../third_party/externals/gif',
67 ],
68 'cflags': [
69 '-w',
70 '-DHAVE_CONFIG_H',
71 ],
72 'direct_dependent_settings': {
73 'include_dirs': [
74 '../third_party/externals/gif',
75 ],
76 }
77 },
78 {
79 'target_name': 'png', 63 'target_name': 'png',
80 'type': 'static_library', 64 'type': 'static_library',
81 'sources': [ 65 'sources': [
82 '../third_party/externals/png/png.c', 66 '../third_party/externals/png/png.c',
83 '../third_party/externals/png/pngerror.c', 67 '../third_party/externals/png/pngerror.c',
84 '../third_party/externals/png/pnggccrd.c', 68 '../third_party/externals/png/pnggccrd.c',
85 '../third_party/externals/png/pngget.c', 69 '../third_party/externals/png/pngget.c',
86 '../third_party/externals/png/pngmem.c', 70 '../third_party/externals/png/pngmem.c',
87 '../third_party/externals/png/pngpread.c', 71 '../third_party/externals/png/pngpread.c',
88 '../third_party/externals/png/pngread.c', 72 '../third_party/externals/png/pngread.c',
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 '../third_party/externals/jpeg/jdsample.c', 137 '../third_party/externals/jpeg/jdsample.c',
154 '../third_party/externals/jpeg/jdtrans.c', 138 '../third_party/externals/jpeg/jdtrans.c',
155 '../third_party/externals/jpeg/jerror.c', 139 '../third_party/externals/jpeg/jerror.c',
156 '../third_party/externals/jpeg/jfdctflt.c', 140 '../third_party/externals/jpeg/jfdctflt.c',
157 '../third_party/externals/jpeg/jfdctfst.c', 141 '../third_party/externals/jpeg/jfdctfst.c',
158 '../third_party/externals/jpeg/jfdctint.c', 142 '../third_party/externals/jpeg/jfdctint.c',
159 '../third_party/externals/jpeg/jidctflt.c', 143 '../third_party/externals/jpeg/jidctflt.c',
160 '../third_party/externals/jpeg/jidctfst.c', 144 '../third_party/externals/jpeg/jidctfst.c',
161 '../third_party/externals/jpeg/jidctint.c', 145 '../third_party/externals/jpeg/jidctint.c',
162 '../third_party/externals/jpeg/jidctred.c', 146 '../third_party/externals/jpeg/jidctred.c',
147 '../third_party/externals/jpeg/jmem-android.c',
148 '../third_party/externals/jpeg/jmemmgr.c',
163 '../third_party/externals/jpeg/jquant1.c', 149 '../third_party/externals/jpeg/jquant1.c',
164 '../third_party/externals/jpeg/jquant2.c', 150 '../third_party/externals/jpeg/jquant2.c',
165 '../third_party/externals/jpeg/jutils.c', 151 '../third_party/externals/jpeg/jutils.c',
166 '../third_party/externals/jpeg/jmemmgr.c', 152 ],
167 '../third_party/externals/jpeg/jmem-android.c', # ashmem is also availab le 153 'conditions': [
154 [ 'arm_neon == 1',
155 {
156 'sources' : [
157 '../third_party/externals/jpeg/armv6_idct.S',
158 '../third_party/externals/jpeg/jsimd_arm_neon.S',
159 '../third_party/externals/jpeg/jsimd_neon.c',
160 ],
161 'defines' : [
162 'NV_ARM_NEON',
163 ],
164 },
165 ],
166 [ 'skia_arch_type == "mips" and mips_dsp == 2',
167 {
168 'sources' : [
169 '../third_party/externals/jpeg/mips_jidctfst.c',
170 '../third_party/externals/jpeg/mips_idct_le.S',
171 ],
172 'defines' : [
173 'ANDROID_MIPS_IDCT',
174 ],
175 },
176 ],
177 [ '"x86" in skia_arch_type',
178 {
179 'sources' : [
180 '../third_party/externals/jpeg/jidctintelsse.c',
181 ],
182 'defines' : [
183 'ANDROID_INTELSSE2_IDCT',
184 ],
185 },
186 ],
168 ], 187 ],
169 'include_dirs': [ 188 'include_dirs': [
170 '../third_party/externals/jpeg', 189 '../third_party/externals/jpeg',
171 ], 190 ],
172 'cflags': [ 191 'cflags': [
173 '-w', 192 '-w',
174 '-fvisibility=hidden', 193 '-fvisibility=hidden',
175 '-DAVOID_TABLES', 194 '-DAVOID_TABLES',
176 '-O3', 195 '-O3',
177 '-fstrict-aliasing', 196 '-fstrict-aliasing',
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 }], 254 }],
236 ], 255 ],
237 'sources': [ 256 'sources': [
238 '../app/jni/com_skia_SkiaSampleRenderer.cpp', 257 '../app/jni/com_skia_SkiaSampleRenderer.cpp',
239 ], 258 ],
240 }, 259 },
241 260
242 }, 261 },
243 ] 262 ]
244 } 263 }
OLDNEW
« no previous file with comments | « gyp/images.gyp ('k') | platform_tools/chromeos/gyp/dependencies.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698