Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 17 matching lines...) Expand all Loading... | |
| 28 }, | 28 }, |
| 29 'sources': [ | 29 'sources': [ |
| 30 '../third_party/cpufeatures/cpu-features.c', | 30 '../third_party/cpufeatures/cpu-features.c', |
| 31 '../third_party/cpufeatures/cpu-features.h', | 31 '../third_party/cpufeatures/cpu-features.h', |
| 32 ], | 32 ], |
| 33 'cflags': [ | 33 'cflags': [ |
| 34 '-w', | 34 '-w', |
| 35 ], | 35 ], |
| 36 }, | 36 }, |
| 37 { | 37 { |
| 38 'target_name': 'ashmem', | |
| 39 'type': 'static_library', | |
| 40 'sources': [ | |
| 41 '../third_party/cutils/ashmem.h', | |
|
djsollen
2015/04/27 17:12:25
let's put this code into...
../third_party/ashmem
msarett
2015/04/27 17:32:49
Done.
| |
| 42 '../third_party/cutils/ashmem-dev.c' | |
|
msarett
2015/04/27 16:01:57
Directory is named cutils so we can avoid making l
| |
| 43 ], | |
|
djsollen
2015/04/27 17:12:25
add
'direct_dependent_settings': {
'include_di
msarett
2015/04/27 17:32:49
Done.
| |
| 44 }, | |
| 45 { | |
| 38 'target_name': 'expat', | 46 'target_name': 'expat', |
| 39 'type': 'static_library', | 47 'type': 'static_library', |
| 40 'sources': [ | 48 'sources': [ |
| 41 '../third_party/externals/expat/lib/xmlparse.c', | 49 '../third_party/externals/expat/lib/xmlparse.c', |
| 42 '../third_party/externals/expat/lib/xmlrole.c', | 50 '../third_party/externals/expat/lib/xmlrole.c', |
| 43 '../third_party/externals/expat/lib/xmltok.c', | 51 '../third_party/externals/expat/lib/xmltok.c', |
| 44 ], | 52 ], |
| 45 'include_dirs': [ | 53 'include_dirs': [ |
| 46 '../third_party/externals/expat', | 54 '../third_party/externals/expat', |
| 47 '../third_party/externals/expat/lib', | 55 '../third_party/externals/expat/lib', |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 }, | 103 }, |
| 96 'direct_dependent_settings': { | 104 'direct_dependent_settings': { |
| 97 'include_dirs': [ | 105 'include_dirs': [ |
| 98 '../third_party/externals/png', | 106 '../third_party/externals/png', |
| 99 ], | 107 ], |
| 100 } | 108 } |
| 101 }, | 109 }, |
| 102 { | 110 { |
| 103 'target_name': 'jpeg', | 111 'target_name': 'jpeg', |
| 104 'type': 'static_library', | 112 'type': 'static_library', |
| 113 'dependencies': [ | |
| 114 'ashmem' | |
| 115 ], | |
| 105 'sources': [ | 116 'sources': [ |
| 106 '../third_party/externals/jpeg/jcapimin.c', | 117 '../third_party/externals/jpeg/jcapimin.c', |
| 107 '../third_party/externals/jpeg/jcapistd.c', | 118 '../third_party/externals/jpeg/jcapistd.c', |
| 108 '../third_party/externals/jpeg/jccoefct.c', | 119 '../third_party/externals/jpeg/jccoefct.c', |
| 109 '../third_party/externals/jpeg/jccolor.c', | 120 '../third_party/externals/jpeg/jccolor.c', |
| 110 '../third_party/externals/jpeg/jcdctmgr.c', | 121 '../third_party/externals/jpeg/jcdctmgr.c', |
| 111 '../third_party/externals/jpeg/jchuff.c', | 122 '../third_party/externals/jpeg/jchuff.c', |
| 112 '../third_party/externals/jpeg/jcinit.c', | 123 '../third_party/externals/jpeg/jcinit.c', |
| 113 '../third_party/externals/jpeg/jcmainct.c', | 124 '../third_party/externals/jpeg/jcmainct.c', |
| 114 '../third_party/externals/jpeg/jcmarker.c', | 125 '../third_party/externals/jpeg/jcmarker.c', |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 137 '../third_party/externals/jpeg/jdsample.c', | 148 '../third_party/externals/jpeg/jdsample.c', |
| 138 '../third_party/externals/jpeg/jdtrans.c', | 149 '../third_party/externals/jpeg/jdtrans.c', |
| 139 '../third_party/externals/jpeg/jerror.c', | 150 '../third_party/externals/jpeg/jerror.c', |
| 140 '../third_party/externals/jpeg/jfdctflt.c', | 151 '../third_party/externals/jpeg/jfdctflt.c', |
| 141 '../third_party/externals/jpeg/jfdctfst.c', | 152 '../third_party/externals/jpeg/jfdctfst.c', |
| 142 '../third_party/externals/jpeg/jfdctint.c', | 153 '../third_party/externals/jpeg/jfdctint.c', |
| 143 '../third_party/externals/jpeg/jidctflt.c', | 154 '../third_party/externals/jpeg/jidctflt.c', |
| 144 '../third_party/externals/jpeg/jidctfst.c', | 155 '../third_party/externals/jpeg/jidctfst.c', |
| 145 '../third_party/externals/jpeg/jidctint.c', | 156 '../third_party/externals/jpeg/jidctint.c', |
| 146 '../third_party/externals/jpeg/jidctred.c', | 157 '../third_party/externals/jpeg/jidctred.c', |
| 147 '../third_party/externals/jpeg/jmem-android.c', | 158 '../third_party/externals/jpeg/jmem-ashmem.c', |
| 148 '../third_party/externals/jpeg/jmemmgr.c', | 159 '../third_party/externals/jpeg/jmemmgr.c', |
| 149 '../third_party/externals/jpeg/jquant1.c', | 160 '../third_party/externals/jpeg/jquant1.c', |
| 150 '../third_party/externals/jpeg/jquant2.c', | 161 '../third_party/externals/jpeg/jquant2.c', |
| 151 '../third_party/externals/jpeg/jutils.c', | 162 '../third_party/externals/jpeg/jutils.c', |
| 152 ], | 163 ], |
| 153 'conditions': [ | 164 'conditions': [ |
| 154 [ 'arm_neon == 1 and skia_clang_build == 0', | 165 [ 'arm_neon == 1 and skia_clang_build == 0', |
| 155 { | 166 { |
| 156 'sources' : [ | 167 'sources' : [ |
| 157 '../third_party/externals/jpeg/armv6_idct.S', | 168 '../third_party/externals/jpeg/armv6_idct.S', |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 180 '../third_party/externals/jpeg/jidctintelsse.c', | 191 '../third_party/externals/jpeg/jidctintelsse.c', |
| 181 ], | 192 ], |
| 182 'defines' : [ | 193 'defines' : [ |
| 183 'ANDROID_INTELSSE2_IDCT', | 194 'ANDROID_INTELSSE2_IDCT', |
| 184 ], | 195 ], |
| 185 }, | 196 }, |
| 186 ], | 197 ], |
| 187 ], | 198 ], |
| 188 'include_dirs': [ | 199 'include_dirs': [ |
| 189 '../third_party/externals/jpeg', | 200 '../third_party/externals/jpeg', |
| 201 '../third_party/', | |
|
djsollen
2015/04/27 17:12:25
remove this
msarett
2015/04/27 17:32:49
Done.
| |
| 190 ], | 202 ], |
| 191 'cflags': [ | 203 'cflags': [ |
| 192 '-w', | 204 '-w', |
| 193 '-fvisibility=hidden', | 205 '-fvisibility=hidden', |
| 194 '-DAVOID_TABLES', | 206 '-DAVOID_TABLES', |
| 207 '-DUSE_ANDROID_ASHMEM', | |
| 195 '-O3', | 208 '-O3', |
| 196 '-fstrict-aliasing', | 209 '-fstrict-aliasing', |
| 197 '-fprefetch-loop-arrays', | 210 '-fprefetch-loop-arrays', |
| 198 '-DANDROID_TILE_BASED_DECODE', | 211 '-DANDROID_TILE_BASED_DECODE', |
| 199 ], | 212 ], |
| 200 'direct_dependent_settings': { | 213 'direct_dependent_settings': { |
| 201 'include_dirs': [ | 214 'include_dirs': [ |
| 202 '../third_party/externals/jpeg', | 215 '../third_party/externals/jpeg', |
| 203 ], | 216 ], |
| 204 } | 217 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 254 }], | 267 }], |
| 255 ], | 268 ], |
| 256 'sources': [ | 269 'sources': [ |
| 257 '../app/jni/com_skia_SkiaSampleRenderer.cpp', | 270 '../app/jni/com_skia_SkiaSampleRenderer.cpp', |
| 258 ], | 271 ], |
| 259 }, | 272 }, |
| 260 | 273 |
| 261 }, | 274 }, |
| 262 ] | 275 ] |
| 263 } | 276 } |
| OLD | NEW |