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

« back to all changes in this revision

Viewing changes to mozilla/config/makefiles/xpidl.mk

  • 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
# -*- makefile -*-
 
2
# vim:set ts=8 sw=8 sts=8 noet:
 
3
#
 
4
# This Source Code Form is subject to the terms of the Mozilla Public
 
5
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
 
6
# You can obtain one at http://mozilla.org/MPL/2.0/.
 
7
#
 
8
 
 
9
# Always declared, general use by:
 
10
# js/xpconnect/tests/idl/Makefile.in:libs
 
11
# toolkit/crashreporter/test/Makefile.in
 
12
XPIDL_GEN_DIR ?= _xpidlgen
 
13
GARBAGE_DIRS  += $(XPIDL_GEN_DIR)
 
14
 
 
15
 
 
16
###########################################################################
 
17
## Conditional logic
 
18
###########################################################################
 
19
ifndef INCLUDED_XPIDL_MK #{
 
20
  INCLUDED_XPIDL_MK = 1
 
21
 
 
22
  ifneq (,$(XPIDLSRCS)) #{
 
23
 
 
24
    ifndef NO_DIST_INSTALL #{
 
25
      _xpidl-todo_ += xpidl-install-src
 
26
      _xpidl-todo_ += xpidl-install-headers
 
27
    endif #}
 
28
 
 
29
  endif #} XPIDLSRCS
 
30
 
 
31
  export:: $(_xpidl-todo_)
 
32
 
 
33
  $(call requiredfunction,mkdir_deps)
 
34
endif #} INCLUDED_XPIDL_MK
 
35
 
 
36
 
 
37
###########################################################################
 
38
## processing targets
 
39
###########################################################################
 
40
ifdef _xpidl-todo_ #{
 
41
 
 
42
$(call requiredfunction,install_cmd)
 
43
 
 
44
## Logic batch #1
 
45
xpidl-install-src-preqs=\
 
46
  $(XPIDLSRCS) \
 
47
  $(call mkdir_deps,$(IDL_DIR)) \
 
48
  $(NULL)
 
49
 
 
50
xpidl-install-src: $(xpidl-install-src-preqs)
 
51
        $(call install_cmd,$(IFLAGS1) $(foreach val,$^,$(call mkdir_stem,$(val))))
 
52
 
 
53
xpidl-install-headers-preqs =\
 
54
  $(patsubst %.idl,$(XPIDL_GEN_DIR)/%.h, $(XPIDLSRCS)) \
 
55
  $(call mkdir_deps,$(DIST)/include) \
 
56
  $(NULL)
 
57
xpidl-install-headers: $(xpidl-install-headers-preqs)
 
58
        $(call install_cmd,$(IFLAGS1) $(foreach val,$^,$(call mkdir_stem,$(val))))
 
59
 
 
60
endif #} _xpidl-todo_