Bumping manifests a=b2g-bump
[gecko.git] / toolkit / library / libxul.mozbuild
blobfcb2ec435d8ec6d347a6c32e0b70a0713b8c6939
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/.
7 MSVC_ENABLE_PGO = True
9 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
10     # This is going to be a framework named "XUL", not an ordinary library named
11     # "libxul.dylib"
12     SHARED_LIBRARY_NAME = 'XUL'
13     IS_FRAMEWORK = True
14 else:
15     SHARED_LIBRARY_NAME = 'xul'
16     FORCE_SHARED_LIB = True
19 DELAYLOAD_DLLS += [
20     'comdlg32.dll',
21     'dbghelp.dll',
22     'psapi.dll',
23     'rasapi32.dll',
24     'rasdlg.dll',
25     'secur32.dll',
26     'wininet.dll',
27     'winspool.drv'
30 if CONFIG['MOZ_METRO']:
31     DELAYLOAD_DLLS += [
32         'API-MS-WIN-CORE-WINRT-L' + CONFIG['CRTEXPDLLVERSION'] + '.DLL',
33         'API-MS-WIN-CORE-WINRT-STRING-L' + CONFIG['CRTEXPDLLVERSION'] + '.DLL',
34         'uiautomationcore.dll'
35     ]
37 if CONFIG['ACCESSIBILITY']:
38     DELAYLOAD_DLLS += ['oleacc.dll']
40 if CONFIG['MOZ_WEBRTC']:
41     DELAYLOAD_DLLS += ['msdmo.dll']
43 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
44     LOCAL_INCLUDES += [
45         '/widget/windows',
46         '/xpcom/base',
47     ]
48     # config/version.mk says $(srcdir)/$(RCINCLUDE), and this needs to
49     # be valid in both toolkit/library and toolkit/library/gtest.
50     # Eventually, the make backend would do its own path canonicalization
51     # and config/version.mk would lift the $(srcdir)
52     RCINCLUDE = '$(DEPTH)/toolkit/library/xulrunner.rc'