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 15 matching lines...) Expand all Loading... |
26 '../third_party/native_app_glue', | 26 '../third_party/native_app_glue', |
27 ], | 27 ], |
28 }, | 28 }, |
29 'sources': [ | 29 'sources': [ |
30 '../third_party/native_app_glue/android_native_app_glue.c', | 30 '../third_party/native_app_glue/android_native_app_glue.c', |
31 '../third_party/native_app_glue/android_native_app_glue.h', | 31 '../third_party/native_app_glue/android_native_app_glue.h', |
32 ], | 32 ], |
33 'cflags': [ | 33 'cflags': [ |
34 '-w', | 34 '-w', |
35 ], | 35 ], |
36 }, | 36 }, |
37 { | 37 { |
38 'target_name': 'cpu_features', | 38 'target_name': 'cpu_features', |
39 'type': 'static_library', | 39 'type': 'static_library', |
40 'direct_dependent_settings': { | 40 'direct_dependent_settings': { |
41 'include_dirs': [ | 41 'include_dirs': [ |
42 '../third_party/cpufeatures', | 42 '../third_party/cpufeatures', |
43 ], | 43 ], |
44 }, | 44 }, |
45 'sources': [ | 45 'sources': [ |
46 '../third_party/cpufeatures/cpu-features.c', | 46 '../third_party/cpufeatures/cpu-features.c', |
(...skipping 10 matching lines...) Expand all Loading... |
57 '../third_party/ashmem/cutils/ashmem.h', | 57 '../third_party/ashmem/cutils/ashmem.h', |
58 '../third_party/ashmem/cutils/ashmem-dev.c' | 58 '../third_party/ashmem/cutils/ashmem-dev.c' |
59 ], | 59 ], |
60 'direct_dependent_settings': { | 60 'direct_dependent_settings': { |
61 'include_dirs': [ | 61 'include_dirs': [ |
62 '../third_party/ashmem', | 62 '../third_party/ashmem', |
63 ] | 63 ] |
64 }, | 64 }, |
65 }, | 65 }, |
66 { | 66 { |
67 'target_name': 'expat', | |
68 'type': 'static_library', | |
69 'sources': [ | |
70 '../third_party/externals/expat/lib/xmlparse.c', | |
71 '../third_party/externals/expat/lib/xmlrole.c', | |
72 '../third_party/externals/expat/lib/xmltok.c', | |
73 ], | |
74 'include_dirs': [ | |
75 '../third_party/externals/expat', | |
76 '../third_party/externals/expat/lib', | |
77 ], | |
78 'cflags': [ | |
79 '-w', | |
80 '-fexceptions', | |
81 ], | |
82 'defines': [ | |
83 'HAVE_EXPAT_CONFIG_H', | |
84 ], | |
85 'direct_dependent_settings': { | |
86 'include_dirs': [ | |
87 '../third_party/externals/expat/lib', # For expat.h | |
88 ], | |
89 } | |
90 }, | |
91 { | |
92 # This target is a dependency for all console-type Skia applications which | 67 # This target is a dependency for all console-type Skia applications which |
93 # will run on Android. Since Android requires us to load native code in | 68 # will run on Android. Since Android requires us to load native code in |
94 # shared libraries, we need a common entry point to wrap around main(). | 69 # shared libraries, we need a common entry point to wrap around main(). |
95 # Here we also change the type of all would-be executables to be shared | 70 # Here we also change the type of all would-be executables to be shared |
96 # libraries. The alternative would be to introduce a condition in every | 71 # libraries. The alternative would be to introduce a condition in every |
97 # executable target which changes to a shared library if the target OS is | 72 # executable target which changes to a shared library if the target OS is |
98 # Android. This is nicer because the switch is in one place. | 73 # Android. This is nicer because the switch is in one place. |
99 'target_name': 'Android_EntryPoint', | 74 'target_name': 'Android_EntryPoint', |
100 'type': 'static_library', | 75 'type': 'static_library', |
101 'direct_dependent_settings': { | 76 'direct_dependent_settings': { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 # - http://code.google.com/p/gyp/wiki/InputFormatReference#Variables | 173 # - http://code.google.com/p/gyp/wiki/InputFormatReference#Variables |
199 # - http://codereview.appspot.com/6353065/ | 174 # - http://codereview.appspot.com/6353065/ |
200 ['_type == "executable"', { | 175 ['_type == "executable"', { |
201 'type': 'shared_library', | 176 'type': 'shared_library', |
202 }], | 177 }], |
203 ], | 178 ], |
204 }, | 179 }, |
205 }, | 180 }, |
206 ] | 181 ] |
207 } | 182 } |
OLD | NEW |