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
7XPIDL_SOURCES += [
8    "nsIPluginTag.idl",
9]
10
11XPIDL_MODULE = "plugin"
12
13EXPORTS += [
14    "nsPluginHost.h",
15    "nsPluginLogging.h",
16    "nsPluginTags.h",
17]
18
19UNIFIED_SOURCES += [
20    "nsPluginHost.cpp",
21    "nsPluginTags.cpp",
22]
23
24LOCAL_INCLUDES += [
25    "/dom/base",
26    "/layout/generic",
27    "/layout/xul",
28    "/netwerk/base",
29    "/widget",
30    "/widget/cocoa",
31    "/xpcom/base",
32]
33
34if CONFIG["OS_ARCH"] == "WINNT":
35    LOCAL_INCLUDES += [
36        "/xpcom/base",
37    ]
38
39include("/ipc/chromium/chromium-config.mozbuild")
40
41FINAL_LIBRARY = "xul"
42
43CXXFLAGS += CONFIG["MOZ_CAIRO_CFLAGS"]
44CXXFLAGS += CONFIG["TK_CFLAGS"]
45
46if CONFIG["CC_TYPE"] in ("clang", "gcc"):
47    CXXFLAGS += ["-Wno-error=shadow"]
48