xulrunner/app/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xulrunner/app/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     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']
    1.11 +
    1.12 +PROGRAM = 'xulrunner'
    1.13 +
    1.14 +SOURCES += [
    1.15 +    'nsXULRunnerApp.cpp',
    1.16 +]
    1.17 +
    1.18 +DEFINES['XULRUNNER_PROGNAME'] = '"xulrunner"'
    1.19 +DEFINES['XPCOM_GLUE'] = True
    1.20 +if CONFIG['DEBUG']:
    1.21 +    DEFINES['DEBUG'] = True
    1.22 +
    1.23 +if CONFIG['TARGET_XPCOM_ABI']:
    1.24 +    DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
    1.25 +
    1.26 +LOCAL_INCLUDES += [
    1.27 +    '/toolkit/profile',
    1.28 +    '/toolkit/xre',
    1.29 +    '/xpcom/base',
    1.30 +    '/xpcom/build',
    1.31 +]
    1.32 +
    1.33 +if CONFIG['_MSC_VER']:
    1.34 +    # Always enter a Windows program through wmain, whether or not we're
    1.35 +    # a console application.
    1.36 +    WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
    1.37 +
    1.38 +# Control the default heap size.
    1.39 +# This is the heap returned by GetProcessHeap().
    1.40 +# As we use the CRT heap, the default size is too large and wastes VM.
    1.41 +#
    1.42 +# The default heap size is 1MB on Win32.
    1.43 +# The heap will grow if need be.
    1.44 +#
    1.45 +# Set it to 256k.  See bug 127069.
    1.46 +if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
    1.47 +    LDFLAGS += ['/HEAP:0x40000']
    1.48 +
    1.49 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.50 +    RCINCLUDE = 'splash.rc'
    1.51 +
    1.52 +DISABLE_STL_WRAPPING = True

mercurial