mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1200065 - Split Mozilla specific code from extensions/spellcheck/hunspell directory to glue directory and adjusted moz.build files. r=glandium
This commit is contained in:
parent
c78e2f8f7e
commit
e0223d4184
35
extensions/spellcheck/hunspell/glue/moz.build
Normal file
35
extensions/spellcheck/hunspell/glue/moz.build
Normal file
@ -0,0 +1,35 @@
|
||||
# -*- 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/.
|
||||
|
||||
SOURCES += [
|
||||
'mozHunspell.cpp',
|
||||
'mozHunspellDirProvider.cpp',
|
||||
'RemoteSpellCheckEngineChild.cpp',
|
||||
'RemoteSpellCheckEngineParent.cpp',
|
||||
]
|
||||
|
||||
CXXFLAGS += CONFIG['MOZ_HUNSPELL_CFLAGS']
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'../src',
|
||||
'/dom/base',
|
||||
'/editor/libeditor',
|
||||
'/extensions/spellcheck/src',
|
||||
]
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
IPDL_SOURCES = [
|
||||
'PRemoteSpellcheckEngine.ipdl',
|
||||
]
|
||||
|
||||
EXPORTS.mozilla += [
|
||||
'RemoteSpellCheckEngineChild.h',
|
||||
'RemoteSpellCheckEngineParent.h',
|
||||
]
|
||||
|
@ -4,7 +4,9 @@
|
||||
# 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 += ['src']
|
||||
DIRS += ['glue']
|
||||
if not CONFIG['MOZ_NATIVE_HUNSPELL']:
|
||||
DIRS += ['src']
|
||||
|
||||
if CONFIG['ENABLE_TESTS']:
|
||||
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
||||
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
||||
|
@ -5,52 +5,30 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
SOURCES += [
|
||||
'mozHunspell.cpp',
|
||||
'mozHunspellDirProvider.cpp',
|
||||
'RemoteSpellCheckEngineChild.cpp',
|
||||
'RemoteSpellCheckEngineParent.cpp',
|
||||
'affentry.cxx',
|
||||
'affixmgr.cxx',
|
||||
'csutil.cxx',
|
||||
'dictmgr.cxx',
|
||||
'filemgr.cxx',
|
||||
'hashmgr.cxx',
|
||||
'hunspell.cxx',
|
||||
'hunzip.cxx',
|
||||
'phonet.cxx',
|
||||
'replist.cxx',
|
||||
'suggestmgr.cxx',
|
||||
]
|
||||
|
||||
if not CONFIG['MOZ_NATIVE_HUNSPELL']:
|
||||
SOURCES += [
|
||||
'affentry.cxx',
|
||||
'affixmgr.cxx',
|
||||
'csutil.cxx',
|
||||
'dictmgr.cxx',
|
||||
'filemgr.cxx',
|
||||
'hashmgr.cxx',
|
||||
'hunspell.cxx',
|
||||
'hunzip.cxx',
|
||||
'phonet.cxx',
|
||||
'replist.cxx',
|
||||
'suggestmgr.cxx',
|
||||
]
|
||||
# This variable is referenced in configure.in. Make sure to change that file
|
||||
# too if you need to change this variable.
|
||||
DEFINES['HUNSPELL_STATIC'] = True
|
||||
else:
|
||||
CXXFLAGS += CONFIG['MOZ_HUNSPELL_CFLAGS']
|
||||
# This variable is referenced in configure.in. Make sure to change that file
|
||||
# too if you need to change this variable.
|
||||
DEFINES['HUNSPELL_STATIC'] = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/dom/base',
|
||||
'/editor/libeditor',
|
||||
'/extensions/spellcheck/src',
|
||||
'../glue',
|
||||
]
|
||||
|
||||
# XXX: This directory is a mix of Mozilla code and third-party code. We should
|
||||
# put the Mozilla code in a separate directory and disallow compiler warnings
|
||||
# there (bug 1200065). Until then, allow warnings for all of the code.
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
IPDL_SOURCES = [
|
||||
'PRemoteSpellcheckEngine.ipdl',
|
||||
]
|
||||
|
||||
EXPORTS.mozilla += [
|
||||
'RemoteSpellCheckEngineChild.h',
|
||||
'RemoteSpellCheckEngineParent.h',
|
||||
]
|
||||
|
@ -19,6 +19,7 @@ SOURCES += [
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'../hunspell/glue',
|
||||
'../hunspell/src',
|
||||
'/dom/base',
|
||||
'/editor/libeditor',
|
||||
|
@ -2,8 +2,7 @@ browser/components/translation/cld2/
|
||||
build/stlport/
|
||||
db/sqlite3/src/
|
||||
dom/media/platforms/ffmpeg/libav
|
||||
extensions/spellcheck/hunspell/src/*.cxx
|
||||
extensions/spellcheck/hunspell/src/*.hxx
|
||||
extensions/spellcheck/hunspell/src/
|
||||
gfx/2d/convolver
|
||||
gfx/2d/image_operations
|
||||
gfx/angle/
|
||||
|
Loading…
Reference in New Issue
Block a user