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', |
97 '../third_party/externals/png/pngget.c', | 98 '../third_party/externals/png/pngget.c', |
98 '../third_party/externals/png/pngmem.c', | 99 '../third_party/externals/png/pngmem.c', |
99 '../third_party/externals/png/pngpread.c', | 100 '../third_party/externals/png/pngpread.c', |
100 '../third_party/externals/png/pngread.c', | 101 '../third_party/externals/png/pngread.c', |
101 '../third_party/externals/png/pngrio.c', | 102 '../third_party/externals/png/pngrio.c', |
102 '../third_party/externals/png/pngrtran.c', | 103 '../third_party/externals/png/pngrtran.c', |
103 '../third_party/externals/png/pngrutil.c', | 104 '../third_party/externals/png/pngrutil.c', |
104 '../third_party/externals/png/pngset.c', | 105 '../third_party/externals/png/pngset.c', |
105 '../third_party/externals/png/pngtrans.c', | 106 '../third_party/externals/png/pngtrans.c', |
| 107 '../third_party/externals/png/pngvcrd.c', |
106 '../third_party/externals/png/pngwio.c', | 108 '../third_party/externals/png/pngwio.c', |
107 '../third_party/externals/png/pngwrite.c', | 109 '../third_party/externals/png/pngwrite.c', |
108 '../third_party/externals/png/pngwtran.c', | 110 '../third_party/externals/png/pngwtran.c', |
109 '../third_party/externals/png/pngwutil.c', | 111 '../third_party/externals/png/pngwutil.c', |
110 ], | 112 ], |
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. | |
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 #], | |
127 'include_dirs': [ | 113 'include_dirs': [ |
128 '../third_party/externals/png', | 114 '../third_party/externals/png', |
129 ], | 115 ], |
130 'cflags': [ | 116 'cflags': [ |
131 '-w', | 117 '-w', |
132 '-fvisibility=hidden', | 118 '-fvisibility=hidden', |
133 ], | 119 ], |
134 'link_settings': { | 120 'link_settings': { |
135 'libraries': [ | 121 'libraries': [ |
136 '-lz', | 122 '-lz', |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 '../../../tools/VisualBench/', | 324 '../../../tools/VisualBench/', |
339 ], | 325 ], |
340 'sources': [ | 326 'sources': [ |
341 '../apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp', | 327 '../apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp', |
342 '../apps/visualbench/src/main/jni/main.cpp', | 328 '../apps/visualbench/src/main/jni/main.cpp', |
343 ], | 329 ], |
344 }, | 330 }, |
345 }, | 331 }, |
346 ] | 332 ] |
347 } | 333 } |
OLD | NEW |