mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Use MOZ_PHOENIX instead of checking for 'browser' in MOZ_BUILD_APP
This commit is contained in:
parent
09f68c6444
commit
28bbfef589
21 changed files with 35 additions and 24 deletions
|
|
@ -26,7 +26,7 @@ for var in ('GRE_MILESTONE', 'MOZ_APP_VERSION', 'MOZ_APP_BASENAME',
|
|||
if CONFIG['MOZ_APP_DISPLAYNAME'] != CONFIG['MOZ_APP_BASENAME']:
|
||||
DEFINES['MOZ_APP_DISPLAYNAME'] = CONFIG['MOZ_APP_DISPLAYNAME']
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'browser':
|
||||
if CONFIG['MOZ_PHOENIX']:
|
||||
DEFINES['MOZ_BUILD_APP_IS_BROWSER'] = True
|
||||
|
||||
if CONFIG['MOZ_APP_PROFILE']:
|
||||
|
|
@ -37,7 +37,7 @@ for var in ('MOZ_CRASHREPORTER', 'MOZ_PROFILE_MIGRATOR',
|
|||
if CONFIG[var]:
|
||||
DEFINES[var] = True
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'browser':
|
||||
if CONFIG['MOZ_PHOENIX']:
|
||||
PYTHON_UNIT_TESTS += [
|
||||
'compare-mozconfig/compare-mozconfigs-wrapper.py',
|
||||
]
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ DIRS += [
|
|||
]
|
||||
|
||||
# Shim old theme paths used by DevTools add-ons
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'browser':
|
||||
if CONFIG['MOZ_PHOENIX']:
|
||||
DIRS += ['themes/shims']
|
||||
|
||||
EXTRA_COMPONENTS += [
|
||||
|
|
|
|||
|
|
@ -20,6 +20,6 @@ DIRS += [
|
|||
# /browser uses DIST_SUBDIR. We opt-in to this treatment when building
|
||||
# DevTools for the browser to keep the root omni.ja slim for use by external XUL
|
||||
# apps. Mulet also uses this since it includes /browser.
|
||||
if CONFIG['MOZ_BUILD_APP'] in ('browser', 'b2g/dev'):
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'b2g/dev' or CONFIG['MOZ_PHOENIX']:
|
||||
DIST_SUBDIR = 'browser'
|
||||
export('DIST_SUBDIR')
|
||||
|
|
|
|||
|
|
@ -472,7 +472,7 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
|||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['mobile/android', 'xulrunner'] or CONFIG['MOZ_PHOENIX']:
|
||||
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 ['browser', 'mobile/android', 'xulrunner']:
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['mobile/android', 'xulrunner'] or CONFIG['MOZ_PHOENIX']:
|
||||
# This is needed for Window.webidl
|
||||
DEFINES['HAVE_SIDEBAR'] = True
|
||||
|
||||
|
|
|
|||
|
|
@ -764,12 +764,12 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|||
'MozWifiStatusChangeEvent.webidl',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['browser', 'xulrunner'] or CONFIG['MOZ_SUITE']:
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['xulrunner'] or CONFIG['MOZ_PHOENIX'] or CONFIG['MOZ_SUITE']:
|
||||
WEBIDL_FILES += [
|
||||
'BrowserFeedWriter.webidl',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['mobile/android', 'xulrunner'] or CONFIG['MOZ_PHOENIX']:
|
||||
WEBIDL_FILES += [
|
||||
'External.webidl',
|
||||
]
|
||||
|
|
|
|||
|
|
@ -740,7 +740,7 @@ class MachCommandConditions(object):
|
|||
def is_firefox(cls):
|
||||
"""Must have a Firefox build."""
|
||||
if hasattr(cls, 'substs'):
|
||||
return cls.substs.get('MOZ_BUILD_APP') == 'browser'
|
||||
return cls.substs.get('MOZ_PHOENIX') == 1
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq (browser,$(MOZ_BUILD_APP))
|
||||
ifdef MOZ_PHOENIX
|
||||
ifdef COMPILE_ENVIRONMENT
|
||||
gtest::
|
||||
$(MAKE) -C $(DEPTH)/toolkit/library gtestxul
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ ifdef MOZ_B2G
|
|||
BUILD_GTEST=
|
||||
endif
|
||||
|
||||
ifneq (browser,$(MOZ_BUILD_APP))
|
||||
ifndef MOZ_PHOENIX
|
||||
BUILD_GTEST=
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
# 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'] == 'browser':
|
||||
if CONFIG['MOZ_PHOENIX']:
|
||||
DEFINES['MOZ_BUILD_APP_IS_BROWSER'] = True
|
||||
|
||||
MOCHITEST_MANIFESTS += ['test/mochitest.ini', 'test/mochitest/mochitest.ini']
|
||||
|
|
@ -67,7 +67,7 @@ if CONFIG['OS_TARGET'] == 'WINNT':
|
|||
'OSCrypto_win.js',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'browser':
|
||||
if CONFIG['MOZ_PHOENIX']:
|
||||
EXTRA_JS_MODULES += [
|
||||
'LoginManagerContextMenu.jsm',
|
||||
]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ EXTRA_COMPONENTS += [
|
|||
'nsSearchSuggestions.js',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['mobile/android', 'xulrunner'] or CONFIG['MOZ_PHOENIX']:
|
||||
DEFINES['HAVE_SIDEBAR'] = True
|
||||
EXTRA_COMPONENTS += [
|
||||
'nsSidebar.js',
|
||||
|
|
|
|||
|
|
@ -784,7 +784,7 @@ function EnvironmentCache() {
|
|||
|
||||
this._currentEnvironment.profile = {};
|
||||
p.push(this._updateProfile());
|
||||
if (AppConstants.MOZ_BUILD_APP == "browser") {
|
||||
if (AppConstants.MOZ_PHOENIX) {
|
||||
p.push(this._updateAttribution());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -308,7 +308,14 @@ this.AppConstants = Object.freeze({
|
|||
MOZ_APP_NAME: "@MOZ_APP_NAME@",
|
||||
MOZ_APP_VERSION: "@MOZ_APP_VERSION@",
|
||||
MOZ_APP_VERSION_DISPLAY: "@MOZ_APP_VERSION_DISPLAY@",
|
||||
MOZ_BUILD_APP: "@MOZ_BUILD_APP@",
|
||||
|
||||
MOZ_BUILD_APP:
|
||||
#ifdef MOZ_PHOENIX
|
||||
"browser",
|
||||
#else
|
||||
"@MOZ_BUILD_APP@",
|
||||
#endif
|
||||
|
||||
MOZ_MACBUNDLE_NAME: "@MOZ_MACBUNDLE_NAME@",
|
||||
MOZ_UPDATE_CHANNEL: "@MOZ_UPDATE_CHANNEL@",
|
||||
INSTALL_LOCALE: "@AB_CD@",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ toolkit.jar:
|
|||
skin/classic/mozapps/update/updates.css (update/updates.css)
|
||||
skin/classic/mozapps/viewsource/viewsource.css (viewsource/viewsource.css)
|
||||
|
||||
#if MOZ_BUILD_APP == browser
|
||||
#ifdef MOZ_PHOENIX
|
||||
[browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
#elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES
|
||||
[extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
|
|
|
|||
|
|
@ -17,7 +17,11 @@
|
|||
# mobile native UIs that do not use XUL for UI
|
||||
|
||||
toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
|
||||
app = CONFIG['MOZ_BUILD_APP']
|
||||
if CONFIG['MOZ_PHOENIX']:
|
||||
DEFINES['MOZ_PHOENIX'] = 1
|
||||
app = 'browser'
|
||||
else:
|
||||
app = CONFIG['MOZ_BUILD_APP']
|
||||
|
||||
if toolkit == 'cocoa':
|
||||
DIRS += ['osx']
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ toolkit.jar:
|
|||
skin/classic/global/tree/folder.png (tree/folder.png)
|
||||
skin/classic/global/tree/folder@2x.png (tree/folder@2x.png)
|
||||
|
||||
#if MOZ_BUILD_APP == browser
|
||||
#ifdef MOZ_PHOENIX
|
||||
[browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
#elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES
|
||||
[extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ toolkit.jar:
|
|||
skin/classic/mozapps/xpinstall/xpinstallConfirm.css (extensions/xpinstallConfirm.css)
|
||||
skin/classic/mozapps/handling/handling.css (handling/handling.css)
|
||||
|
||||
#if MOZ_BUILD_APP == browser
|
||||
#ifdef MOZ_PHOENIX
|
||||
[browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
#elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES
|
||||
[extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
skin/classic/mozapps/update/downloadButtons.png (../../windows/mozapps/update/downloadButtons.png)
|
||||
* skin/classic/mozapps/xpinstall/xpinstallConfirm.css (../../windows/mozapps/extensions/xpinstallConfirm.css)
|
||||
|
||||
#if MOZ_BUILD_APP == browser
|
||||
#ifdef MOZ_PHOENIX
|
||||
[browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
#elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES
|
||||
[extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ toolkit.jar:
|
|||
skin/classic/global/tree/twisty-XP.svg (tree/twisty-XP.svg)
|
||||
skin/classic/global/tree/twisty-Vista78.svg (tree/twisty-Vista78.svg)
|
||||
|
||||
#if MOZ_BUILD_APP == browser
|
||||
#ifdef MOZ_PHOENIX
|
||||
[browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
#elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES
|
||||
[extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ toolkit.jar:
|
|||
skin/classic/mozapps/profile/profileicon-XP.png (profile/profileicon-XP.png)
|
||||
skin/classic/mozapps/update/downloadButtons-XP.png (update/downloadButtons-XP.png)
|
||||
|
||||
#if MOZ_BUILD_APP == browser
|
||||
#ifdef MOZ_PHOENIX
|
||||
[browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
#elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES
|
||||
[extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar:
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ DEFINES['GRE_MILESTONE'] = CONFIG['GRE_MILESTONE']
|
|||
for var in ('APP_VERSION', 'APP_ID'):
|
||||
DEFINES[var] = CONFIG['MOZ_%s' % var]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] == 'browser':
|
||||
if CONFIG['MOZ_PHOENIX']:
|
||||
DEFINES['MOZ_BUILD_APP_IS_BROWSER'] = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue