moz.build (1125B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 TEST_DIRS += ["gtest"] 8 9 EXPORTS.mozilla.intl += [ 10 "LineBreakCache.h", 11 "LineBreaker.h", 12 "nsComplexBreaker.h", 13 "Segmenter.h", 14 "WordBreaker.h", 15 ] 16 17 UNIFIED_SOURCES += [ 18 "LineBreakCache.cpp", 19 "LineBreaker.cpp", 20 "Segmenter.cpp", 21 "WordBreaker.cpp", 22 ] 23 24 SOURCES += [ 25 "nsComplexBreaker.cpp", 26 ] 27 28 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": 29 SOURCES += [ 30 "nsPangoBreaker.cpp", 31 ] 32 CXXFLAGS += CONFIG["MOZ_PANGO_CFLAGS"] 33 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows": 34 SOURCES += [ 35 "nsUniscribeBreaker.cpp", 36 ] 37 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa": 38 UNIFIED_SOURCES += [ 39 "nsCarbonBreaker.cpp", 40 ] 41 else: 42 SOURCES += [ 43 "nsRuleBreaker.cpp", 44 "rulebrk.c", 45 ] 46 47 LOCAL_INCLUDES += [ 48 "/intl/icu_capi/bindings/cpp", 49 ] 50 51 FINAL_LIBRARY = "xul"