mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-10-22 02:25:05 +00:00
39 lines
1.5 KiB
Plaintext
39 lines
1.5 KiB
Plaintext
|
# -*- Mode: python; c-basic-offset: 4; 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/.
|
||
|
|
||
|
ANDROID_APK_NAME = 'b2gdroid'
|
||
|
ANDROID_APK_PACKAGE = 'org.mozilla.b2gdroid'
|
||
|
|
||
|
ANDROID_RES_DIRS += [
|
||
|
'src/main/res',
|
||
|
'!geckoview_resources',
|
||
|
]
|
||
|
ANDROID_ASSETS_DIRS += [
|
||
|
'src/main/assets',
|
||
|
'!/dist/bin/gaia/assets', # We must have built /b2g/gaia before building app/.
|
||
|
]
|
||
|
|
||
|
# Make aapt generate org/mozilla/gecko/R.java. There's a problem hidden here:
|
||
|
# the GeckoView classes may reference resources provided by other packages.
|
||
|
# That is, the GeckoView JAR files may reference android.support.v7.appcompat.R
|
||
|
# (say) at runtime. That class is in the gecko-R.jar file which is not (and can
|
||
|
# not!) be included as part of GeckoView. To avoid this, we'd need to include
|
||
|
# the transitive set of resource classes. For now, let's assume that b2gdroid
|
||
|
# will not induce accesses to other package's resources at runtime.
|
||
|
ANDROID_EXTRA_PACKAGES += ['org.mozilla.gecko']
|
||
|
|
||
|
if CONFIG['ANDROID_SUPPORT_V4_AAR']:
|
||
|
ANDROID_EXTRA_PACKAGES += ['android.support.v4']
|
||
|
ANDROID_EXTRA_RES_DIRS += ['%' + CONFIG['ANDROID_SUPPORT_V4_AAR_RES']]
|
||
|
|
||
|
if CONFIG['ANDROID_APPCOMPAT_V7_AAR']:
|
||
|
ANDROID_EXTRA_PACKAGES += ['android.support.v7.appcompat']
|
||
|
ANDROID_EXTRA_RES_DIRS += ['%' + CONFIG['ANDROID_APPCOMPAT_V7_AAR_RES']]
|
||
|
|
||
|
JS_PREFERENCE_PP_FILES += [
|
||
|
'b2gdroid.js',
|
||
|
]
|