mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Sort out search service
The ESR52 implementation is now Basilisk specific and the older implementation is the shared toolkit one
This commit is contained in:
parent
0142cf25ab
commit
85045bf6be
17 changed files with 28 additions and 50 deletions
|
|
@ -4,4 +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/.
|
||||
|
||||
DIRS += ['service']
|
||||
|
||||
JAR_MANIFESTS += ['jar.mn']
|
||||
|
|
|
|||
|
|
@ -4,28 +4,21 @@
|
|||
# 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/.
|
||||
|
||||
DIST_SUBDIR = ''
|
||||
|
||||
DEFINES['HAVE_SIDEBAR'] = True
|
||||
|
||||
EXTRA_COMPONENTS += [
|
||||
'nsSearchSuggestions.js',
|
||||
'nsSidebar.js',
|
||||
]
|
||||
|
||||
EXTRA_PP_COMPONENTS += [
|
||||
'nsSearchService.js',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_PHOENIX'] or CONFIG['MOZ_FENNEC'] or CONFIG['MOZ_XULRUNNER']:
|
||||
DEFINES['HAVE_SIDEBAR'] = True
|
||||
EXTRA_COMPONENTS += [
|
||||
'nsSidebar.js',
|
||||
]
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
'SearchSuggestionController.jsm',
|
||||
]
|
||||
|
||||
EXTRA_PP_COMPONENTS += [
|
||||
'toolkitsearch.manifest',
|
||||
]
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
'SearchStaticData.jsm',
|
||||
'SearchSuggestionController.jsm',
|
||||
]
|
||||
|
|
@ -89,7 +89,9 @@ if CONFIG['MOZ_XUL']:
|
|||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
DIRS += ['filepicker']
|
||||
|
||||
if CONFIG['MOZ_TOOLKIT_SEARCH']:
|
||||
if CONFIG['MOZ_TOOLKIT_SEARCH'] and not CONFIG['MC_BASILISK'] \
|
||||
and not CONFIG['HYPE_ICEWEASEL'] \
|
||||
and not CONFIG['HYPE_ICEDOVE']:
|
||||
DIRS += ['search']
|
||||
|
||||
if CONFIG['MOZ_URL_CLASSIFIER']:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,19 @@
|
|||
# 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['MC_BASILISK'] or CONFIG['HYPE_ICEWEASEL'] or CONFIG['HYPE_ICEDOVE']:
|
||||
DIRS += ['current']
|
||||
else:
|
||||
DIRS += ['orginal']
|
||||
EXTRA_COMPONENTS += ['nsSearchSuggestions.js']
|
||||
|
||||
EXTRA_PP_COMPONENTS += [
|
||||
'nsSearchService.js',
|
||||
'toolkitsearch.manifest',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_PHOENIX'] or CONFIG['MOZ_FENNEC'] or CONFIG['MOZ_XULRUNNER']:
|
||||
DEFINES['HAVE_SIDEBAR'] = True
|
||||
EXTRA_COMPONENTS += ['nsSidebar.js']
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
'SearchStaticData.jsm',
|
||||
'SearchSuggestionController.jsm',
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -4556,4 +4556,4 @@ var engineUpdateService = {
|
|||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SearchService]);
|
||||
|
||||
#include ../../../../toolkit/modules/debug.js
|
||||
#include ../../../toolkit/modules/debug.js
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
# -*- 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/.
|
||||
|
||||
EXTRA_COMPONENTS += [
|
||||
'nsSearchSuggestions.js',
|
||||
]
|
||||
|
||||
EXTRA_PP_COMPONENTS += [
|
||||
'nsSearchService.js',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_PHOENIX'] or CONFIG['MOZ_FENNEC'] or CONFIG['MOZ_XULRUNNER']:
|
||||
DEFINES['HAVE_SIDEBAR'] = True
|
||||
EXTRA_COMPONENTS += [
|
||||
'nsSidebar.js',
|
||||
]
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
'SearchSuggestionController.jsm',
|
||||
]
|
||||
|
||||
EXTRA_PP_COMPONENTS += [
|
||||
'toolkitsearch.manifest',
|
||||
]
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
'SearchStaticData.jsm',
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue