webapprt/win/moz.build
author Nick Alexander <nalexander@mozilla.com>
Tue, 26 Jan 2016 11:54:00 -0800
changeset 283059 54a3d0851bc60d26fb4744c605787031070052c8
parent 271462 178b4675470e5d695df1693f74ed232dd94ac984
permissions -rw-r--r--
Bug 1234629 - Post: Add Gradle support for bouncer. r=me

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

# Can't use GeckoProgram, because we don't want to create a dependency on
# mozglue, which is impossible (difficult?) to dynamically link into our
# executable, as we copy it to arbitrary locations.
Program('webapprt-stub')

SOURCES += [
    'webapprt.cpp',
]

DEFINES['XPCOM_GLUE'] = True

DEFINES['APP_VERSION'] = CONFIG['FIREFOX_VERSION']

# Statically link against the CRT
USE_STATIC_LIBS = True

LOCAL_INCLUDES += [
    '!/build',
    '/toolkit/xre',
    '/xpcom/base',
    '/xpcom/build',
]

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 not CONFIG['GNU_CC']:
    LDFLAGS += ['/HEAP:0x40000']

RCINCLUDE = 'webapprt.rc'

USE_LIBS += [
    'mfbt_staticruntime',
    'xpcomglue_staticruntime',
]

DISABLE_STL_WRAPPING = True

OS_LIBS += [
    'shell32',
]