xref: /aosp_15_r20/external/cronet/build/android/java/templates/ProductConfig.template (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1// Copyright 2019 The Chromium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5package PACKAGE;
6
7#if defined(USE_FINAL)
8#define MAYBE_FINAL final
9#define MAYBE_USE_CHROMIUM_LINKER = USE_CHROMIUM_LINKER_VALUE
10#define MAYBE_IS_BUNDLE = IS_BUNDLE_VALUE
11#else
12#define MAYBE_FINAL
13#define MAYBE_USE_CHROMIUM_LINKER
14#define MAYBE_IS_BUNDLE
15#endif
16
17/**
18 *  Product configuration. Generated on a per-target basis.
19 */
20public class ProductConfig {
21    // Sorted list of locales that have an uncompressed .pak within assets.
22    // Stored as an array because AssetManager.list() is slow.
23#if defined(LOCALE_LIST)
24    public static final String[] LOCALES = LOCALE_LIST;
25#else
26    public static final String[] LOCALES = {};
27#endif
28
29   public static MAYBE_FINAL boolean USE_CHROMIUM_LINKER MAYBE_USE_CHROMIUM_LINKER;
30   public static MAYBE_FINAL boolean IS_BUNDLE MAYBE_IS_BUNDLE;
31}
32