summaryrefslogtreecommitdiff
path: root/mobile/android/bouncer/moz.build
blob: 2749fa92779a3e71ffc82d657ab65dfabdbf1b48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEFINES['ANDROID_VERSION_CODE'] = '1'

for var in ('ANDROID_PACKAGE_NAME',
            'MOZ_ANDROID_BROWSER_INTENT_CLASS',
            'MOZ_APP_DISPLAYNAME',
            'MOZ_APP_VERSION'):
    DEFINES[var] = CONFIG[var]

for var in ('MOZ_ANDROID_GCM',
            'MOZ_ANDROID_DOWNLOADS_INTEGRATION',
            'MOZ_ANDROID_BEAM',
            'MOZ_ANDROID_SEARCH_ACTIVITY',
            'MOZ_ANDROID_MLS_STUMBLER'):
    if CONFIG[var]:
        DEFINES[var] = CONFIG[var]

ANDROID_APK_NAME = 'bouncer'
ANDROID_APK_PACKAGE = CONFIG['ANDROID_PACKAGE_NAME']

# Putting branding earlier allows branders to override default resources.
ANDROID_RES_DIRS += [
    '/' + CONFIG['MOZ_BRANDING_DIRECTORY'] + '/res', # For the icon.
    'res',
]

ANDROID_ASSETS_DIRS += [
    'assets',
]

if CONFIG['MOZ_ANDROID_DISTRIBUTION_DIRECTORY']:
    # If you change this, also change its equivalent in mobile/android/base.
    ANDROID_ASSETS_DIRS += [
        '%' + CONFIG['MOZ_ANDROID_DISTRIBUTION_DIRECTORY'] + '/assets',
    ]

DEFINES['MOZ_ANDROID_SHARED_ID'] = CONFIG['MOZ_ANDROID_SHARED_ID']
OBJDIR_PP_FILES.mobile.android.bouncer += [
    'AndroidManifest.xml.in',
]