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: # The value of XULRUNNER_STUB_NAME is generated by configure to allow XULRunner michael@0: # apps to override it using the --with-xulrunner-stub-name= argument. michael@0: # If this configure argument is not present then the default name is michael@0: # 'xulrunner-stub'. michael@0: PROGRAM = CONFIG['XULRUNNER_STUB_NAME'] michael@0: michael@0: SOURCES += [ michael@0: 'nsXULStub.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: FINAL_TARGET = 'dist/XUL.framework/Versions/%(MOZILLA_VERSION)s' % CONFIG michael@0: michael@0: DEFINES['XPCOM_GLUE'] = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/xpcom/base', michael@0: '/xpcom/build', michael@0: ] michael@0: michael@0: michael@0: # Statically link against the RTL on windows michael@0: USE_STATIC_LIBS = True michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: LOCAL_INCLUDES += ['/toolkit/xre'] michael@0: michael@0: if CONFIG['_MSC_VER']: michael@0: WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup'] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: DEFINES['MOZ_XULRUNNER'] = True michael@0: RCINCLUDE = 'xulrunner-stub.rc' michael@0: michael@0: DISABLE_STL_WRAPPING = True