browser/app/moz.build

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 DIRS += ['profile/extensions']
michael@0 8
michael@0 9 PROGRAM = CONFIG['MOZ_APP_NAME']
michael@0 10
michael@0 11 SOURCES += [
michael@0 12 'nsBrowserApp.cpp',
michael@0 13 ]
michael@0 14
michael@0 15 DEFINES['APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
michael@0 16
michael@0 17 for var in ('MOZILLA_OFFICIAL', 'LIBXUL_SDK'):
michael@0 18 if CONFIG[var]:
michael@0 19 DEFINES[var] = True
michael@0 20
michael@0 21 DEFINES['XPCOM_GLUE'] = True
michael@0 22
michael@0 23 GENERATED_INCLUDES += [
michael@0 24 '/build',
michael@0 25 ]
michael@0 26
michael@0 27 LOCAL_INCLUDES += [
michael@0 28 '/toolkit/xre',
michael@0 29 '/xpcom/base',
michael@0 30 '/xpcom/build',
michael@0 31 ]
michael@0 32
michael@0 33 if CONFIG['_MSC_VER']:
michael@0 34 # Always enter a Windows program through wmain, whether or not we're
michael@0 35 # a console application.
michael@0 36 WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
michael@0 37
michael@0 38 if CONFIG['OS_ARCH'] == 'WINNT':
michael@0 39 RCINCLUDE = 'splash.rc'
michael@0 40 DEFINES['MOZ_PHOENIX'] = True
michael@0 41
michael@0 42 # Control the default heap size.
michael@0 43 # This is the heap returned by GetProcessHeap().
michael@0 44 # As we use the CRT heap, the default size is too large and wastes VM.
michael@0 45 #
michael@0 46 # The default heap size is 1MB on Win32.
michael@0 47 # The heap will grow if need be.
michael@0 48 #
michael@0 49 # Set it to 256k. See bug 127069.
michael@0 50 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
michael@0 51 LDFLAGS += ['/HEAP:0x40000']
michael@0 52
michael@0 53 DISABLE_STL_WRAPPING = True

mercurial