xulrunner/app/moz.build

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:b6a9e35364d4
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 DIRS += ['profile']
8
9 PROGRAM = 'xulrunner'
10
11 SOURCES += [
12 'nsXULRunnerApp.cpp',
13 ]
14
15 DEFINES['XULRUNNER_PROGNAME'] = '"xulrunner"'
16 DEFINES['XPCOM_GLUE'] = True
17 if CONFIG['DEBUG']:
18 DEFINES['DEBUG'] = True
19
20 if CONFIG['TARGET_XPCOM_ABI']:
21 DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
22
23 LOCAL_INCLUDES += [
24 '/toolkit/profile',
25 '/toolkit/xre',
26 '/xpcom/base',
27 '/xpcom/build',
28 ]
29
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']
34
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.
38 #
39 # The default heap size is 1MB on Win32.
40 # The heap will grow if need be.
41 #
42 # Set it to 256k. See bug 127069.
43 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
44 LDFLAGS += ['/HEAP:0x40000']
45
46 if CONFIG['OS_ARCH'] == 'WINNT':
47 RCINCLUDE = 'splash.rc'
48
49 DISABLE_STL_WRAPPING = True

mercurial