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 |
11 # 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 |
12 # 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 |
13 # 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 |
14 # tested. | 14 # tested. |
15 | 15 |
16 { | 16 { |
17 'variables': { | 17 'variables': { |
18 'skia_warnings_as_errors': 0, | 18 'skia_warnings_as_errors': 0, |
19 }, | 19 }, |
20 'targets': [ | 20 'targets': [ |
21 { | 21 { |
| 22 'target_name': 'native_app_glue', |
| 23 'type': 'static_library', |
| 24 'direct_dependent_settings': { |
| 25 'include_dirs': [ |
| 26 '../third_party/native_app_glue', |
| 27 ], |
| 28 }, |
| 29 'sources': [ |
| 30 '../third_party/native_app_glue/android_native_app_glue.c', |
| 31 '../third_party/native_app_glue/android_native_app_glue.h', |
| 32 ], |
| 33 'cflags': [ |
| 34 '-w', |
| 35 ], |
| 36 }, |
| 37 { |
22 'target_name': 'cpu_features', | 38 'target_name': 'cpu_features', |
23 'type': 'static_library', | 39 'type': 'static_library', |
24 'direct_dependent_settings': { | 40 'direct_dependent_settings': { |
25 'include_dirs': [ | 41 'include_dirs': [ |
26 '../third_party/cpufeatures', | 42 '../third_party/cpufeatures', |
27 ], | 43 ], |
28 }, | 44 }, |
29 'sources': [ | 45 'sources': [ |
30 '../third_party/cpufeatures/cpu-features.c', | 46 '../third_party/cpufeatures/cpu-features.c', |
31 '../third_party/cpufeatures/cpu-features.h', | 47 '../third_party/cpufeatures/cpu-features.h', |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 }], | 287 }], |
272 ], | 288 ], |
273 'sources': [ | 289 'sources': [ |
274 '../app/jni/com_skia_SkiaSampleRenderer.cpp', | 290 '../app/jni/com_skia_SkiaSampleRenderer.cpp', |
275 ], | 291 ], |
276 }, | 292 }, |
277 | 293 |
278 }, | 294 }, |
279 ] | 295 ] |
280 } | 296 } |
OLD | NEW |