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

« back to all changes in this revision

Viewing changes to ipc/app/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
 
# This Source Code Form is subject to the terms of the Mozilla Public
2
 
# License, v. 2.0. If a copy of the MPL was not distributed with this
3
 
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
 
 
5
 
DEPTH     = @DEPTH@
6
 
topsrcdir = @top_srcdir@
7
 
srcdir    = @srcdir@
8
 
VPATH     = @srcdir@
9
 
 
10
 
include $(DEPTH)/config/autoconf.mk
11
 
 
12
 
MODULE = ipc
13
 
 
14
 
include $(topsrcdir)/ipc/app/defs.mk
15
 
PROGRAM = $(MOZ_CHILD_PROCESS_NAME)
16
 
 
17
 
ifneq ($(dir $(PROGRAM)),./)
18
 
  GENERATED_DIRS = $(dir $(PROGRAM))
19
 
endif
20
 
 
21
 
CPPSRCS = \
22
 
  MozillaRuntimeMain.cpp \
23
 
  $(NULL)
24
 
 
25
 
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
26
 
WRAP_LDFLAGS =
27
 
CPPSRCS = MozillaRuntimeMainAndroid.cpp
28
 
else
29
 
LIBS += \
30
 
  $(XPCOM_LIBS) \
31
 
  $(NSPR_LIBS) \
32
 
  $(NULL)
33
 
endif
34
 
 
35
 
LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
36
 
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
37
 
 
38
 
ifndef MOZ_WINCONSOLE
39
 
ifdef MOZ_DEBUG
40
 
MOZ_WINCONSOLE = 1
41
 
else
42
 
MOZ_WINCONSOLE = 0
43
 
endif
44
 
endif
45
 
 
46
 
# This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that
47
 
# shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall.
48
 
NSDISTMODE = copy
49
 
 
50
 
include $(topsrcdir)/config/config.mk
51
 
include $(topsrcdir)/ipc/chromium/chromium-config.mk
52
 
 
53
 
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
54
 
FINAL_TARGET = $(DIST)/bin/lib
55
 
endif
56
 
 
57
 
ifdef _MSC_VER
58
 
# Always enter a Windows program through wmain, whether or not we're
59
 
# a console application.
60
 
WIN32_EXE_LDFLAGS += -ENTRY:wmainCRTStartup
61
 
endif
62
 
 
63
 
include $(topsrcdir)/config/rules.mk
64
 
 
65
 
LDFLAGS += $(MOZ_ALLOW_HEAP_EXECUTE_FLAGS)
66
 
 
67
 
ifeq ($(OS_ARCH),WINNT) #{
68
 
#
69
 
# Control the default heap size.
70
 
# This is the heap returned by GetProcessHeap().
71
 
# As we use the CRT heap, the default size is too large and wastes VM.
72
 
#
73
 
# The default heap size is 1MB on Win32.
74
 
# The heap will grow if need be.
75
 
#
76
 
# Set it to 256k.  See bug 127069.
77
 
#
78
 
ifndef GNU_CC #{
79
 
LDFLAGS += /HEAP:0x40000
80
 
ifeq ($(OS_TEST),x86_64) #{
81
 
# set stack to 2MB on x64 build.  See bug 582910
82
 
LDFLAGS += -STACK:2097152
83
 
endif #}
84
 
endif #}
85
 
endif #}
86
 
 
87
 
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) #{
88
 
 
89
 
libs::
90
 
        $(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app
91
 
        rsync -a -C --exclude "*.in" $(srcdir)/macbuild/Contents $(DIST)/bin/$(PROGRAM).app 
92
 
        sed -e "s/%PROGRAM%/$(PROGRAM)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/bin/$(PROGRAM).app/Contents/Info.plist
93
 
        sed -e "s/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/" $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \
94
 
          iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/$(PROGRAM).app/Contents/Resources/English.lproj/InfoPlist.strings
95
 
        $(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app/Contents/MacOS
96
 
        $(NSINSTALL) $(PROGRAM) $(DIST)/bin/$(PROGRAM).app/Contents/MacOS
97
 
        $(RM) $(DIST)/bin/$(PROGRAM)
98
 
endif #}