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

« back to all changes in this revision

Viewing changes to xpcom/glue/standalone/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
 
 
11
 
include $(DEPTH)/config/autoconf.mk
12
 
include $(srcdir)/../objs.mk
13
 
 
14
 
EXTRA_DEPS += $(srcdir)/../objs.mk
15
 
 
16
 
# On win we build two glue libs - glue linked to crt dlls here and in staticruntime we build
17
 
# a statically linked glue lib.
18
 
ifeq ($(OS_ARCH),WINNT)
19
 
DIRS += staticruntime
20
 
endif
21
 
 
22
 
MODULE          = xpcom
23
 
LIBRARY_NAME    = xpcomglue
24
 
DIST_INSTALL    = 1
25
 
 
26
 
LOCAL_INCLUDES  = \
27
 
        -I$(srcdir)/../../build \
28
 
        $(NULL)
29
 
 
30
 
ifeq (Darwin,$(OS_ARCH))
31
 
ifeq (uikit,$(MOZ_WIDGET_TOOLKIT))
32
 
LINKSRC = nsGlueLinkingDlopen.cpp
33
 
else
34
 
LINKSRC = nsGlueLinkingOSX.cpp
35
 
endif
36
 
endif
37
 
 
38
 
ifeq ($(OS_ARCH),WINNT)
39
 
LINKSRC = nsGlueLinkingWin.cpp
40
 
endif
41
 
ifneq (,$(filter AIX DragonFly FreeBSD GNU GNU_% Linux NetBSD OpenBSD SunOS,$(OS_ARCH)))
42
 
LINKSRC = nsGlueLinkingDlopen.cpp
43
 
endif
44
 
ifeq (OS2,$(OS_ARCH))
45
 
LINKSRC = nsGlueLinkingOS2.cpp
46
 
endif
47
 
 
48
 
ifndef LINKSRC
49
 
LINKSRC = nsGlueLinkingNull.cpp
50
 
$(warning TinderboxPrint:<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=298044">Error: XPCOM Glue</a>)
51
 
endif
52
 
 
53
 
CPPSRCS         = \
54
 
        $(XPCOM_GLUE_SRC_LCPPSRCS)   \
55
 
        nsStringAPI.cpp              \
56
 
        nsXPCOMGlue.cpp              \
57
 
        $(LINKSRC)                   \
58
 
        $(NULL)
59
 
 
60
 
SDK_HEADERS     = \
61
 
        nsXPCOMGlue.h \
62
 
        $(NULL)
63
 
 
64
 
SDK_LIBRARY             = \
65
 
        $(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
66
 
        $(NULL)
67
 
 
68
 
FORCE_STATIC_LIB = 1
69
 
 
70
 
# Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
71
 
STL_FLAGS       =
72
 
 
73
 
GARBAGE         += $(XPCOM_GLUE_SRC_LCPPSRCS)
74
 
 
75
 
SRCS_IN_OBJDIR  = 1
76
 
 
77
 
include $(topsrcdir)/config/rules.mk
78
 
 
79
 
ifdef _MSC_VER
80
 
# Don't include directives in obj files about which CRT to use
81
 
OS_COMPILE_CXXFLAGS += -Zl
82
 
OS_COMPILE_CFLAGS += -Zl
83
 
DEFINES += -D_USE_ANSI_CPP
84
 
endif
85
 
 
86
 
export:: $(XPCOM_GLUE_SRC_CPPSRCS) $(topsrcdir)/xpcom/glue/nsStringAPI.cpp
87
 
        $(INSTALL) $^ .
88
 
 
89
 
GARBAGE += nsStringAPI.cpp
90
 
 
91
 
DEFINES         += -DXPCOM_GLUE
92
 
 
93
 
ifdef TARGET_XPCOM_ABI
94
 
DEFINES += -DTARGET_XPCOM_ABI=\"$(TARGET_XPCOM_ABI)\"
95
 
endif
96