browser/app/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/app/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +DIRS += ['profile/extensions']
    1.11 +
    1.12 +PROGRAM = CONFIG['MOZ_APP_NAME']
    1.13 +
    1.14 +SOURCES += [
    1.15 +    'nsBrowserApp.cpp',
    1.16 +]
    1.17 +
    1.18 +DEFINES['APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
    1.19 +
    1.20 +for var in ('MOZILLA_OFFICIAL', 'LIBXUL_SDK'):
    1.21 +    if CONFIG[var]:
    1.22 +        DEFINES[var] = True
    1.23 +
    1.24 +DEFINES['XPCOM_GLUE'] = True
    1.25 +
    1.26 +GENERATED_INCLUDES += [
    1.27 +    '/build',
    1.28 +]
    1.29 +
    1.30 +LOCAL_INCLUDES += [
    1.31 +    '/toolkit/xre',
    1.32 +    '/xpcom/base',
    1.33 +    '/xpcom/build',
    1.34 +]
    1.35 +
    1.36 +if CONFIG['_MSC_VER']:
    1.37 +    # Always enter a Windows program through wmain, whether or not we're
    1.38 +    # a console application.
    1.39 +    WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
    1.40 +
    1.41 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.42 +    RCINCLUDE = 'splash.rc'
    1.43 +    DEFINES['MOZ_PHOENIX'] = True
    1.44 +
    1.45 +# Control the default heap size.
    1.46 +# This is the heap returned by GetProcessHeap().
    1.47 +# As we use the CRT heap, the default size is too large and wastes VM.
    1.48 +#
    1.49 +# The default heap size is 1MB on Win32.
    1.50 +# The heap will grow if need be.
    1.51 +#
    1.52 +# Set it to 256k.  See bug 127069.
    1.53 +if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
    1.54 +    LDFLAGS += ['/HEAP:0x40000']
    1.55 +
    1.56 +DISABLE_STL_WRAPPING = True

mercurial