im/app/moz.build
author tbirdbld
Fri, 06 Jan 2017 09:00:50 -0500
branchTHUNDERBIRD510b1_2017010608_RELBRANCH
changeset 26168 aa4091e82224f4ad37c099f7dda6976ce9335080
parent 25410 38e7151af63288423bb3f340f3a618d9daef51c3
child 27175 2a5d62e4220c90bea9794d8655a6086560beb01d
permissions -rw-r--r--
Added THUNDERBIRD_51_0b1_RELEASE THUNDERBIRD_51_0b1_BUILD5 tag(s) for changeset 87320f336d23. DONTBUILD CLOSED TREE a=release

# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += ['profile']

GeckoProgram(CONFIG['MOZ_APP_NAME'])
USE_LIBS += ['mozglue']
SOURCES += ['nsMain.cpp']
LOCAL_INCLUDES += [
    '!/build',
    '/mozilla/toolkit/xre',
    '/mozilla/xpcom/base',
    '/mozilla/xpcom/build',
]

if CONFIG['OS_ARCH'] == 'WINNT':
    RCINCLUDE = 'splash.rc'
    DEFINES['MOZ_INSTANTBIRD'] = True

if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
    # For sandbox includes and the include dependencies those have
    LOCAL_INCLUDES += [
        '/mozilla/security/sandbox/chromium',
        '/mozilla/security/sandbox/chromium-shim',
    ]

    USE_LIBS += [
        'sandbox_s',
    ]

    DELAYLOAD_DLLS += [
        'winmm.dll',
        'user32.dll',
    ]

if CONFIG['_MSC_VER']:
    # Always enter a Windows program through wmain, whether or not we're
    # a console application.
    WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']

# Control the default heap size.
# This is the heap returned by GetProcessHeap().
# As we use the CRT heap, the default size is too large and wastes VM.
#
# The default heap size is 1MB on Win32.
# The heap will grow if need be.
#
# Set it to 256k.  See bug 127069.
if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
    LDFLAGS += ['/HEAP:0x40000']

if CONFIG['MOZ_LINKER']:
    OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']

if CONFIG['HAVE_CLOCK_MONOTONIC']:
    OS_LIBS += CONFIG['REALTIME_LIBS']

DEFINES['APP_VERSION'] = CONFIG['MOZ_APP_VERSION']

if CONFIG['MOZILLA_OFFICIAL']:
    DEFINES['MOZILLA_OFFICIAL'] = True

DISABLE_STL_WRAPPING = True

JS_PREFERENCE_PP_FILES += [
    'profile/all-instantbird.js',
    'profile/channel-prefs.js',
]