intl/lwbrk/moz.build
author Dave Townsend <dtownsend@oxymoronical.com>
Mon, 11 Mar 2019 08:43:20 -0700
changeset 521358 0d5adb2cf4c9cb73fec05a4daf680938238e6283
parent 448117 4c6d8b6d91b1af04198a2ad6f22f69afad1be62a
child 549804 51bf6a97396d96ddb82fa91c2cf9bd9f5bc9ae06
permissions -rw-r--r--
Backed out changeset 455e57b39067 from bug 1530615 for causing bug 1534186. r=backout

# -*- 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/.

TEST_DIRS += ['gtest']

EXPORTS.mozilla.intl += [
    'LineBreaker.h',
    'WordBreaker.h',
]

UNIFIED_SOURCES += [
    'LineBreaker.cpp',
    'WordBreaker.cpp',
]

if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
    SOURCES += [
        'nsPangoBreaker.cpp',
    ]
    CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
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'