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

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

Issue 1406153015: Remove dependencies on Android's forked decoder libraries (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It is 2015 Created 5 years, 1 month 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/libpng.gyp ('k') | src/codec/SkCodec.cpp » ('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. 1 # Copyright 2015 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # 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
7 # 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
8 # distribution so we have to build a few of them ourselves. 8 # distribution so we have to build a few of them ourselves.
9 # 9 #
10 # 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
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 'defines': [ 82 'defines': [
83 'HAVE_EXPAT_CONFIG_H', 83 'HAVE_EXPAT_CONFIG_H',
84 ], 84 ],
85 'direct_dependent_settings': { 85 'direct_dependent_settings': {
86 'include_dirs': [ 86 'include_dirs': [
87 '../third_party/externals/expat/lib', # For expat.h 87 '../third_party/externals/expat/lib', # For expat.h
88 ], 88 ],
89 } 89 }
90 }, 90 },
91 { 91 {
92 'target_name': 'png',
93 'type': 'static_library',
94 'sources': [
95 '../third_party/externals/png/png.c',
96 '../third_party/externals/png/pngerror.c',
97 '../third_party/externals/png/pnggccrd.c',
98 '../third_party/externals/png/pngget.c',
99 '../third_party/externals/png/pngmem.c',
100 '../third_party/externals/png/pngpread.c',
101 '../third_party/externals/png/pngread.c',
102 '../third_party/externals/png/pngrio.c',
103 '../third_party/externals/png/pngrtran.c',
104 '../third_party/externals/png/pngrutil.c',
105 '../third_party/externals/png/pngset.c',
106 '../third_party/externals/png/pngtrans.c',
107 '../third_party/externals/png/pngvcrd.c',
108 '../third_party/externals/png/pngwio.c',
109 '../third_party/externals/png/pngwrite.c',
110 '../third_party/externals/png/pngwtran.c',
111 '../third_party/externals/png/pngwutil.c',
112 ],
113 'include_dirs': [
114 '../third_party/externals/png',
115 ],
116 'cflags': [
117 '-w',
118 '-fvisibility=hidden',
119 ],
120 'link_settings': {
121 'libraries': [
122 '-lz',
123 ],
124 },
125 'direct_dependent_settings': {
126 'include_dirs': [
127 '../third_party/externals/png',
128 ],
129 }
130 },
131 {
132 'target_name': 'jpeg',
133 'type': 'static_library',
134 'dependencies': [
135 'ashmem'
136 ],
137 'sources': [
138 '../third_party/externals/jpeg/jcapimin.c',
139 '../third_party/externals/jpeg/jcapistd.c',
140 '../third_party/externals/jpeg/jccoefct.c',
141 '../third_party/externals/jpeg/jccolor.c',
142 '../third_party/externals/jpeg/jcdctmgr.c',
143 '../third_party/externals/jpeg/jchuff.c',
144 '../third_party/externals/jpeg/jcinit.c',
145 '../third_party/externals/jpeg/jcmainct.c',
146 '../third_party/externals/jpeg/jcmarker.c',
147 '../third_party/externals/jpeg/jcmaster.c',
148 '../third_party/externals/jpeg/jcomapi.c',
149 '../third_party/externals/jpeg/jcparam.c',
150 '../third_party/externals/jpeg/jcphuff.c',
151 '../third_party/externals/jpeg/jcprepct.c',
152 '../third_party/externals/jpeg/jcsample.c',
153 '../third_party/externals/jpeg/jctrans.c',
154 '../third_party/externals/jpeg/jdapimin.c',
155 '../third_party/externals/jpeg/jdapistd.c',
156 '../third_party/externals/jpeg/jdatadst.c',
157 '../third_party/externals/jpeg/jdatasrc.c',
158 '../third_party/externals/jpeg/jdcoefct.c',
159 '../third_party/externals/jpeg/jdcolor.c',
160 '../third_party/externals/jpeg/jddctmgr.c',
161 '../third_party/externals/jpeg/jdhuff.c',
162 '../third_party/externals/jpeg/jdinput.c',
163 '../third_party/externals/jpeg/jdmainct.c',
164 '../third_party/externals/jpeg/jdmarker.c',
165 '../third_party/externals/jpeg/jdmaster.c',
166 '../third_party/externals/jpeg/jdmerge.c',
167 '../third_party/externals/jpeg/jdphuff.c',
168 '../third_party/externals/jpeg/jdpostct.c',
169 '../third_party/externals/jpeg/jdsample.c',
170 '../third_party/externals/jpeg/jdtrans.c',
171 '../third_party/externals/jpeg/jerror.c',
172 '../third_party/externals/jpeg/jfdctflt.c',
173 '../third_party/externals/jpeg/jfdctfst.c',
174 '../third_party/externals/jpeg/jfdctint.c',
175 '../third_party/externals/jpeg/jidctflt.c',
176 '../third_party/externals/jpeg/jidctfst.c',
177 '../third_party/externals/jpeg/jidctint.c',
178 '../third_party/externals/jpeg/jidctred.c',
179 '../third_party/externals/jpeg/jmem-ashmem.c',
180 '../third_party/externals/jpeg/jmemmgr.c',
181 '../third_party/externals/jpeg/jquant1.c',
182 '../third_party/externals/jpeg/jquant2.c',
183 '../third_party/externals/jpeg/jutils.c',
184 ],
185 'conditions': [
186 # FIXME (msarett):
187 # Turn off Arm NEON optimizations to avoid namespace conflicts when
188 # compiling libjpeg and libjpeg-turbo. This is a temporary step in the
189 # plan to replace libjpeg with libjpeg-turbo.
190 #[ 'arm_neon == 1 and skia_clang_build == 0',
191 # {
192 # 'sources' : [
193 # '../third_party/externals/jpeg/armv6_idct.S',
194 # '../third_party/externals/jpeg/jsimd_arm_neon.S',
195 # '../third_party/externals/jpeg/jsimd_neon.c',
196 # ],
197 # 'defines' : [
198 # 'NV_ARM_NEON',
199 # ],
200 # },
201 #],
202 [ '"mips" in skia_arch_type and mips_dsp == 2',
203 {
204 'sources' : [
205 '../third_party/externals/jpeg/mips_jidctfst.c',
206 '../third_party/externals/jpeg/mips_idct_le.S',
207 ],
208 'defines' : [
209 'ANDROID_MIPS_IDCT',
210 ],
211 },
212 ],
213 [ '"x86" in skia_arch_type',
214 {
215 'sources' : [
216 '../third_party/externals/jpeg/jidctintelsse.c',
217 ],
218 'defines' : [
219 'ANDROID_INTELSSE2_IDCT',
220 ],
221 },
222 ],
223 ],
224 'include_dirs': [
225 '../third_party/externals/jpeg',
226 ],
227 'cflags': [
228 '-w',
229 '-fvisibility=hidden',
230 '-DAVOID_TABLES',
231 '-DUSE_ANDROID_ASHMEM',
232 '-O3',
233 '-fstrict-aliasing',
234 '-fprefetch-loop-arrays',
235 '-DANDROID_TILE_BASED_DECODE',
236 ],
237 'direct_dependent_settings': {
238 'include_dirs': [
239 '../third_party/externals/jpeg',
240 ],
241 }
242 },
243 {
244 # This target is a dependency for all console-type Skia applications which 92 # This target is a dependency for all console-type Skia applications which
245 # will run on Android. Since Android requires us to load native code in 93 # will run on Android. Since Android requires us to load native code in
246 # shared libraries, we need a common entry point to wrap around main(). 94 # shared libraries, we need a common entry point to wrap around main().
247 # Here we also change the type of all would-be executables to be shared 95 # Here we also change the type of all would-be executables to be shared
248 # libraries. The alternative would be to introduce a condition in every 96 # libraries. The alternative would be to introduce a condition in every
249 # executable target which changes to a shared library if the target OS is 97 # executable target which changes to a shared library if the target OS is
250 # Android. This is nicer because the switch is in one place. 98 # Android. This is nicer because the switch is in one place.
251 'target_name': 'Android_EntryPoint', 99 'target_name': 'Android_EntryPoint',
252 'type': 'static_library', 100 'type': 'static_library',
253 'direct_dependent_settings': { 101 'direct_dependent_settings': {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 '../../../tools/VisualBench/', 172 '../../../tools/VisualBench/',
325 ], 173 ],
326 'sources': [ 174 'sources': [
327 '../apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp', 175 '../apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp',
328 '../apps/visualbench/src/main/jni/main.cpp', 176 '../apps/visualbench/src/main/jni/main.cpp',
329 ], 177 ],
330 }, 178 },
331 }, 179 },
332 ] 180 ]
333 } 181 }
OLDNEW
« no previous file with comments | « gyp/libpng.gyp ('k') | src/codec/SkCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698