summaryrefslogtreecommitdiffstats
path: root/embedding/components/windowwatcher/moz.build
blob: 31aa718c979b5186531634caaaf1bb1a19fb2e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- 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 += ['test']

XPIDL_SOURCES += [
    'nsIDialogParamBlock.idl',
    'nsIPromptFactory.idl',
    'nsIPromptService.idl',
    'nsIPromptService2.idl',
    'nsIWindowWatcher.idl',
    'nsPIPromptService.idl',
    'nsPIWindowWatcher.idl',
]

XPIDL_MODULE = 'windowwatcher'

EXPORTS += [
    'nsPromptUtils.h',
]

UNIFIED_SOURCES += [
    'nsAutoWindowStateHelper.cpp',
    'nsWindowWatcher.cpp',
]

EXPORTS += [
    'nsWindowWatcher.h',
]

if CONFIG['MOZ_XUL']:
    UNIFIED_SOURCES += [
        'nsDialogParamBlock.cpp',
    ]

FINAL_LIBRARY = 'xul'
# For nsJSUtils
LOCAL_INCLUDES += [
    '/docshell/base',
    '/dom/base',
]

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-error=shadow']

include('/ipc/chromium/chromium-config.mozbuild')