OLD | NEW |
1 # This GYP file stores the dependencies necessary to build Skia on the Android | 1 # 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 | 2 # 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. | 3 # distribution so we have to build a few of them ourselves. |
4 # | 4 # |
5 # NOTE: We tried adding the gyp file to the android/ directory at the root of | 5 # 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 | 6 # 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 | 7 # 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 | 8 # to the /android directory and put a simple shim here, but that has yet to be |
9 # tested. | 9 # tested. |
10 | 10 |
11 { | 11 { |
12 'variables': { | 12 'variables': { |
13 'skia_warnings_as_errors': 0, | 13 'skia_warnings_as_errors': 0, |
14 }, | 14 }, |
15 'targets': [ | 15 'targets': [ |
16 { | 16 { |
17 'target_name': 'cpu_features', | 17 'target_name': 'cpu_features', |
18 'type': 'static_library', | 18 'type': 'static_library', |
19 'direct_dependent_settings': { | 19 'direct_dependent_settings': { |
20 'include_dirs': [ | 20 'include_dirs': [ |
21 '../third_party/cpufeatures', | 21 '../third_party/cpufeatures', |
22 ], | 22 ], |
23 }, | 23 }, |
24 'sources': [ | 24 'sources': [ |
25 '../third_party/cpufeatures/cpu-features.c', | 25 '../third_party/cpufeatures/cpu-features.c', |
26 '../third_party/cpufeatures/cpu-features.h', | 26 '../third_party/cpufeatures/cpu-features.h', |
27 ], | 27 ], |
| 28 'cflags': [ |
| 29 '-w', |
| 30 ], |
28 }, | 31 }, |
29 { | 32 { |
30 'target_name': 'expat', | 33 'target_name': 'expat', |
31 'type': 'static_library', | 34 'type': 'static_library', |
32 'sources': [ | 35 'sources': [ |
33 '../third_party/externals/expat/lib/xmlparse.c', | 36 '../third_party/externals/expat/lib/xmlparse.c', |
34 '../third_party/externals/expat/lib/xmlrole.c', | 37 '../third_party/externals/expat/lib/xmlrole.c', |
35 '../third_party/externals/expat/lib/xmltok.c', | 38 '../third_party/externals/expat/lib/xmltok.c', |
36 ], | 39 ], |
37 'include_dirs': [ | 40 'include_dirs': [ |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 '../third_party/externals/jpeg/jquant1.c', | 168 '../third_party/externals/jpeg/jquant1.c', |
166 '../third_party/externals/jpeg/jquant2.c', | 169 '../third_party/externals/jpeg/jquant2.c', |
167 '../third_party/externals/jpeg/jutils.c', | 170 '../third_party/externals/jpeg/jutils.c', |
168 '../third_party/externals/jpeg/jmemmgr.c', | 171 '../third_party/externals/jpeg/jmemmgr.c', |
169 '../third_party/externals/jpeg/jmem-android.c', # ashmem is also availab
le | 172 '../third_party/externals/jpeg/jmem-android.c', # ashmem is also availab
le |
170 ], | 173 ], |
171 'include_dirs': [ | 174 'include_dirs': [ |
172 '../third_party/externals/jpeg', | 175 '../third_party/externals/jpeg', |
173 ], | 176 ], |
174 'cflags': [ | 177 'cflags': [ |
| 178 '-w', |
175 '-fvisibility=hidden', | 179 '-fvisibility=hidden', |
176 '-DAVOID_TABLES', | 180 '-DAVOID_TABLES', |
177 '-O3', | 181 '-O3', |
178 '-fstrict-aliasing', | 182 '-fstrict-aliasing', |
179 '-fprefetch-loop-arrays', | 183 '-fprefetch-loop-arrays', |
180 '-DANDROID_TILE_BASED_DECODE', | 184 '-DANDROID_TILE_BASED_DECODE', |
181 ], | 185 ], |
182 'cflags!': [ | |
183 '-Wall', | |
184 ], | |
185 'direct_dependent_settings': { | 186 'direct_dependent_settings': { |
186 'include_dirs': [ | 187 'include_dirs': [ |
187 '../third_party/externals/jpeg', | 188 '../third_party/externals/jpeg', |
188 ], | 189 ], |
189 } | 190 } |
190 }, | 191 }, |
191 { | 192 { |
192 # This target is a dependency for all console-type Skia applications which | 193 # This target is a dependency for all console-type Skia applications which |
193 # will run on Android. Since Android requires us to load native code in | 194 # will run on Android. Since Android requires us to load native code in |
194 # shared libraries, we need a common entry point to wrap around main(). | 195 # shared libraries, we need a common entry point to wrap around main(). |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 }], | 240 }], |
240 ], | 241 ], |
241 'sources': [ | 242 'sources': [ |
242 '../app/jni/com_skia_SkiaSampleRenderer.cpp', | 243 '../app/jni/com_skia_SkiaSampleRenderer.cpp', |
243 ], | 244 ], |
244 }, | 245 }, |
245 | 246 |
246 }, | 247 }, |
247 ] | 248 ] |
248 } | 249 } |
OLD | NEW |