Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: build/android/package_resources_action.gypi

Issue 1438853002: Remove all .gyp and .gypi files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/pack_arm_relocations.gypi ('k') | build/android/push_libraries.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2015 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.
4
5 # This file is a helper to java_apk.gypi. It should be used to create an
6 # action that runs ApkBuilder via ANT.
7 #
8 # Required variables:
9 # apk_name - File name (minus path & extension) of the output apk.
10 # android_manifest_path - Path to AndroidManifest.xml.
11 # app_manifest_version_name - set the apps 'human readable' version number.
12 # app_manifest_version_code - set the apps version number.
13 # Optional variables:
14 # asset_location - The directory where assets are located (if any).
15 # create_density_splits - Whether to create density-based apk splits. Splits
16 # are supported only for minSdkVersion >= 21.
17 # resource_zips - List of paths to resource zip files.
18 # shared_resources - Make a resource package that can be loaded by a different
19 # application at runtime to access the package's resources.
20 # extensions_to_not_compress - E.g.: 'pak,dat,bin'
21 # extra_inputs - List of extra action inputs.
22 {
23 'variables': {
24 'asset_location%': '',
25 'create_density_splits%': 0,
26 'resource_zips%': [],
27 'shared_resources%': 0,
28 'extensions_to_not_compress%': '',
29 'extra_inputs%': [],
30 'resource_packaged_apk_name': '<(apk_name)-resources.ap_',
31 'resource_packaged_apk_path': '<(intermediate_dir)/<(resource_packaged_apk_n ame)',
32 },
33 'action_name': 'package_resources_<(apk_name)',
34 'message': 'packaging resources for <(apk_name)',
35 'inputs': [
36 # TODO: This isn't always rerun correctly, http://crbug.com/351928
37 '<(DEPTH)/build/android/gyp/util/build_utils.py',
38 '<(DEPTH)/build/android/gyp/package_resources.py',
39 '<(android_manifest_path)',
40 '<@(extra_inputs)',
41 ],
42 'outputs': [
43 '<(resource_packaged_apk_path)',
44 ],
45 'action': [
46 'python', '<(DEPTH)/build/android/gyp/package_resources.py',
47 '--android-sdk', '<(android_sdk)',
48 '--aapt-path', '<(android_aapt_path)',
49 '--configuration-name', '<(CONFIGURATION_NAME)',
50 '--android-manifest', '<(android_manifest_path)',
51 '--version-code', '<(app_manifest_version_code)',
52 '--version-name', '<(app_manifest_version_name)',
53 '--no-compress', '<(extensions_to_not_compress)',
54 '--apk-path', '<(resource_packaged_apk_path)',
55 ],
56 'conditions': [
57 ['shared_resources == 1', {
58 'action': [
59 '--shared-resources',
60 ],
61 }],
62 ['asset_location != ""', {
63 'action': [
64 '--asset-dir', '<(asset_location)',
65 ],
66 }],
67 ['create_density_splits == 1', {
68 'action': [
69 '--create-density-splits',
70 ],
71 'outputs': [
72 '<(resource_packaged_apk_path)-hdpi',
73 '<(resource_packaged_apk_path)-xhdpi',
74 '<(resource_packaged_apk_path)-xxhdpi',
75 '<(resource_packaged_apk_path)-tvdpi',
76 ],
77 }],
78 ['resource_zips != []', {
79 'action': [
80 '--resource-zips', '>(resource_zips)',
81 ],
82 'inputs': [
83 '>@(resource_zips)',
84 ],
85 }],
86 ],
87 }
OLDNEW
« no previous file with comments | « build/android/pack_arm_relocations.gypi ('k') | build/android/push_libraries.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698