mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Use MOZ_FENNEC and MOZ_XULRUNNER instead of checking MOZ_BUILD_APP in most places
This commit is contained in:
parent
1648d92f30
commit
a25b655d51
17 changed files with 31 additions and 30 deletions
|
|
@ -9,7 +9,7 @@ DIRS += [
|
|||
]
|
||||
|
||||
# Save file size on Fennec until there are active plans to use the decoder there
|
||||
if CONFIG['MOZ_BUILD_APP'] != 'mobile/android':
|
||||
if CONFIG['MOZ_FENNEC']:
|
||||
DIRS += [
|
||||
'decoder'
|
||||
]
|
||||
|
|
|
|||
|
|
@ -411,7 +411,7 @@ EXTRA_COMPONENTS += [
|
|||
]
|
||||
|
||||
# Firefox for Android provides an alternate version of this component
|
||||
if CONFIG['MOZ_BUILD_APP'] != 'mobile/android':
|
||||
if not CONFIG['MOZ_FENNEC']:
|
||||
EXTRA_COMPONENTS += [
|
||||
'SiteSpecificUserAgent.js',
|
||||
'SiteSpecificUserAgent.manifest',
|
||||
|
|
@ -472,7 +472,7 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
|||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['mobile/android', 'xulrunner'] or CONFIG['MOZ_PHOENIX']:
|
||||
if CONFIG['MOZ_PHOENIX'] or CONFIG['MOZ_FENNEC'] or CONFIG['MOZ_XULRUNNER']:
|
||||
DEFINES['HAVE_SIDEBAR'] = True
|
||||
|
||||
if CONFIG['MOZ_X11']:
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ FINAL_LIBRARY = 'xul'
|
|||
SPHINX_TREES['webidl'] = 'docs'
|
||||
SPHINX_PYTHON_PACKAGE_DIRS += ['mozwebidlcodegen']
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['mobile/android', 'xulrunner'] or CONFIG['MOZ_PHOENIX']:
|
||||
if CONFIG['MOZ_PHOENIX'] or CONFIG['MOZ_FENNEC'] or CONFIG['MOZ_XULRUNNER']:
|
||||
# This is needed for Window.webidl
|
||||
DEFINES['HAVE_SIDEBAR'] = True
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ EXTRA_JS_MODULES += [
|
|||
'PushService.jsm',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] != 'mobile/android':
|
||||
if not CONFIG['MOZ_FENNEC']:
|
||||
# Everything but Fennec.
|
||||
EXTRA_JS_MODULES += [
|
||||
'PushServiceHttp2.jsm',
|
||||
|
|
|
|||
|
|
@ -773,7 +773,7 @@ if CONFIG['MOZ_BUILD_APP'] in ['xulrunner'] or CONFIG['MOZ_PHOENIX'] or CONFIG['
|
|||
'BrowserFeedWriter.webidl',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['mobile/android', 'xulrunner'] or CONFIG['MOZ_PHOENIX']:
|
||||
if CONFIG['MOZ_PHOENIX'] or CONFIG['MOZ_FENNEC'] or CONFIG['MOZ_XULRUNNER']:
|
||||
WEBIDL_FILES += [
|
||||
'External.webidl',
|
||||
]
|
||||
|
|
|
|||
12
mobile/android/configure.in
Normal file
12
mobile/android/configure.in
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
dnl -*- Mode: Autoconf; tab-width: 2; indent-tabs-mode: nil; -*-
|
||||
dnl vi: set tabstop=2 shiftwidth=2 expandtab:
|
||||
dnl This Source Code Form is subject to the terms of the Mozilla Public
|
||||
dnl License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
dnl Things we need to carry from confvars.sh
|
||||
AC_DEFINE(MOZ_FENNEC)
|
||||
AC_SUBST(MOZ_FENNEC)
|
||||
|
||||
dnl Optional parts of the build.
|
||||
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
MOZ_APP_BASENAME=Fennec
|
||||
MOZ_APP_VENDOR=Mozilla
|
||||
MOZ_FENNEC=1
|
||||
|
||||
MOZ_APP_VERSION=`cat ${_topsrcdir}/$MOZ_BUILD_APP/config/version.txt`
|
||||
MOZ_APP_VERSION_DISPLAY=`cat ${_topsrcdir}/$MOZ_BUILD_APP/config/version_display.txt`
|
||||
|
|
|
|||
|
|
@ -6,5 +6,5 @@
|
|||
|
||||
DIRS += ['ssl', 'locales']
|
||||
|
||||
if CONFIG['MOZ_XUL'] and CONFIG['MOZ_BUILD_APP'] != 'mobile/android':
|
||||
if CONFIG['MOZ_XUL'] and CONFIG['MOZ_FENNEC']:
|
||||
DIRS += ['pki']
|
||||
|
|
|
|||
|
|
@ -4,7 +4,4 @@
|
|||
# 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/.
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'mobile/android':
|
||||
DEFINES['MOZ_FENNEC'] = True
|
||||
|
||||
JAR_MANIFESTS += ['jar.mn']
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ if CONFIG['MOZ_WEBEXTENSIONS']:
|
|||
if CONFIG['ENABLE_INTL_API']:
|
||||
DIRS += ['mozintl']
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] != 'mobile/android':
|
||||
if not CONFIG['MOZ_FENNEC']:
|
||||
DIRS += ['narrate', 'viewsource'];
|
||||
|
||||
if CONFIG['NS_PRINTING']:
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ EXTRA_COMPONENTS += [
|
|||
'nsSearchSuggestions.js',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['mobile/android', 'xulrunner'] or CONFIG['MOZ_PHOENIX']:
|
||||
if CONFIG['MOZ_PHOENIX'] or CONFIG['MOZ_FENNEC'] or CONFIG['MOZ_XULRUNNER']:
|
||||
DEFINES['HAVE_SIDEBAR'] = True
|
||||
EXTRA_COMPONENTS += [
|
||||
EXTRA_PP_COMPONENTS += [
|
||||
'nsSidebar.js',
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -4676,9 +4676,9 @@ SearchService.prototype = {
|
|||
Services.obs.addObserver(this, SEARCH_ENGINE_TOPIC, false);
|
||||
Services.obs.addObserver(this, QUIT_APPLICATION_TOPIC, false);
|
||||
|
||||
if (AppConstants.MOZ_BUILD_APP == "mobile/android") {
|
||||
Services.prefs.addObserver(LOCALE_PREF, this, false);
|
||||
}
|
||||
#ifdef MOZ_FENNEC
|
||||
Services.prefs.addObserver(LOCALE_PREF, this, false);
|
||||
#endif
|
||||
|
||||
// The current stage of shutdown. Used to help analyze crash
|
||||
// signatures in case of shutdown timeout.
|
||||
|
|
@ -4721,9 +4721,9 @@ SearchService.prototype = {
|
|||
Services.obs.removeObserver(this, SEARCH_ENGINE_TOPIC);
|
||||
Services.obs.removeObserver(this, QUIT_APPLICATION_TOPIC);
|
||||
|
||||
if (AppConstants.MOZ_BUILD_APP == "mobile/android") {
|
||||
Services.prefs.removeObserver(LOCALE_PREF, this);
|
||||
}
|
||||
#ifdef MOZ_FENNEC
|
||||
Services.prefs.removeObserver(LOCALE_PREF, this);
|
||||
#endif
|
||||
},
|
||||
|
||||
QueryInterface: XPCOMUtils.generateQI([
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@ if CONFIG['OS_TARGET'] == 'Android':
|
|||
if CONFIG['MOZ_ANDROID_CXX_STL'] == 'libc++':
|
||||
DEFINES['MOZ_USE_LIBCXX'] = True
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'mobile/android':
|
||||
DEFINES['MOZ_FENNEC'] = True
|
||||
|
||||
JAR_MANIFESTS += ['jar.mn']
|
||||
|
||||
with Files('aboutTelemetry.*'):
|
||||
|
|
|
|||
|
|
@ -4,9 +4,6 @@
|
|||
# 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/.
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'mobile/android':
|
||||
DEFINES['MOZ_FENNEC'] = True
|
||||
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
DEFINES['MOZ_GTK'] = True
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ endif
|
|||
ifndef MOZ_PKG_PLATFORM
|
||||
MOZ_PKG_PLATFORM := $(TARGET_OS)-$(TARGET_CPU)
|
||||
|
||||
ifeq ($(MOZ_BUILD_APP),mobile/android)
|
||||
ifdef MOZ_FENNEC
|
||||
MOZ_PKG_PLATFORM := android-$(TARGET_CPU)
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ GECKO_APP_AP_PATH = $(topobjdir)/mobile/android/base
|
|||
|
||||
ifdef ENABLE_TESTS
|
||||
INNER_ROBOCOP_PACKAGE=true
|
||||
ifeq ($(MOZ_BUILD_APP),mobile/android)
|
||||
ifdef MOZ_FENNEC
|
||||
UPLOAD_EXTRA_FILES += robocop.apk
|
||||
|
||||
# Robocop/Robotium tests, Android Background tests, and Fennec need to
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
|
||||
SPHINX_TREES['addon-manager'] = 'docs'
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'mobile/android':
|
||||
DEFINES['MOZ_FENNEC'] = True
|
||||
|
||||
DIRS += ['internal']
|
||||
TEST_DIRS += ['test']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue