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: FAIL_ON_WARNINGS = True michael@0: michael@0: PROGRAM = 'xpcshell' michael@0: michael@0: SOURCES += [ michael@0: 'xpcshell.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: SOURCES += [ michael@0: 'xpcshellMacUtils.mm', michael@0: ] michael@0: michael@0: DEFINES['JS_THREADSAFE'] = True michael@0: michael@0: if CONFIG['MOZ_SHARK']: michael@0: DEFINES['MOZ_SHARK'] = True michael@0: if CONFIG['MOZ_CALLGRIND']: michael@0: DEFINES['MOZ_CALLGRIND'] = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/toolkit/xre', michael@0: ] 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']