~ubuntu-branches/ubuntu/precise/enigmail/precise-security

« back to all changes in this revision

Viewing changes to dom/bindings/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-11-12 16:36:01 UTC
  • mfrom: (0.12.15)
  • Revision ID: package-import@ubuntu.com-20121112163601-t8e8skdfi3ni9iqp
Tags: 2:1.4.6-0ubuntu0.12.04.1
* New upstream release v1.4.6
  - see LP: #1080212 for USN information
* Drop unneeded patches
  - remove debian/patches/correct-version-number.diff
  - remove debian/patches/dont_register_cids_multiple_times.diff
  - update debian/patches/series
* Support building in an objdir
  - update debian/rules

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 file,
 
3
# 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
FAIL_ON_WARNINGS := 1
 
10
 
 
11
MODULE           = dom
 
12
LIBRARY_NAME     = dombindings_s
 
13
LIBXUL_LIBRARY   = 1
 
14
FORCE_STATIC_LIB = 1
 
15
EXPORT_LIBRARY   = 1
 
16
 
 
17
include $(topsrcdir)/config/config.mk
 
18
 
 
19
# Need this to find all our DOM source files.
 
20
include $(topsrcdir)/dom/dom-config.mk
 
21
 
 
22
include $(topsrcdir)/dom/webidl/WebIDL.mk
 
23
 
 
24
binding_include_path := mozilla/dom
 
25
all_webidl_files = $(webidl_files) $(generated_webidl_files)
 
26
# Set exported_binding_headers before adding the test IDL to the mix
 
27
exported_binding_headers := $(subst .webidl,Binding.h,$(all_webidl_files))
 
28
# Set linked_binding_cpp_files before adding the test IDL to the mix
 
29
linked_binding_cpp_files := $(subst .webidl,Binding.cpp,$(all_webidl_files))
 
30
 
 
31
all_webidl_files += $(test_webidl_files)
 
32
 
 
33
binding_header_files := $(subst .webidl,Binding.h,$(all_webidl_files))
 
34
binding_cpp_files := $(subst .webidl,Binding.cpp,$(all_webidl_files))
 
35
 
 
36
globalgen_targets := \
 
37
  PrototypeList.h \
 
38
  RegisterBindings.h \
 
39
  RegisterBindings.cpp \
 
40
  UnionTypes.h \
 
41
  UnionConversions.h \
 
42
  $(NULL)
 
43
 
 
44
CPPSRCS = \
 
45
  $(linked_binding_cpp_files) \
 
46
  $(filter %.cpp, $(globalgen_targets)) \
 
47
  BindingUtils.cpp \
 
48
  DOMJSProxyHandler.cpp \
 
49
  $(NULL)
 
50
 
 
51
EXPORTS_NAMESPACES = $(binding_include_path) mozilla
 
52
 
 
53
EXPORTS_mozilla = \
 
54
  ErrorResult.h \
 
55
  $(NULL)
 
56
 
 
57
EXPORTS_$(binding_include_path) = \
 
58
  BindingUtils.h \
 
59
  DOMJSClass.h \
 
60
  DOMJSProxyHandler.h \
 
61
  Errors.msg \
 
62
  Nullable.h \
 
63
  PrimitiveConversions.h \
 
64
  PrototypeList.h \
 
65
  RegisterBindings.h \
 
66
  TypedArray.h \
 
67
  UnionConversions.h \
 
68
  UnionTypes.h \
 
69
  $(exported_binding_headers) \
 
70
  $(NULL)
 
71
 
 
72
LOCAL_INCLUDES += -I$(topsrcdir)/js/xpconnect/src \
 
73
  -I$(topsrcdir)/js/xpconnect/wrappers \
 
74
  -I$(topsrcdir)/content/canvas/src \
 
75
  -I$(topsrcdir)/content/html/content/src
 
76
 
 
77
include $(topsrcdir)/config/rules.mk
 
78
 
 
79
# If you change bindinggen_dependencies here, change it in
 
80
# dom/bindings/test/Makefile.in too.
 
81
bindinggen_dependencies := \
 
82
  BindingGen.py \
 
83
  Bindings.conf \
 
84
  Configuration.py \
 
85
  Codegen.py \
 
86
  parser/WebIDL.py \
 
87
  ParserResults.pkl \
 
88
  $(GLOBAL_DEPS) \
 
89
  $(NULL)
 
90
 
 
91
CSS2Properties.webidl: $(topsrcdir)/layout/style/nsCSSPropList.h \
 
92
                       $(topsrcdir)/layout/style/nsCSSPropAliasList.h \
 
93
                       $(webidl_base)/CSS2Properties.webidl.in \
 
94
                       $(webidl_base)/CSS2PropertiesProps.h \
 
95
                       $(srcdir)/GenerateCSS2PropertiesWebIDL.py \
 
96
                       $(GLOBAL_DEPS)
 
97
        $(CPP) -I$(topsrcdir)/layout/style $(webidl_base)/CSS2PropertiesProps.h | \
 
98
          PYTHONDONTWRITEBYTECODE=1 $(PYTHON) \
 
99
          $(srcdir)/GenerateCSS2PropertiesWebIDL.py $(webidl_base)/CSS2Properties.webidl.in > CSS2Properties.webidl
 
100
 
 
101
$(webidl_files): %: $(webidl_base)/%
 
102
        $(INSTALL) $(IFLAGS1) $(webidl_base)/$* .
 
103
 
 
104
$(test_webidl_files): %: $(srcdir)/test/%
 
105
        $(INSTALL) $(IFLAGS1) $(srcdir)/test/$* .
 
106
 
 
107
$(binding_header_files): %Binding.h: $(bindinggen_dependencies) \
 
108
                                     %.webidl \
 
109
                                     $(NULL)
 
110
        PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
 
111
          $(PLY_INCLUDE) -I$(srcdir)/parser \
 
112
          $(srcdir)/BindingGen.py header \
 
113
          $(srcdir)/Bindings.conf $*Binding \
 
114
          $*.webidl
 
115
 
 
116
$(binding_cpp_files): %Binding.cpp: $(bindinggen_dependencies) \
 
117
                                    %.webidl \
 
118
                                    $(NULL)
 
119
        PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
 
120
          $(PLY_INCLUDE) -I$(srcdir)/parser \
 
121
          $(srcdir)/BindingGen.py cpp \
 
122
          $(srcdir)/Bindings.conf $*Binding \
 
123
          $*.webidl
 
124
 
 
125
$(globalgen_targets): ParserResults.pkl
 
126
 
 
127
CACHE_DIR = _cache
 
128
 
 
129
globalgen_dependencies := \
 
130
  GlobalGen.py \
 
131
  Bindings.conf \
 
132
  Configuration.py \
 
133
  Codegen.py \
 
134
  parser/WebIDL.py \
 
135
  $(CACHE_DIR)/.done \
 
136
  $(GLOBAL_DEPS) \
 
137
  $(NULL)
 
138
 
 
139
$(CACHE_DIR)/.done:
 
140
        $(MKDIR) -p $(CACHE_DIR)
 
141
        @$(TOUCH) $@
 
142
 
 
143
ParserResults.pkl: $(globalgen_dependencies) \
 
144
                   $(all_webidl_files)
 
145
        PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
 
146
    $(PLY_INCLUDE) -I$(srcdir)/parser \
 
147
    $(srcdir)/GlobalGen.py $(srcdir)/Bindings.conf . \
 
148
    --cachedir=$(CACHE_DIR) \
 
149
    $(all_webidl_files)
 
150
 
 
151
GARBAGE += \
 
152
  $(binding_header_files) \
 
153
  $(binding_cpp_files) \
 
154
  $(all_webidl_files) \
 
155
  $(globalgen_targets) \
 
156
  ParserResults.pkl \
 
157
  webidlyacc.py \
 
158
  parser.out \
 
159
  $(NULL)
 
160
 
 
161
# Make sure all binding header files are created during the export stage, so we
 
162
# don't have issues with .cpp files being compiled before we've generated the
 
163
# headers they depend on.  This is really only needed for the test files, since
 
164
# the non-test headers are all exported above anyway.
 
165
export:: $(binding_header_files)