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:
sajitk 2015-09-11 07:44:00 +02:00
parent c78e2f8f7e
commit e0223d4184
17 changed files with 56 additions and 41 deletions

View 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',
]

View File

@ -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']

View File

@ -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',
]

View File

@ -19,6 +19,7 @@ SOURCES += [
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../hunspell/glue',
'../hunspell/src',
'/dom/base',
'/editor/libeditor',

View File

@ -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/