| OLD | NEW |
| 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 | |
| 6 # 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 |
| 7 # 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 |
| 8 # distribution so we have to build a few of them ourselves. | 3 # distribution so we have to build a few of them ourselves. |
| 9 # | 4 # |
| 10 # 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 |
| 11 # 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 |
| 12 # 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 |
| 13 # 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 |
| 14 # tested. | 9 # tested. |
| 15 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 'defines': [ | 48 'defines': [ |
| 54 'HAVE_EXPAT_CONFIG_H', | 49 'HAVE_EXPAT_CONFIG_H', |
| 55 ], | 50 ], |
| 56 'direct_dependent_settings': { | 51 'direct_dependent_settings': { |
| 57 'include_dirs': [ | 52 'include_dirs': [ |
| 58 '../third_party/externals/expat/lib', # For expat.h | 53 '../third_party/externals/expat/lib', # For expat.h |
| 59 ], | 54 ], |
| 60 } | 55 } |
| 61 }, | 56 }, |
| 62 { | 57 { |
| 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 { |
| 63 'target_name': 'png', | 79 'target_name': 'png', |
| 64 'type': 'static_library', | 80 'type': 'static_library', |
| 65 'sources': [ | 81 'sources': [ |
| 66 '../third_party/externals/png/png.c', | 82 '../third_party/externals/png/png.c', |
| 67 '../third_party/externals/png/pngerror.c', | 83 '../third_party/externals/png/pngerror.c', |
| 84 '../third_party/externals/png/pnggccrd.c', |
| 68 '../third_party/externals/png/pngget.c', | 85 '../third_party/externals/png/pngget.c', |
| 69 '../third_party/externals/png/pngmem.c', | 86 '../third_party/externals/png/pngmem.c', |
| 70 '../third_party/externals/png/pngpread.c', | 87 '../third_party/externals/png/pngpread.c', |
| 71 '../third_party/externals/png/pngread.c', | 88 '../third_party/externals/png/pngread.c', |
| 72 '../third_party/externals/png/pngrio.c', | 89 '../third_party/externals/png/pngrio.c', |
| 73 '../third_party/externals/png/pngrtran.c', | 90 '../third_party/externals/png/pngrtran.c', |
| 74 '../third_party/externals/png/pngrutil.c', | 91 '../third_party/externals/png/pngrutil.c', |
| 75 '../third_party/externals/png/pngset.c', | 92 '../third_party/externals/png/pngset.c', |
| 76 '../third_party/externals/png/pngtrans.c', | 93 '../third_party/externals/png/pngtrans.c', |
| 94 '../third_party/externals/png/pngvcrd.c', |
| 77 '../third_party/externals/png/pngwio.c', | 95 '../third_party/externals/png/pngwio.c', |
| 78 '../third_party/externals/png/pngwrite.c', | 96 '../third_party/externals/png/pngwrite.c', |
| 79 '../third_party/externals/png/pngwtran.c', | 97 '../third_party/externals/png/pngwtran.c', |
| 80 '../third_party/externals/png/pngwutil.c', | 98 '../third_party/externals/png/pngwutil.c', |
| 81 ], | 99 ], |
| 82 'conditions': [ | |
| 83 [ 'arm_neon == 1', | |
| 84 { | |
| 85 'sources' : [ | |
| 86 '../third_party/externals/png/arm/arm_init.c', | |
| 87 '../third_party/externals/png/arm/filter_neon.S', | |
| 88 '../third_party/externals/png/arm/filter_neon_intrinsics.c', | |
| 89 ], | |
| 90 'defines' : [ | |
| 91 'PNG_ARM_NEON_OPT=2', | |
| 92 ], | |
| 93 }, | |
| 94 ], | |
| 95 ], | |
| 96 'include_dirs': [ | 100 'include_dirs': [ |
| 97 '../third_party/externals/png', | 101 '../third_party/externals/png', |
| 98 ], | 102 ], |
| 99 'cflags': [ | 103 'cflags': [ |
| 100 '-w', | 104 '-w', |
| 101 '-fvisibility=hidden', | 105 '-fvisibility=hidden', |
| 102 ], | 106 ], |
| 103 'link_settings': { | 107 'link_settings': { |
| 104 'libraries': [ | 108 'libraries': [ |
| 105 '-lz', | 109 '-lz', |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 '../third_party/externals/jpeg/jdsample.c', | 153 '../third_party/externals/jpeg/jdsample.c', |
| 150 '../third_party/externals/jpeg/jdtrans.c', | 154 '../third_party/externals/jpeg/jdtrans.c', |
| 151 '../third_party/externals/jpeg/jerror.c', | 155 '../third_party/externals/jpeg/jerror.c', |
| 152 '../third_party/externals/jpeg/jfdctflt.c', | 156 '../third_party/externals/jpeg/jfdctflt.c', |
| 153 '../third_party/externals/jpeg/jfdctfst.c', | 157 '../third_party/externals/jpeg/jfdctfst.c', |
| 154 '../third_party/externals/jpeg/jfdctint.c', | 158 '../third_party/externals/jpeg/jfdctint.c', |
| 155 '../third_party/externals/jpeg/jidctflt.c', | 159 '../third_party/externals/jpeg/jidctflt.c', |
| 156 '../third_party/externals/jpeg/jidctfst.c', | 160 '../third_party/externals/jpeg/jidctfst.c', |
| 157 '../third_party/externals/jpeg/jidctint.c', | 161 '../third_party/externals/jpeg/jidctint.c', |
| 158 '../third_party/externals/jpeg/jidctred.c', | 162 '../third_party/externals/jpeg/jidctred.c', |
| 159 '../third_party/externals/jpeg/jmem-android.c', | |
| 160 '../third_party/externals/jpeg/jmemmgr.c', | |
| 161 '../third_party/externals/jpeg/jquant1.c', | 163 '../third_party/externals/jpeg/jquant1.c', |
| 162 '../third_party/externals/jpeg/jquant2.c', | 164 '../third_party/externals/jpeg/jquant2.c', |
| 163 '../third_party/externals/jpeg/jutils.c', | 165 '../third_party/externals/jpeg/jutils.c', |
| 164 ], | 166 '../third_party/externals/jpeg/jmemmgr.c', |
| 165 'conditions': [ | 167 '../third_party/externals/jpeg/jmem-android.c', # ashmem is also availab
le |
| 166 [ 'arm_neon == 1', | |
| 167 { | |
| 168 'sources' : [ | |
| 169 '../third_party/externals/jpeg/armv6_idct.S', | |
| 170 '../third_party/externals/jpeg/jsimd_arm_neon.S', | |
| 171 '../third_party/externals/jpeg/jsimd_neon.c', | |
| 172 ], | |
| 173 'defines' : [ | |
| 174 'NV_ARM_NEON', | |
| 175 ], | |
| 176 }, | |
| 177 ], | |
| 178 [ 'skia_arch_type == "mips" and mips_dsp == 2', | |
| 179 { | |
| 180 'sources' : [ | |
| 181 '../third_party/externals/jpeg/mips_jidctfst.c', | |
| 182 '../third_party/externals/jpeg/mips_idct_le.S', | |
| 183 ], | |
| 184 'defines' : [ | |
| 185 'ANDROID_MIPS_IDCT', | |
| 186 ], | |
| 187 }, | |
| 188 ], | |
| 189 [ '"x86" in skia_arch_type', | |
| 190 { | |
| 191 'sources' : [ | |
| 192 '../third_party/externals/jpeg/jidctintelsse.c', | |
| 193 ], | |
| 194 'defines' : [ | |
| 195 'ANDROID_INTELSSE2_IDCT', | |
| 196 ], | |
| 197 }, | |
| 198 ], | |
| 199 ], | 168 ], |
| 200 'include_dirs': [ | 169 'include_dirs': [ |
| 201 '../third_party/externals/jpeg', | 170 '../third_party/externals/jpeg', |
| 202 ], | 171 ], |
| 203 'cflags': [ | 172 'cflags': [ |
| 204 '-w', | 173 '-w', |
| 205 '-fvisibility=hidden', | 174 '-fvisibility=hidden', |
| 206 '-DAVOID_TABLES', | 175 '-DAVOID_TABLES', |
| 207 '-O3', | 176 '-O3', |
| 208 '-fstrict-aliasing', | 177 '-fstrict-aliasing', |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 }], | 235 }], |
| 267 ], | 236 ], |
| 268 'sources': [ | 237 'sources': [ |
| 269 '../app/jni/com_skia_SkiaSampleRenderer.cpp', | 238 '../app/jni/com_skia_SkiaSampleRenderer.cpp', |
| 270 ], | 239 ], |
| 271 }, | 240 }, |
| 272 | 241 |
| 273 }, | 242 }, |
| 274 ] | 243 ] |
| 275 } | 244 } |
| OLD | NEW |