Chromium Code Reviews| 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 | |
| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 '-w', | 74 '-w', |
| 70 '-DHAVE_CONFIG_H', | 75 '-DHAVE_CONFIG_H', |
| 71 ], | 76 ], |
| 72 'direct_dependent_settings': { | 77 'direct_dependent_settings': { |
| 73 'include_dirs': [ | 78 'include_dirs': [ |
| 74 '../third_party/externals/gif', | 79 '../third_party/externals/gif', |
| 75 ], | 80 ], |
| 76 } | 81 } |
| 77 }, | 82 }, |
| 78 { | 83 { |
| 79 'target_name': 'png', | 84 'target_name': 'png', |
|
djsollen
2015/03/26 19:51:06
I think this and jpeg are missing a conditional bl
msarett
2015/03/26 21:06:23
Yes, I fixed this.
| |
| 80 'type': 'static_library', | 85 'type': 'static_library', |
| 81 'sources': [ | 86 'sources': [ |
| 87 '../third_party/externals/png/arm/arm_init.c', | |
| 88 '../third_party/externals/png/arm/filter_neon.S', | |
| 89 '../third_party/externals/png/arm/filter_neon_intrinsics.c', | |
|
djsollen
2015/03/26 19:51:06
I don't think we can always depend on this. what h
msarett
2015/03/26 21:06:23
Agreed.
| |
| 82 '../third_party/externals/png/png.c', | 90 '../third_party/externals/png/png.c', |
| 83 '../third_party/externals/png/pngerror.c', | 91 '../third_party/externals/png/pngerror.c', |
| 84 '../third_party/externals/png/pnggccrd.c', | |
| 85 '../third_party/externals/png/pngget.c', | 92 '../third_party/externals/png/pngget.c', |
| 86 '../third_party/externals/png/pngmem.c', | 93 '../third_party/externals/png/pngmem.c', |
| 87 '../third_party/externals/png/pngpread.c', | 94 '../third_party/externals/png/pngpread.c', |
| 88 '../third_party/externals/png/pngread.c', | 95 '../third_party/externals/png/pngread.c', |
| 89 '../third_party/externals/png/pngrio.c', | 96 '../third_party/externals/png/pngrio.c', |
| 90 '../third_party/externals/png/pngrtran.c', | 97 '../third_party/externals/png/pngrtran.c', |
| 91 '../third_party/externals/png/pngrutil.c', | 98 '../third_party/externals/png/pngrutil.c', |
| 92 '../third_party/externals/png/pngset.c', | 99 '../third_party/externals/png/pngset.c', |
| 93 '../third_party/externals/png/pngtrans.c', | 100 '../third_party/externals/png/pngtrans.c', |
| 94 '../third_party/externals/png/pngvcrd.c', | |
| 95 '../third_party/externals/png/pngwio.c', | 101 '../third_party/externals/png/pngwio.c', |
| 96 '../third_party/externals/png/pngwrite.c', | 102 '../third_party/externals/png/pngwrite.c', |
| 97 '../third_party/externals/png/pngwtran.c', | 103 '../third_party/externals/png/pngwtran.c', |
| 98 '../third_party/externals/png/pngwutil.c', | 104 '../third_party/externals/png/pngwutil.c', |
| 99 ], | 105 ], |
| 100 'include_dirs': [ | 106 'include_dirs': [ |
| 101 '../third_party/externals/png', | 107 '../third_party/externals/png', |
| 102 ], | 108 ], |
| 103 'cflags': [ | 109 'cflags': [ |
| 104 '-w', | 110 '-w', |
| 105 '-fvisibility=hidden', | 111 '-fvisibility=hidden', |
| 106 ], | 112 ], |
| 107 'link_settings': { | 113 'link_settings': { |
| 108 'libraries': [ | 114 'libraries': [ |
| 109 '-lz', | 115 '-lz', |
| 110 ], | 116 ], |
| 111 }, | 117 }, |
| 112 'direct_dependent_settings': { | 118 'direct_dependent_settings': { |
| 113 'include_dirs': [ | 119 'include_dirs': [ |
| 114 '../third_party/externals/png', | 120 '../third_party/externals/png', |
| 115 ], | 121 ], |
| 116 } | 122 } |
| 117 }, | 123 }, |
| 118 { | 124 { |
| 119 'target_name': 'jpeg', | 125 'target_name': 'jpeg', |
| 120 'type': 'static_library', | 126 'type': 'static_library', |
| 121 'sources': [ | 127 'sources': [ |
| 128 #'../third_party/externals/jpeg/cjpeg.c', | |
| 129 '../third_party/externals/jpeg/cdjpeg.c', | |
| 130 #'../third_party/externals/jpeg/djpeg.c', | |
|
msarett
2015/03/26 18:22:46
Certain new files are causing android not to build
scroggo
2015/03/26 18:29:34
I *think* some of these are not part of the librar
msarett
2015/03/26 21:06:23
You are right on both counts.
| |
| 122 '../third_party/externals/jpeg/jcapimin.c', | 131 '../third_party/externals/jpeg/jcapimin.c', |
| 123 '../third_party/externals/jpeg/jcapistd.c', | 132 '../third_party/externals/jpeg/jcapistd.c', |
| 124 '../third_party/externals/jpeg/jccoefct.c', | 133 '../third_party/externals/jpeg/jccoefct.c', |
| 125 '../third_party/externals/jpeg/jccolor.c', | 134 '../third_party/externals/jpeg/jccolor.c', |
| 126 '../third_party/externals/jpeg/jcdctmgr.c', | 135 '../third_party/externals/jpeg/jcdctmgr.c', |
| 127 '../third_party/externals/jpeg/jchuff.c', | 136 '../third_party/externals/jpeg/jchuff.c', |
| 128 '../third_party/externals/jpeg/jcinit.c', | 137 '../third_party/externals/jpeg/jcinit.c', |
| 129 '../third_party/externals/jpeg/jcmainct.c', | 138 '../third_party/externals/jpeg/jcmainct.c', |
| 130 '../third_party/externals/jpeg/jcmarker.c', | 139 '../third_party/externals/jpeg/jcmarker.c', |
| 131 '../third_party/externals/jpeg/jcmaster.c', | 140 '../third_party/externals/jpeg/jcmaster.c', |
| 132 '../third_party/externals/jpeg/jcomapi.c', | 141 '../third_party/externals/jpeg/jcomapi.c', |
| 133 '../third_party/externals/jpeg/jcparam.c', | 142 '../third_party/externals/jpeg/jcparam.c', |
| 134 '../third_party/externals/jpeg/jcphuff.c', | 143 '../third_party/externals/jpeg/jcphuff.c', |
| 135 '../third_party/externals/jpeg/jcprepct.c', | 144 '../third_party/externals/jpeg/jcprepct.c', |
| 136 '../third_party/externals/jpeg/jcsample.c', | 145 '../third_party/externals/jpeg/jcsample.c', |
| 137 '../third_party/externals/jpeg/jctrans.c', | |
| 138 '../third_party/externals/jpeg/jdapimin.c', | 146 '../third_party/externals/jpeg/jdapimin.c', |
| 139 '../third_party/externals/jpeg/jdapistd.c', | 147 '../third_party/externals/jpeg/jdapistd.c', |
| 140 '../third_party/externals/jpeg/jdatadst.c', | 148 '../third_party/externals/jpeg/jdatadst.c', |
| 141 '../third_party/externals/jpeg/jdatasrc.c', | 149 '../third_party/externals/jpeg/jdatasrc.c', |
| 142 '../third_party/externals/jpeg/jdcoefct.c', | 150 '../third_party/externals/jpeg/jdcoefct.c', |
| 143 '../third_party/externals/jpeg/jdcolor.c', | 151 '../third_party/externals/jpeg/jdcolor.c', |
| 152 '../third_party/externals/jpeg/jdct.h', | |
| 144 '../third_party/externals/jpeg/jddctmgr.c', | 153 '../third_party/externals/jpeg/jddctmgr.c', |
| 145 '../third_party/externals/jpeg/jdhuff.c', | 154 '../third_party/externals/jpeg/jdhuff.c', |
| 146 '../third_party/externals/jpeg/jdinput.c', | 155 '../third_party/externals/jpeg/jdinput.c', |
| 147 '../third_party/externals/jpeg/jdmainct.c', | 156 '../third_party/externals/jpeg/jdmainct.c', |
| 148 '../third_party/externals/jpeg/jdmarker.c', | 157 '../third_party/externals/jpeg/jdmarker.c', |
| 149 '../third_party/externals/jpeg/jdmaster.c', | 158 '../third_party/externals/jpeg/jdmaster.c', |
| 150 '../third_party/externals/jpeg/jdmerge.c', | 159 '../third_party/externals/jpeg/jdmerge.c', |
| 151 '../third_party/externals/jpeg/jdphuff.c', | 160 '../third_party/externals/jpeg/jdphuff.c', |
| 152 '../third_party/externals/jpeg/jdpostct.c', | 161 '../third_party/externals/jpeg/jdpostct.c', |
| 153 '../third_party/externals/jpeg/jdsample.c', | 162 '../third_party/externals/jpeg/jdsample.c', |
| 154 '../third_party/externals/jpeg/jdtrans.c', | 163 '../third_party/externals/jpeg/jdtrans.c', |
| 155 '../third_party/externals/jpeg/jerror.c', | 164 '../third_party/externals/jpeg/jerror.c', |
| 156 '../third_party/externals/jpeg/jfdctflt.c', | 165 '../third_party/externals/jpeg/jfdctflt.c', |
| 157 '../third_party/externals/jpeg/jfdctfst.c', | 166 '../third_party/externals/jpeg/jfdctfst.c', |
| 158 '../third_party/externals/jpeg/jfdctint.c', | 167 '../third_party/externals/jpeg/jfdctint.c', |
| 159 '../third_party/externals/jpeg/jidctflt.c', | 168 '../third_party/externals/jpeg/jidctflt.c', |
| 160 '../third_party/externals/jpeg/jidctfst.c', | 169 '../third_party/externals/jpeg/jidctfst.c', |
| 161 '../third_party/externals/jpeg/jidctint.c', | 170 '../third_party/externals/jpeg/jidctint.c', |
| 171 '../third_party/externals/jpeg/jidctintelsse.c', | |
| 162 '../third_party/externals/jpeg/jidctred.c', | 172 '../third_party/externals/jpeg/jidctred.c', |
| 173 '../third_party/externals/jpeg/jinclude.h', | |
| 174 #'../third_party/externals/jpeg/jmem-ashmem.c', | |
| 175 '../third_party/externals/jpeg/jmem-android.c', | |
| 176 '../third_party/externals/jpeg/jmemmgr.c', | |
| 163 '../third_party/externals/jpeg/jquant1.c', | 177 '../third_party/externals/jpeg/jquant1.c', |
| 164 '../third_party/externals/jpeg/jquant2.c', | 178 '../third_party/externals/jpeg/jquant2.c', |
| 179 '../third_party/externals/jpeg/jsimd_arm_neon.S', | |
| 180 '../third_party/externals/jpeg/jsimd_neon.c', | |
| 181 '../third_party/externals/jpeg/jquant2.c', | |
| 165 '../third_party/externals/jpeg/jutils.c', | 182 '../third_party/externals/jpeg/jutils.c', |
| 166 '../third_party/externals/jpeg/jmemmgr.c', | 183 #'../third_party/externals/jpeg/mips_jidctfst.c', |
| 167 '../third_party/externals/jpeg/jmem-android.c', # ashmem is also availab le | 184 #'../third_party/externals/jpeg/mips_idct_le.S', |
| 185 '../third_party/externals/jpeg/rdbmp.c', | |
| 186 '../third_party/externals/jpeg/rdcolmap.c', | |
| 187 '../third_party/externals/jpeg/rdgif.c', | |
| 188 '../third_party/externals/jpeg/rdppm.c', | |
| 189 '../third_party/externals/jpeg/rdswitch.c', | |
| 190 '../third_party/externals/jpeg/rdtarga.c', | |
| 191 '../third_party/externals/jpeg/wrbmp.c', | |
| 192 '../third_party/externals/jpeg/wrgif.c', | |
| 193 '../third_party/externals/jpeg/wrppm.c', | |
| 194 '../third_party/externals/jpeg/wrtarga.c', | |
| 168 ], | 195 ], |
| 169 'include_dirs': [ | 196 'include_dirs': [ |
| 170 '../third_party/externals/jpeg', | 197 '../third_party/externals/jpeg', |
| 171 ], | 198 ], |
| 172 'cflags': [ | 199 'cflags': [ |
| 173 '-w', | 200 '-w', |
| 174 '-fvisibility=hidden', | 201 '-fvisibility=hidden', |
| 175 '-DAVOID_TABLES', | 202 '-DAVOID_TABLES', |
| 176 '-O3', | 203 '-O3', |
| 177 '-fstrict-aliasing', | 204 '-fstrict-aliasing', |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 }], | 262 }], |
| 236 ], | 263 ], |
| 237 'sources': [ | 264 'sources': [ |
| 238 '../app/jni/com_skia_SkiaSampleRenderer.cpp', | 265 '../app/jni/com_skia_SkiaSampleRenderer.cpp', |
| 239 ], | 266 ], |
| 240 }, | 267 }, |
| 241 | 268 |
| 242 }, | 269 }, |
| 243 ] | 270 ] |
| 244 } | 271 } |
| OLD | NEW |