OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 }, | 7 }, |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'multiple_proguards_test_apk', | 10 'target_name': 'multiple_proguards_test_apk', |
11 'type': 'none', | 11 'type': 'none', |
12 'variables': { | 12 'variables': { |
13 'app_manifest_version_name%': '<(android_app_version_name)', | 13 'app_manifest_version_name%': '<(android_app_version_name)', |
14 'java_in_dir': '.', | 14 'java_in_dir': '.', |
15 'proguard_enabled': 'true', | 15 'proguard_enabled': 'true', |
16 'proguard_flags_paths': [ | 16 'proguard_flags_paths': [ |
| 17 # Both these proguard?.flags files need to be part of the build to |
| 18 # remove both warnings from the src/dummy/DummyActivity.java file, els
e the |
| 19 # build will fail. |
17 'proguard1.flags', | 20 'proguard1.flags', |
18 'proguard2.flags', | 21 'proguard2.flags', |
19 ], | 22 ], |
20 'R_package': 'dummy', | 23 'R_package': 'dummy', |
21 'R_package_relpath': 'dummy', | 24 'R_package_relpath': 'dummy', |
22 'apk_name': 'MultipleProguards', | 25 'apk_name': 'MultipleProguards', |
23 # This is a build-only test. There's nothing to install. | 26 # This is a build-only test. There's nothing to install. |
24 'gyp_managed_install': 0, | 27 'gyp_managed_install': 0, |
| 28 # The Java code produces warnings, so force the build to not show them. |
| 29 'chromium_code': 0, |
25 }, | 30 }, |
26 'dependencies': [ | |
27 # guava has references to objects using reflection which | |
28 # should be ignored in proguard step. | |
29 '../../../../third_party/guava/guava.gyp:guava_javalib', | |
30 ], | |
31 'includes': [ '../../../../build/java_apk.gypi' ], | 31 'includes': [ '../../../../build/java_apk.gypi' ], |
32 }, | 32 }, |
33 ], | 33 ], |
34 } | 34 } |
OLD | NEW |