|
1 # -*- Mode: python; c-basic-offset: 4; 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 LIBRARY_NAME = 'xul' |
|
8 |
|
9 SOURCES += [ |
|
10 'nsStaticXULComponents.cpp', |
|
11 ] |
|
12 |
|
13 if CONFIG['OS_ARCH'] == 'WINNT': |
|
14 SOURCES += [ |
|
15 'nsDllMain.cpp', |
|
16 ] |
|
17 |
|
18 # component libraries |
|
19 additional_defines = ( |
|
20 'MOZ_AUTH_EXTENSION', |
|
21 'MOZ_GIO_COMPONENT', |
|
22 'MOZ_JSDEBUGGER', |
|
23 'MOZ_PERMISSIONS', |
|
24 'MOZ_PREF_EXTENSIONS', |
|
25 'MOZ_SPELLCHECK', |
|
26 'MOZ_UNIVERSALCHARDET', |
|
27 'MOZ_ZIPWRITER', |
|
28 ) |
|
29 |
|
30 for var in additional_defines: |
|
31 if CONFIG[var]: |
|
32 DEFINES[var] = True |
|
33 |
|
34 if CONFIG['MOZ_DEBUG'] and CONFIG['ENABLE_TESTS']: |
|
35 DEFINES['ENABLE_LAYOUTDEBUG'] = True |
|
36 |
|
37 if CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('android', 'gonk', 'qt', |
|
38 'cocoa', 'windows') and \ |
|
39 CONFIG['MOZ_XUL']: |
|
40 DEFINES['MOZ_FILEVIEW'] = True |
|
41 |
|
42 # Platform-specific icon channel stuff - supported mostly-everywhere |
|
43 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'mac', 'cocoa', |
|
44 'gtk2', 'gtk3', 'qt', 'android'): |
|
45 DEFINES['ICON_DECODER'] = True |
|
46 |
|
47 LOCAL_INCLUDES += [ |
|
48 '/config', |
|
49 # need widget/windows for resource.h (included from widget.rc) |
|
50 '/widget/windows', |
|
51 ] |
|
52 |
|
53 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']: |
|
54 LOCAL_INCLUDES += [ |
|
55 '/xpcom/base', |
|
56 ] |
|
57 |
|
58 FAIL_ON_WARNINGS = True |
|
59 |
|
60 DIRS += ['build', 'gtest'] |