~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to toolkit/crashreporter/client/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# vim:set ts=8 sw=8 sts=8 noet:
2
 
# This Source Code Form is subject to the terms of the Mozilla Public
3
 
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
 
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
 
 
6
 
DEPTH           = @DEPTH@
7
 
topsrcdir       = @top_srcdir@
8
 
srcdir          = @srcdir@
9
 
VPATH           = @srcdir@
10
 
relativesrcdir = @relativesrcdir@
11
 
 
12
 
include $(DEPTH)/config/autoconf.mk
13
 
 
14
 
MODULE = crashreporter
15
 
 
16
 
# Don't use the STL wrappers in the crashreporter clients; they don't
17
 
# link with -lmozalloc, and it really doesn't matter here anyway.
18
 
STL_FLAGS =
19
 
 
20
 
ifneq ($(OS_TARGET),Android)
21
 
PROGRAM = crashreporter$(BIN_SUFFIX)
22
 
DIST_PROGRAM = crashreporter$(BIN_SUFFIX)
23
 
 
24
 
# Don't link the updater against libmozglue.
25
 
MOZ_GLUE_LDFLAGS =
26
 
MOZ_GLUE_PROGRAM_LDFLAGS =
27
 
endif
28
 
 
29
 
LOCAL_INCLUDES = -I$(srcdir)/../google-breakpad/src
30
 
 
31
 
VPATH += $(topsrcdir)/build/
32
 
 
33
 
CPPSRCS = \
34
 
  crashreporter.cpp \
35
 
  $(NULL)
36
 
 
37
 
ifeq ($(OS_ARCH),WINNT)
38
 
CPPSRCS += crashreporter_win.cpp
39
 
LIBS += \
40
 
  $(DEPTH)/toolkit/crashreporter/breakpad-windows-libxul/$(LIB_PREFIX)google_breakpad_libxul_s.$(LIB_SUFFIX)
41
 
  $(NULL)
42
 
LOCAL_INCLUDES += -I$(srcdir)
43
 
RCINCLUDE = crashreporter.rc
44
 
DEFINES += -DUNICODE -D_UNICODE
45
 
OS_LIBS += $(call EXPAND_LIBNAME,comctl32 shell32 wininet shlwapi)
46
 
MOZ_WINCONSOLE = 0
47
 
endif
48
 
 
49
 
ifeq ($(OS_ARCH),Darwin)
50
 
CPPSRCS += crashreporter_unix_common.cpp
51
 
CMMSRCS += crashreporter_osx.mm
52
 
OS_LIBS += -framework Cocoa
53
 
LIBS += \
54
 
  $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/$(LIB_PREFIX)breakpad_common_s.$(LIB_SUFFIX) \
55
 
  $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/mac/$(LIB_PREFIX)breakpad_mac_common_s.$(LIB_SUFFIX) \
56
 
  $(NULL)
57
 
 
58
 
LOCAL_INCLUDES += -I$(srcdir) -I$(srcdir)/../google-breakpad/src/common/mac/
59
 
endif
60
 
 
61
 
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
62
 
CPPSRCS += crashreporter_gtk_common.cpp crashreporter_unix_common.cpp
63
 
 
64
 
ifdef MOZ_PLATFORM_MAEMO
65
 
CPPSRCS += crashreporter_maemo_gtk.cpp
66
 
 
67
 
# Maemo's libcurl doesn't ship with a set of CA certificates,
68
 
# so we have to ship our own.
69
 
libs:: $(DIST)/bin/crashreporter.crt
70
 
 
71
 
$(DIST)/bin/crashreporter.crt: $(topsrcdir)/security/nss/lib/ckfw/builtins/certdata.txt certdata2pem.py
72
 
        $(PYTHON) $(srcdir)/certdata2pem.py < $< > $@
73
 
 
74
 
# The xpcshell test case here verifies that the CA certificate list
75
 
# works with OpenSSL.
76
 
XPCSHELL_TESTS = maemo-unit
77
 
 
78
 
else
79
 
CPPSRCS += crashreporter_linux.cpp
80
 
endif
81
 
 
82
 
LIBS += \
83
 
  $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/linux/$(LIB_PREFIX)breakpad_linux_common_s.$(LIB_SUFFIX) \
84
 
  $(NULL)
85
 
LOCAL_INCLUDES += -I$(srcdir)
86
 
OS_CXXFLAGS += $(MOZ_GTK2_CFLAGS) $(MOZ_GTHREAD_CFLAGS)
87
 
OS_LIBS += $(MOZ_GTK2_LIBS) $(MOZ_GTHREAD_LIBS)
88
 
endif
89
 
 
90
 
ifeq ($(OS_ARCH),SunOS)
91
 
CPPSRCS += crashreporter_linux.cpp crashreporter_unix.cpp
92
 
LIBS += \
93
 
  $(DEPTH)/toolkit/crashreporter/google-breakpad/src/common/solaris/$(LIB_PREFIX)breakpad_solaris_common_s.$(LIB_SUFFIX) \
94
 
  $(NULL)
95
 
LOCAL_INCLUDES += -I$(srcdir)
96
 
OS_CXXFLAGS += $(MOZ_GTK2_CFLAGS) $(MOZ_GTHREAD_CFLAGS)
97
 
OS_LIBS += $(MOZ_GTK2_LIBS) $(MOZ_GTHREAD_LIBS)
98
 
endif
99
 
 
100
 
include $(topsrcdir)/config/rules.mk
101
 
 
102
 
ifeq ($(OS_ARCH),Darwin)
103
 
libs::
104
 
        $(NSINSTALL) -D $(DIST)/bin/crashreporter.app
105
 
        rsync -a -C --exclude "*.in" $(srcdir)/macbuild/Contents $(DIST)/bin/crashreporter.app 
106
 
        sed -e "s/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/" $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \
107
 
          iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/crashreporter.app/Contents/Resources/English.lproj/InfoPlist.strings
108
 
        $(NSINSTALL) -D $(DIST)/bin/crashreporter.app/Contents/MacOS
109
 
        $(NSINSTALL) $(DIST)/bin/crashreporter $(DIST)/bin/crashreporter.app/Contents/MacOS
110
 
        rm -f $(DIST)/bin/crashreporter
111
 
endif
112
 
 
113
 
ifeq (,$(filter-out Linux SunOS,$(OS_ARCH)))
114
 
libs:: $(topsrcdir)/toolkit/themes/winstripe/global/throbber/Throbber-small.gif
115
 
        $(INSTALL) $^ $(DIST)/bin
116
 
endif
117
 
 
118
 
ifdef MOZ_PLATFORM_MAEMO
119
 
libs::
120
 
        $(INSTALL) $(DIST)/bin/crashreporter.crt $(DEPTH)/_tests/xpcshell/$(MODULE)/maemo-unit/
121
 
endif