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',
|
|
|
|
]
|
|
|
|
|
2016-03-16 08:06:26 +03:00
|
|
|
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
2014-07-24 21:56:39 +04:00
|
|
|
SOURCES += [
|
|
|
|
'nsPangoBreaker.cpp',
|
|
|
|
]
|
2016-03-16 08:06:26 +03:00
|
|
|
CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
|
2014-07-24 21:56:39 +04:00
|
|
|
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',
|
|
|
|
]
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-07-24 19:55:33 +04:00
|
|
|
|
2015-09-23 07:39:03 +03:00
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wshadow']
|