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 CONFIG['OS_TARGET'] != 'Android': michael@0: PROGRAM = 'crashreporter' michael@0: # The xpcshell test case here verifies that the CA certificate list michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'crashreporter.cpp', michael@0: ] michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../google-breakpad/src', michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: UNIFIED_SOURCES += [ michael@0: 'crashreporter_win.cpp', michael@0: ] michael@0: DEFINES['UNICODE'] = True michael@0: DEFINES['_UNICODE'] = True michael@0: elif CONFIG['OS_ARCH'] == 'Darwin': michael@0: UNIFIED_SOURCES += [ michael@0: 'crashreporter_osx.mm', michael@0: 'crashreporter_unix_common.cpp', michael@0: ] michael@0: LOCAL_INCLUDES += [ michael@0: '../google-breakpad/src/common/mac', michael@0: ] michael@0: LDFLAGS += ['-framework Cocoa'] michael@0: elif CONFIG['OS_ARCH'] == 'SunOS': michael@0: SOURCES += [ michael@0: 'crashreporter_linux.cpp', michael@0: 'crashreporter_unix.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ENABLE_GTK']: michael@0: UNIFIED_SOURCES += [ michael@0: 'crashreporter_gtk_common.cpp', michael@0: 'crashreporter_linux.cpp', michael@0: 'crashreporter_unix_common.cpp' michael@0: ] michael@0: michael@0: RCINCLUDE = 'crashreporter.rc' michael@0: michael@0: # Don't use the STL wrappers in the crashreporter clients; they don't michael@0: # link with -lmozalloc, and it really doesn't matter here anyway. michael@0: DISABLE_STL_WRAPPING = True