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

Side by Side Diff: build/java_apk.gypi

Issue 11100002: Add Proguard option to gyp template. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 2 months 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/ant/chromium-apk.xml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # This file is meant to be included into a target to provide a rule 5 # This file is meant to be included into a target to provide a rule
6 # to build Android APKs in a consistent manner. 6 # to build Android APKs in a consistent manner.
7 # 7 #
8 # To use this, create a gyp target with the following form: 8 # To use this, create a gyp target with the following form:
9 # { 9 # {
10 # 'target_name': 'my_package_apk', 10 # 'target_name': 'my_package_apk',
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 # target. 51 # target.
52 52
53 { 53 {
54 'variables': { 54 'variables': {
55 'asset_location%': '', 55 'asset_location%': '',
56 'additional_input_paths': [], 56 'additional_input_paths': [],
57 'input_jars_paths': [], 57 'input_jars_paths': [],
58 'native_libs_paths': [], 58 'native_libs_paths': [],
59 'additional_src_dirs': [], 59 'additional_src_dirs': [],
60 'generated_src_dirs': [], 60 'generated_src_dirs': [],
61 'app_manifest_version_name%': '<(android_app_version_name)',
62 'app_manifest_version_code%': '<(android_app_version_code)',
63 'proguard_enabled%': 'false',
64 'proguard_flags%': ''
61 }, 65 },
62 'actions': [ 66 'actions': [
63 { 67 {
64 'action_name': 'ant_<(package_name)_apk', 68 'action_name': 'ant_<(package_name)_apk',
65 'message': 'Building <(package_name) apk.', 69 'message': 'Building <(package_name) apk.',
66 'inputs': [ 70 'inputs': [
67 '<(java_in_dir)/AndroidManifest.xml', 71 '<(java_in_dir)/AndroidManifest.xml',
68 '<(DEPTH)/build/android/ant/chromium-apk.xml', 72 '<(DEPTH)/build/android/ant/chromium-apk.xml',
69 '<(DEPTH)/build/android/ant/common.xml', 73 '<(DEPTH)/build/android/ant/common.xml',
70 '<(DEPTH)/build/android/ant/sdk-targets.xml', 74 '<(DEPTH)/build/android/ant/sdk-targets.xml',
(...skipping 23 matching lines...) Expand all
94 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', 98 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
95 '-DPRODUCT_DIR=<(ant_build_out)', 99 '-DPRODUCT_DIR=<(ant_build_out)',
96 100
97 '-DAPK_NAME=<(apk_name)', 101 '-DAPK_NAME=<(apk_name)',
98 '-DASSET_DIR=<(asset_location)', 102 '-DASSET_DIR=<(asset_location)',
99 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', 103 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)',
100 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)', 104 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)',
101 '-DINPUT_JARS_PATHS=>(input_jars_paths)', 105 '-DINPUT_JARS_PATHS=>(input_jars_paths)',
102 '-DPACKAGE_NAME=<(package_name)', 106 '-DPACKAGE_NAME=<(package_name)',
103 '-DRESOURCE_DIR=<(resource_dir)', 107 '-DRESOURCE_DIR=<(resource_dir)',
108 '-DAPP_MANIFEST_VERSION_NAME=<(app_manifest_version_name)',
109 '-DAPP_MANIFEST_VERSION_CODE=<(app_manifest_version_code)',
110 '-DPROGUARD_FLAGS=>(proguard_flags)',
111 '-DPROGUARD_ENABLED=>(proguard_enabled)',
104 112
105 '-Dbasedir=<(java_in_dir)', 113 '-Dbasedir=<(java_in_dir)',
106 '-buildfile', 114 '-buildfile',
107 '<(DEPTH)/build/android/ant/chromium-apk.xml', 115 '<(DEPTH)/build/android/ant/chromium-apk.xml',
108 116
109 # Specify CONFIGURATION_NAME as the target for ant to build. The 117 # Specify CONFIGURATION_NAME as the target for ant to build. The
110 # buildfile will then build the appropriate SDK tools target. 118 # buildfile will then build the appropriate SDK tools target.
111 '<(CONFIGURATION_NAME)', 119 '<(CONFIGURATION_NAME)',
112 ] 120 ]
113 }, 121 },
114 ], 122 ],
115 } 123 }
OLDNEW
« no previous file with comments | « build/android/ant/chromium-apk.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698