b2g/app/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/b2g/app/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     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 +if not CONFIG['LIBXUL_SDK']:
    1.11 +    if CONFIG['GAIADIR']:
    1.12 +        PROGRAM = CONFIG['MOZ_APP_NAME'] + "-bin"
    1.13 +    else:
    1.14 +        PROGRAM = CONFIG['MOZ_APP_NAME']
    1.15 +    SOURCES += [
    1.16 +        'nsBrowserApp.cpp',
    1.17 +    ]
    1.18 +    if CONFIG['_MSC_VER']:
    1.19 +        # Always enter a Windows program through wmain, whether or not we're
    1.20 +        # a console application.
    1.21 +        WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
    1.22 +
    1.23 +DEFINES['XPCOM_GLUE'] = True
    1.24 +
    1.25 +for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION', 'MOZ_UPDATER', 'MOZ_SERVICES_FXACCOUNTS'):
    1.26 +    DEFINES[var] = CONFIG[var]
    1.27 +
    1.28 +GENERATED_INCLUDES += [
    1.29 +    '/build',
    1.30 +]
    1.31 +
    1.32 +LOCAL_INCLUDES += [
    1.33 +    '/toolkit/xre',
    1.34 +    '/xpcom/base',
    1.35 +    '/xpcom/build',
    1.36 +]
    1.37 +
    1.38 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
    1.39 +    LOCAL_INCLUDES += [
    1.40 +        '/widget/gonk/libdisplay',
    1.41 +    ]
    1.42 +
    1.43 +    LDFLAGS += ['-Wl,--export-dynamic']
    1.44 +
    1.45 +DISABLE_STL_WRAPPING = True

mercurial