ipc/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.

     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/.
     7 PROGRAM = CONFIG['MOZ_CHILD_PROCESS_NAME']
     9 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
    10     SOURCES += [
    11         'MozillaRuntimeMainAndroid.cpp',
    12     ]
    13     FINAL_TARGET = 'dist/bin/lib'
    14 else:
    15     SOURCES += [
    16         'MozillaRuntimeMain.cpp',
    17     ]
    18 include('/ipc/chromium/chromium-config.mozbuild')
    20 LOCAL_INCLUDES += [
    21     '/toolkit/xre',
    22     '/xpcom/base',
    23 ]
    25 if CONFIG['MOZ_CONTENT_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
    26     # For sandbox includes and the include dependencies those have
    27     LOCAL_INCLUDES += [
    28         '/security',
    29         '/security/sandbox',
    30         '/security/sandbox/chromium',
    31     ]
    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']
    38 LDFLAGS += [CONFIG['MOZ_ALLOW_HEAP_EXECUTE_FLAGS']]
    40 # Control the default heap size.
    41 # This is the heap returned by GetProcessHeap().
    42 # As we use the CRT heap, the default size is too large and wastes VM.
    43 #
    44 # The default heap size is 1MB on Win32.
    45 # The heap will grow if need be.
    46 #
    47 # Set it to 256k.  See bug 127069.
    48 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
    49     LDFLAGS += ['/HEAP:0x40000']

mercurial