moz.build (1773B)
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 EXPORTS.mozilla.a11y += [ 8 "AccessibleWrap.h", 9 ] 10 11 SOURCES += [ 12 "AccessibleWrap.cpp", 13 "ApplicationAccessibleWrap.cpp", 14 "DocAccessibleWrap.cpp", 15 "DOMtoATK.cpp", 16 "nsMaiHyperlink.cpp", 17 "nsMaiInterfaceAction.cpp", 18 "nsMaiInterfaceComponent.cpp", 19 "nsMaiInterfaceDocument.cpp", 20 "nsMaiInterfaceEditableText.cpp", 21 "nsMaiInterfaceHyperlinkImpl.cpp", 22 "nsMaiInterfaceHypertext.cpp", 23 "nsMaiInterfaceImage.cpp", 24 "nsMaiInterfaceSelection.cpp", 25 "nsMaiInterfaceTable.cpp", 26 "nsMaiInterfaceTableCell.cpp", 27 "nsMaiInterfaceText.cpp", 28 "nsMaiInterfaceValue.cpp", 29 "Platform.cpp", 30 "RootAccessibleWrap.cpp", 31 "UtilInterface.cpp", 32 ] 33 34 LOCAL_INCLUDES += [ 35 "/accessible/base", 36 "/accessible/generic", 37 "/accessible/html", 38 "/accessible/ipc", 39 "/accessible/xpcom", 40 "/accessible/xul", 41 "/layout/generic", 42 "/other-licenses/atk-1.0", 43 "/widget", 44 "/widget/gtk", 45 ] 46 47 FINAL_LIBRARY = "xul" 48 49 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": 50 CFLAGS += CONFIG["MOZ_GTK3_CFLAGS"] 51 CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"] 52 53 if CONFIG["MOZ_ENABLE_DBUS"]: 54 CXXFLAGS += CONFIG["MOZ_DBUS_CFLAGS"] 55 56 include("/ipc/chromium/chromium-config.mozbuild") 57 58 if CONFIG["CC_TYPE"] in ("clang", "gcc"): 59 # Used in G_DEFINE_TYPE_EXTENDED macro, probably fixed in newer glib / 60 # gobject headers. See bug 1243331 comment 3. 61 CXXFLAGS += [ 62 "-Wno-error=unused-function", 63 "-Wno-unused-local-typedefs", 64 ]