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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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', | 92 'target_name': 'png', |
| 93 'type': 'static_library', | 93 'type': 'static_library', |
| 94 'sources': [ | 94 'sources': [ |
| 95 '../third_party/externals/png/png.c', | 95 '../third_party/externals/png/png.c', |
| 96 '../third_party/externals/png/pngerror.c', | 96 '../third_party/externals/png/pngerror.c', |
| 97 '../third_party/externals/png/pnggccrd.c', | |
| 98 '../third_party/externals/png/pngget.c', | 97 '../third_party/externals/png/pngget.c', |
| 99 '../third_party/externals/png/pngmem.c', | 98 '../third_party/externals/png/pngmem.c', |
| 100 '../third_party/externals/png/pngpread.c', | 99 '../third_party/externals/png/pngpread.c', |
| 101 '../third_party/externals/png/pngread.c', | 100 '../third_party/externals/png/pngread.c', |
| 102 '../third_party/externals/png/pngrio.c', | 101 '../third_party/externals/png/pngrio.c', |
| 103 '../third_party/externals/png/pngrtran.c', | 102 '../third_party/externals/png/pngrtran.c', |
| 104 '../third_party/externals/png/pngrutil.c', | 103 '../third_party/externals/png/pngrutil.c', |
| 105 '../third_party/externals/png/pngset.c', | 104 '../third_party/externals/png/pngset.c', |
| 106 '../third_party/externals/png/pngtrans.c', | 105 '../third_party/externals/png/pngtrans.c', |
| 107 '../third_party/externals/png/pngvcrd.c', | |
| 108 '../third_party/externals/png/pngwio.c', | 106 '../third_party/externals/png/pngwio.c', |
| 109 '../third_party/externals/png/pngwrite.c', | 107 '../third_party/externals/png/pngwrite.c', |
| 110 '../third_party/externals/png/pngwtran.c', | 108 '../third_party/externals/png/pngwtran.c', |
| 111 '../third_party/externals/png/pngwutil.c', | 109 '../third_party/externals/png/pngwutil.c', |
| 112 ], | 110 ], |
| 111 # TODO (msarett): Enable testing of Arm NEON opts. | |
| 112 # Currently we cannot compile because there is a namespace conflict with | |
| 113 # skia/third_party/externals/libpng. | |
|
scroggo
2015/08/26 21:53:32
nit: Can you explain (briefly) why there is a conf
| |
| 114 'conditions': [ | |
| 115 [ '("arm" in skia_arch_type) and (arm_version >= 7) and \ | |
| 116 (arm_neon == 1 or arm_neon_optional == 1)', { | |
| 117 'sources': [ | |
| 118 '../third_party/externals/png/arm/arm_init.c', | |
| 119 '../third_party/externals/png/arm/filter_neon.S', | |
| 120 '../third_party/externals/png/arm/filter_neon_intrinsics.c', | |
| 121 ], | |
| 122 'cflags': [ | |
| 123 '-DPNG_ARM_NEON_OPT=2', | |
| 124 ], | |
| 125 }], | |
| 126 ], | |
| 113 'include_dirs': [ | 127 'include_dirs': [ |
| 114 '../third_party/externals/png', | 128 '../third_party/externals/png', |
| 115 ], | 129 ], |
| 116 'cflags': [ | 130 'cflags': [ |
| 117 '-w', | 131 '-w', |
| 118 '-fvisibility=hidden', | 132 '-fvisibility=hidden', |
| 119 ], | 133 ], |
| 120 'link_settings': { | 134 'link_settings': { |
| 121 'libraries': [ | 135 'libraries': [ |
| 122 '-lz', | 136 '-lz', |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 324 '../../../tools/VisualBench/', | 338 '../../../tools/VisualBench/', |
| 325 ], | 339 ], |
| 326 'sources': [ | 340 'sources': [ |
| 327 '../apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp', | 341 '../apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp', |
| 328 '../apps/visualbench/src/main/jni/main.cpp', | 342 '../apps/visualbench/src/main/jni/main.cpp', |
| 329 ], | 343 ], |
| 330 }, | 344 }, |
| 331 }, | 345 }, |
| 332 ] | 346 ] |
| 333 } | 347 } |
| OLD | NEW |