OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 package org.chromium.base; | 5 package org.chromium.base; |
6 | 6 |
7 /** | 7 /** |
8 * Build configuration. Generated on a per-target basis. | 8 * Build configuration. Generated on a per-target basis. |
9 */ | 9 */ |
10 public class BuildConfig { | 10 public class BuildConfig { |
(...skipping 11 matching lines...) Expand all Loading... |
22 #endif | 22 #endif |
23 } | 23 } |
24 | 24 |
25 // DCHECK_IS_ON does not change between targets, can be final and optimized
out. | 25 // DCHECK_IS_ON does not change between targets, can be final and optimized
out. |
26 #if defined(_DCHECK_IS_ON) | 26 #if defined(_DCHECK_IS_ON) |
27 public static final boolean DCHECK_IS_ON = true; | 27 public static final boolean DCHECK_IS_ON = true; |
28 #else | 28 #else |
29 public static final boolean DCHECK_IS_ON = false; | 29 public static final boolean DCHECK_IS_ON = false; |
30 #endif | 30 #endif |
31 | 31 |
32 // Sorted list of compressed assets contained in the apk (AssetManager.list(
) is slow). | 32 // Sorted list of locales that have a compressed .pak within assets. |
33 public static final String[] COMPRESSED_ASSETS = | 33 // Stored as an array because AssetManager.list() is slow. |
34 #if defined(COMPRESSED_ASSETS_LIST) | 34 public static final String[] COMPRESSED_LOCALES = |
35 COMPRESSED_ASSETS_LIST; | 35 #if defined(COMPRESSED_LOCALE_LIST) |
| 36 COMPRESSED_LOCALE_LIST; |
36 #else | 37 #else |
37 {}; | 38 {}; |
38 #endif | 39 #endif |
39 | 40 |
40 // Sorted list of uncompressed assets contained in the apk (AssetManager.lis
t() is slow). | 41 // Sorted list of locales that have an uncompressed .pak within assets. |
41 public static final String[] UNCOMPRESSED_ASSETS = | 42 // Stored as an array because AssetManager.list() is slow. |
42 #if defined(UNCOMPRESSED_ASSETS_LIST) | 43 public static final String[] UNCOMPRESSED_LOCALES = |
43 UNCOMPRESSED_ASSETS_LIST; | 44 #if defined(UNCOMPRESSED_LOCALE_LIST) |
| 45 UNCOMPRESSED_LOCALE_LIST; |
44 #else | 46 #else |
45 {}; | 47 {}; |
46 #endif | 48 #endif |
47 } | 49 } |
OLD | NEW |