OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 { | 4 { |
| 5 'conditions': [ |
| 6 ['component == "shared_library"', { |
| 7 'targets': [ |
| 8 { |
| 9 # These libraries from the Android ndk are required to be packaged wit
h |
| 10 # any APK that is built with them. build/java_apk.gypi expects any |
| 11 # libraries that should be packaged with the apk to be in |
| 12 # <(SHARED_LIB_DIR) |
| 13 'target_name': 'copy_system_libraries', |
| 14 'type': 'none', |
| 15 'copies': [ |
| 16 { |
| 17 'destination': '<(SHARED_LIB_DIR)/', |
| 18 'files': [ |
| 19 '<(android_stlport_libs_dir)/libstlport_shared.so', |
| 20 '<(android_libstdcpp_libs_dir)/libgnustl_shared.so', |
| 21 ], |
| 22 }, |
| 23 ], |
| 24 }, |
| 25 ], |
| 26 }], |
| 27 ], |
5 'targets': [ | 28 'targets': [ |
6 { | 29 { |
7 # Target for creating common output build directories. Creating output | 30 # Target for creating common output build directories. Creating output |
8 # dirs beforehand ensures that build scripts can assume these folders to | 31 # dirs beforehand ensures that build scripts can assume these folders to |
9 # exist and there are no race conditions resulting from build scripts | 32 # exist and there are no race conditions resulting from build scripts |
10 # trying to create these directories. | 33 # trying to create these directories. |
11 # The build/java.gypi target depends on this target. | 34 # The build/java.gypi target depends on this target. |
12 'target_name': 'build_output_dirs', | 35 'target_name': 'build_output_dirs', |
13 'type': 'none', | 36 'type': 'none', |
14 'actions': [ | 37 'actions': [ |
(...skipping 12 matching lines...) Expand all Loading... |
27 # written to them). | 50 # written to them). |
28 'outputs': [''], | 51 'outputs': [''], |
29 'action': [ | 52 'action': [ |
30 'mkdir', | 53 'mkdir', |
31 '-p', | 54 '-p', |
32 '<@(output_dirs)', | 55 '<@(output_dirs)', |
33 ], | 56 ], |
34 }, | 57 }, |
35 ], | 58 ], |
36 }, # build_output_dirs | 59 }, # build_output_dirs |
37 ], # targets | 60 ] |
38 } | 61 } |
| 62 |
OLD | NEW |