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': [ | 5 'conditions': [ |
6 ['component == "shared_library"', { | 6 ['component == "shared_library"', { |
7 'targets': [ | 7 'targets': [ |
8 { | 8 { |
9 # These libraries from the Android ndk are required to be packaged wit
h | 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 | 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 | 11 # libraries that should be packaged with the apk to be in |
12 # <(SHARED_LIB_DIR) | 12 # <(SHARED_LIB_DIR) |
13 'target_name': 'copy_system_libraries', | 13 'target_name': 'copy_system_libraries', |
14 'type': 'none', | 14 'type': 'none', |
15 'copies': [ | 15 'copies': [ |
16 { | 16 { |
17 'destination': '<(SHARED_LIB_DIR)/', | 17 'destination': '<(SHARED_LIB_DIR)/', |
18 'files': [ | 18 'files': [ |
19 '<(android_stlport_libs_dir)/libstlport_shared.so', | 19 '<(android_stlport_libs_dir)/libstlport_shared.so', |
20 ], | 20 ], |
21 }, | 21 }, |
22 ], | 22 ], |
23 }, | 23 }, |
24 ], | 24 ], |
25 }], | 25 }], |
26 ], | 26 ], |
27 'targets': [ | 27 'targets': [ |
28 { | 28 { |
| 29 'target_name': 'get_build_device_configurations', |
| 30 'type': 'none', |
| 31 'actions': [ |
| 32 { |
| 33 'action_name': 'get configurations', |
| 34 'inputs': [ |
| 35 'gyp/util/build_device.py', |
| 36 'gyp/get_device_configuration.py', |
| 37 ], |
| 38 'outputs': [ |
| 39 '<(build_device_config_path)', |
| 40 '<(build_device_config_path).fake', |
| 41 ], |
| 42 'action': [ |
| 43 'python', 'gyp/get_device_configuration.py', |
| 44 '--output=<(build_device_config_path)', |
| 45 ], |
| 46 } |
| 47 ], |
| 48 }, |
| 49 { |
29 # Target for creating common output build directories. Creating output | 50 # Target for creating common output build directories. Creating output |
30 # dirs beforehand ensures that build scripts can assume these folders to | 51 # dirs beforehand ensures that build scripts can assume these folders to |
31 # exist and there are no race conditions resulting from build scripts | 52 # exist and there are no race conditions resulting from build scripts |
32 # trying to create these directories. | 53 # trying to create these directories. |
33 # The build/java.gypi target depends on this target. | 54 # The build/java.gypi target depends on this target. |
34 'target_name': 'build_output_dirs', | 55 'target_name': 'build_output_dirs', |
35 'type': 'none', | 56 'type': 'none', |
36 'actions': [ | 57 'actions': [ |
37 { | 58 { |
38 'action_name': 'create_java_output_dirs', | 59 'action_name': 'create_java_output_dirs', |
39 'variables' : { | 60 'variables' : { |
40 'output_dirs' : [ | 61 'output_dirs' : [ |
41 '<(PRODUCT_DIR)/apks', | 62 '<(PRODUCT_DIR)/apks', |
42 '<(PRODUCT_DIR)/lib.java', | 63 '<(PRODUCT_DIR)/lib.java', |
43 '<(PRODUCT_DIR)/test.lib.java', | 64 '<(PRODUCT_DIR)/test.lib.java', |
44 ] | 65 ] |
45 }, | 66 }, |
46 'inputs' : [], | 67 'inputs' : [], |
47 # By not specifying any outputs, we ensure that this command isn't | 68 # By not specifying any outputs, we ensure that this command isn't |
48 # re-run when the output directories are touched (i.e. apks are | 69 # re-run when the output directories are touched (i.e. apks are |
49 # written to them). | 70 # written to them). |
50 'outputs': [''], | 71 'outputs': [''], |
51 'action': [ | 72 'action': [ |
52 'mkdir', | 73 'mkdir', |
53 '-p', | 74 '-p', |
54 '<@(output_dirs)', | 75 '<@(output_dirs)', |
55 ], | 76 ], |
56 }, | 77 }, |
57 ], | 78 ], |
58 }, # build_output_dirs | 79 }, # build_output_dirs |
59 ] | 80 ] |
60 } | 81 } |
61 | 82 |
OLD | NEW |