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
3 # found in the LICENSE file.
6 ['component == "shared_library"', {
9 # These libraries from the Android ndk are required to be packaged with
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
13 'target_name': 'copy_system_libraries',
17 'destination': '<(SHARED_LIB_DIR)/',
19 '<(android_libcpp_libs_dir)/libc++_shared.so',
29 'target_name': 'get_build_device_configurations',
33 'action_name': 'get configurations',
35 'gyp/util/build_device.py',
36 'gyp/get_device_configuration.py',
39 '<(build_device_config_path)',
40 '<(build_device_config_path).fake',
43 'python', 'gyp/get_device_configuration.py',
44 '--output=<(build_device_config_path)',
50 # Target for creating common output build directories. Creating output
51 # dirs beforehand ensures that build scripts can assume these folders to
52 # exist and there are no race conditions resulting from build scripts
53 # trying to create these directories.
54 # The build/java.gypi target depends on this target.
55 'target_name': 'build_output_dirs',
59 'action_name': 'create_java_output_dirs',
62 '<(PRODUCT_DIR)/apks',
63 '<(PRODUCT_DIR)/lib.java',
64 '<(PRODUCT_DIR)/test.lib.java',
68 # By not specifying any outputs, we ensure that this command isn't
69 # re-run when the output directories are touched (i.e. apks are
79 }, # build_output_dirs