2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:21 +04:00
|
|
|
# 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/.
|
|
|
|
|
2014-07-29 03:55:55 +04:00
|
|
|
TEST_DIRS += ['tests']
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2014-07-24 21:56:39 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsISemanticUnitScanner.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'lwbrk'
|
|
|
|
|
|
|
|
EXPORTS += [
|
|
|
|
'nsILineBreaker.h',
|
|
|
|
'nsIWordBreaker.h',
|
|
|
|
'nsLWBrkCIID.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsJISx4051LineBreaker.cpp',
|
|
|
|
'nsSampleWordBreaker.cpp',
|
|
|
|
'nsSemanticUnitScanner.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_GTK']:
|
|
|
|
SOURCES += [
|
|
|
|
'nsPangoBreaker.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
SOURCES += [
|
|
|
|
'nsUniscribeBreaker.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsCarbonBreaker.cpp',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
SOURCES += [
|
|
|
|
'nsRuleBreaker.cpp',
|
|
|
|
]
|
|
|
|
SOURCES += [
|
|
|
|
'rulebrk.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-07-24 19:55:33 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_GTK']:
|
|
|
|
CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
|
2014-12-05 03:24:03 +03:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|