Bumping manifests a=b2g-bump
[gecko.git] / webapprt / win / moz.build
blob12c62014d4b03ef82a3d1d7c2871a7705191f1c9
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 # Can't use GeckoProgram, because we don't want to create a dependency on
8 # mozglue, which is impossible (difficult?) to dynamically link into our
9 # executable, as we copy it to arbitrary locations.
10 Program('webapprt-stub')
12 SOURCES += [
13     'webapprt.cpp',
16 DEFINES['XPCOM_GLUE'] = True
17 if CONFIG['DEBUG']:
18     DEFINES['DEBUG'] = True
20 # Statically link against the CRT
21 USE_STATIC_LIBS = True
23 GENERATED_INCLUDES += ['/build']
24 LOCAL_INCLUDES += [
25     '/toolkit/xre',
26     '/xpcom/base',
27     '/xpcom/build',
30 if CONFIG['_MSC_VER']:
31     # Always enter a Windows program through wmain, whether or not we're
32     # a console application.
33     WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
35 # Control the default heap size.
36 # This is the heap returned by GetProcessHeap().
37 # As we use the CRT heap, the default size is too large and wastes VM.
39 # The default heap size is 1MB on Win32.
40 # The heap will grow if need be.
42 # Set it to 256k.  See bug 127069.
43 if not CONFIG['GNU_CC']:
44     LDFLAGS += ['/HEAP:0x40000']
46 RCINCLUDE = 'webapprt.rc'
48 USE_LIBS += [
49     'xpcomglue_staticruntime',
52 DISABLE_STL_WRAPPING = True
54 OS_LIBS += [
55     'shell32',
58 FAIL_ON_WARNINGS = True