зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1463637: Remove mozilla-config.h hacks for Hunspell extra includes. r=ted
MozReview-Commit-ID: 2yBlykhQsyV --HG-- extra : rebase_source : d51a663c5f7d4c9cce09c649003c5577fe5952d0
This commit is contained in:
Родитель
9b633c92ac
Коммит
c4035f104c
|
@ -130,5 +130,15 @@ def NoVisibilityFlags():
|
|||
def AllowCompilerWarnings():
|
||||
COMPILE_FLAGS['WARNINGS_AS_ERRORS'] = []
|
||||
|
||||
@template
|
||||
def ForceInclude(*headers):
|
||||
"""Force includes a set of header files in C++ compilations"""
|
||||
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
||||
include_flag = '-FI'
|
||||
else:
|
||||
include_flag = '-include'
|
||||
for header in headers:
|
||||
CXXFLAGS += [include_flag, header]
|
||||
|
||||
include('gecko_templates.mozbuild')
|
||||
include('test_templates.mozbuild')
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# -*- 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/.
|
||||
|
||||
@template
|
||||
def HunspellIncludes():
|
||||
ForceInclude('hunspell_alloc_hooks.h', 'hunspell_fopen_hooks.h')
|
|
@ -39,9 +39,6 @@
|
|||
* reporting to hunspell without modifying its code, in order to ease future
|
||||
* upgrades.
|
||||
*
|
||||
* This file is force-included through mozilla-config.h which is generated
|
||||
* during the configure step.
|
||||
*
|
||||
* Currently, the memory allocated using operator new/new[] is not being
|
||||
* tracked, but that's OK, since almost all of the memory used by Hunspell is
|
||||
* allocated using C memory allocation functions.
|
||||
|
|
|
@ -9,9 +9,6 @@
|
|||
* This file is force-included in hunspell code. Its purpose is to add
|
||||
* readahead to fopen() calls in hunspell without modifying its code, in order
|
||||
* to ease future upgrades.
|
||||
*
|
||||
* This file is force-included through mozilla-config.h which is generated
|
||||
* during the configure step.
|
||||
*/
|
||||
|
||||
#include "mozilla/FileUtils.h"
|
||||
|
|
|
@ -20,6 +20,9 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
include('common.mozbuild')
|
||||
|
||||
HunspellIncludes()
|
||||
|
||||
IPDL_SOURCES = [
|
||||
'PRemoteSpellcheckEngine.ipdl',
|
||||
|
@ -29,7 +32,3 @@ EXPORTS.mozilla += [
|
|||
'RemoteSpellCheckEngineChild.h',
|
||||
'RemoteSpellCheckEngineParent.h',
|
||||
]
|
||||
|
||||
# This variable is referenced in mozilla-config.h.in. Make sure to change
|
||||
# that file too if you need to change this variable.
|
||||
DEFINES['HUNSPELL_STATIC'] = True
|
||||
|
|
|
@ -15,10 +15,6 @@ UNIFIED_SOURCES += [
|
|||
'suggestmgr.cxx',
|
||||
]
|
||||
|
||||
# This variable is referenced in mozilla-config.h.in. Make sure to change
|
||||
# that file too if you need to change this variable.
|
||||
DEFINES['HUNSPELL_STATIC'] = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
|
@ -29,6 +25,9 @@ LOCAL_INCLUDES += [
|
|||
AllowCompilerWarnings()
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
include('../glue/common.mozbuild')
|
||||
|
||||
HunspellIncludes()
|
||||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'):
|
||||
CXXFLAGS += [
|
||||
|
|
|
@ -37,17 +37,6 @@
|
|||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Force-include hunspell_alloc_hooks.h and hunspell_fopen_hooks.h for hunspell,
|
||||
* so that we don't need to modify them directly.
|
||||
*
|
||||
* HUNSPELL_STATIC is defined in extensions/spellcheck/hunspell/src/moz.build
|
||||
*/
|
||||
#if defined(HUNSPELL_STATIC)
|
||||
#include "hunspell_alloc_hooks.h"
|
||||
#include "hunspell_fopen_hooks.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Force-include sdkdecls.h for building the chromium sandbox code.
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче