browser/app/moz.build

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:0cf6961945a3
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/extensions']
8
9 PROGRAM = CONFIG['MOZ_APP_NAME']
10
11 SOURCES += [
12 'nsBrowserApp.cpp',
13 ]
14
15 DEFINES['APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
16
17 for var in ('MOZILLA_OFFICIAL', 'LIBXUL_SDK'):
18 if CONFIG[var]:
19 DEFINES[var] = True
20
21 DEFINES['XPCOM_GLUE'] = True
22
23 GENERATED_INCLUDES += [
24 '/build',
25 ]
26
27 LOCAL_INCLUDES += [
28 '/toolkit/xre',
29 '/xpcom/base',
30 '/xpcom/build',
31 ]
32
33 if CONFIG['_MSC_VER']:
34 # Always enter a Windows program through wmain, whether or not we're
35 # a console application.
36 WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
37
38 if CONFIG['OS_ARCH'] == 'WINNT':
39 RCINCLUDE = 'splash.rc'
40 DEFINES['MOZ_PHOENIX'] = True
41
42 # Control the default heap size.
43 # This is the heap returned by GetProcessHeap().
44 # As we use the CRT heap, the default size is too large and wastes VM.
45 #
46 # The default heap size is 1MB on Win32.
47 # The heap will grow if need be.
48 #
49 # Set it to 256k. See bug 127069.
50 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
51 LDFLAGS += ['/HEAP:0x40000']
52
53 DISABLE_STL_WRAPPING = True

mercurial