michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if not CONFIG['LIBXUL_SDK']: michael@0: if CONFIG['GAIADIR']: michael@0: PROGRAM = CONFIG['MOZ_APP_NAME'] + "-bin" michael@0: else: michael@0: PROGRAM = CONFIG['MOZ_APP_NAME'] michael@0: SOURCES += [ michael@0: 'nsBrowserApp.cpp', michael@0: ] michael@0: if CONFIG['_MSC_VER']: michael@0: # Always enter a Windows program through wmain, whether or not we're michael@0: # a console application. michael@0: WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup'] michael@0: michael@0: DEFINES['XPCOM_GLUE'] = True michael@0: michael@0: for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION', 'MOZ_UPDATER', 'MOZ_SERVICES_FXACCOUNTS'): michael@0: DEFINES[var] = CONFIG[var] michael@0: michael@0: GENERATED_INCLUDES += [ michael@0: '/build', michael@0: ] michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/toolkit/xre', michael@0: '/xpcom/base', michael@0: '/xpcom/build', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: LOCAL_INCLUDES += [ michael@0: '/widget/gonk/libdisplay', michael@0: ] michael@0: michael@0: LDFLAGS += ['-Wl,--export-dynamic'] michael@0: michael@0: DISABLE_STL_WRAPPING = True