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

« back to all changes in this revision

Viewing changes to config/makefiles/mochitest.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
 
ifndef INCLUDED_TESTS_MOCHITEST_MK #{
9
 
 
10
 
ifdef relativesrcdir
11
 
  mochitestdir = $(DEPTH)/_tests/testing/mochitest/$1/$(relativesrcdir)
12
 
else
13
 
  mochitestdir = $(DEPTH)/_tests/testing/mochitest/$1/$(subst $(topsrcdir),,$(srcdir))
14
 
endif
15
 
 
16
 
define mochitest-libs-rule-template
17
 
libs:: $$($(1))
18
 
        $$(call install_cmd,$$(foreach f,$$^,"$$(f)") $$(call mochitestdir,$(2)))
19
 
endef
20
 
 
21
 
# Provide support for modules with such a large number of tests that
22
 
# installing them with a single $(INSTALL) invocation would overflow
23
 
# command-line length limits on some operating systems.
24
 
ifdef MOCHITEST_FILES_PARTS
25
 
ifdef MOCHITEST_FILES
26
 
$(error You must define only one of MOCHITEST_FILES_PARTS or MOCHITEST_FILES)
27
 
endif
28
 
$(foreach part,$(MOCHITEST_FILES_PARTS),$(eval $(call mochitest-libs-rule-template,$(part),tests)))
29
 
endif
30
 
 
31
 
ifdef MOCHITEST_FILES
32
 
$(eval $(call mochitest-libs-rule-template,MOCHITEST_FILES,tests))
33
 
endif
34
 
 
35
 
ifdef MOCHITEST_CHROME_FILES
36
 
$(eval $(call mochitest-libs-rule-template,MOCHITEST_CHROME_FILES,chrome))
37
 
endif
38
 
 
39
 
ifdef MOCHITEST_BROWSER_FILES_PARTS
40
 
ifdef MOCHITEST_BROWSER_FILES
41
 
$(error You must define only one of MOCHITEST_BROWSER_FILES_PARTS or MOCHITEST_BROWSER_FILES)
42
 
endif
43
 
$(foreach part,$(MOCHITEST_BROWSER_FILES_PARTS),$(eval $(call mochitest-libs-rule-template,$(part),browser)))
44
 
endif
45
 
 
46
 
ifdef MOCHITEST_BROWSER_FILES
47
 
$(eval $(call mochitest-libs-rule-template,MOCHITEST_BROWSER_FILES,browser))
48
 
endif
49
 
 
50
 
ifdef MOCHITEST_A11Y_FILES
51
 
$(eval $(call mochitest-libs-rule-template,MOCHITEST_A11Y_FILES,a11y))
52
 
endif
53
 
 
54
 
ifdef MOCHITEST_WEBAPPRT_CHROME_FILES
55
 
$(eval $(call mochitest-libs-rule-template,MOCHITEST_WEBAPPRT_CHROME_FILES,webapprtChrome))
56
 
endif
57
 
 
58
 
INCLUDED_TESTS_MOCHITEST_MK := 1
59
 
 
60
 
endif #} INCLUDED_TESTS_MOCHITEST_MK