|
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 PROGRAM = 'webapprt-stub' |
|
8 |
|
9 SOURCES += [ |
|
10 'webapprt.cpp', |
|
11 ] |
|
12 |
|
13 DEFINES['XPCOM_GLUE'] = True |
|
14 if CONFIG['DEBUG']: |
|
15 DEFINES['DEBUG'] = True |
|
16 |
|
17 # Statically link against the CRT |
|
18 USE_STATIC_LIBS = True |
|
19 |
|
20 GENERATED_INCLUDES += ['/build'] |
|
21 LOCAL_INCLUDES += [ |
|
22 '/toolkit/xre', |
|
23 '/xpcom/base', |
|
24 '/xpcom/build', |
|
25 ] |
|
26 |
|
27 if CONFIG['_MSC_VER']: |
|
28 # Always enter a Windows program through wmain, whether or not we're |
|
29 # a console application. |
|
30 WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup'] |
|
31 |
|
32 # Control the default heap size. |
|
33 # This is the heap returned by GetProcessHeap(). |
|
34 # As we use the CRT heap, the default size is too large and wastes VM. |
|
35 # |
|
36 # The default heap size is 1MB on Win32. |
|
37 # The heap will grow if need be. |
|
38 # |
|
39 # Set it to 256k. See bug 127069. |
|
40 if not CONFIG['GNU_CC']: |
|
41 LDFLAGS += ['/HEAP:0x40000'] |
|
42 |
|
43 RCINCLUDE = 'webapprt.rc' |
|
44 |
|
45 DISABLE_STL_WRAPPING = True |