2012-03-31 04:42:20 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
2012-04-06 18:06:52 +00:00
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
2012-03-31 04:42:20 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
2012-03-31 04:42:20 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
MODULE = dom
|
|
|
|
LIBRARY_NAME = dombindings_s
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
2013-01-30 05:20:53 +00:00
|
|
|
FAIL_ON_WARNINGS := 1
|
2012-03-31 04:42:20 +00:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
2012-10-14 07:40:11 +00:00
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2012-03-31 04:42:20 +00:00
|
|
|
|
|
|
|
# Need this to find all our DOM source files.
|
|
|
|
include $(topsrcdir)/dom/dom-config.mk
|
|
|
|
|
|
|
|
include $(topsrcdir)/dom/webidl/WebIDL.mk
|
|
|
|
|
2012-05-03 04:35:38 +00:00
|
|
|
binding_include_path := mozilla/dom
|
2012-08-24 04:08:09 +00:00
|
|
|
all_webidl_files = $(webidl_files) $(generated_webidl_files)
|
2012-05-23 16:44:48 +00:00
|
|
|
# Set exported_binding_headers before adding the test IDL to the mix
|
|
|
|
exported_binding_headers := $(subst .webidl,Binding.h,$(all_webidl_files))
|
|
|
|
# Set linked_binding_cpp_files before adding the test IDL to the mix
|
|
|
|
linked_binding_cpp_files := $(subst .webidl,Binding.cpp,$(all_webidl_files))
|
|
|
|
|
|
|
|
all_webidl_files += $(test_webidl_files)
|
|
|
|
|
|
|
|
binding_header_files := $(subst .webidl,Binding.h,$(all_webidl_files))
|
|
|
|
binding_cpp_files := $(subst .webidl,Binding.cpp,$(all_webidl_files))
|
2012-03-31 04:42:20 +00:00
|
|
|
|
|
|
|
globalgen_targets := \
|
|
|
|
PrototypeList.h \
|
2012-05-03 04:35:38 +00:00
|
|
|
RegisterBindings.h \
|
|
|
|
RegisterBindings.cpp \
|
2012-05-18 21:25:47 +00:00
|
|
|
UnionTypes.h \
|
2012-11-09 15:59:33 +00:00
|
|
|
UnionTypes.cpp \
|
2012-05-18 21:25:47 +00:00
|
|
|
UnionConversions.h \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS = \
|
2012-05-23 16:44:48 +00:00
|
|
|
$(linked_binding_cpp_files) \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(filter %.cpp, $(globalgen_targets)) \
|
2012-05-03 04:35:38 +00:00
|
|
|
BindingUtils.cpp \
|
2013-01-28 13:34:30 +00:00
|
|
|
CallbackInterface.cpp \
|
2013-01-28 13:34:29 +00:00
|
|
|
CallbackObject.cpp \
|
2012-05-22 13:46:20 +00:00
|
|
|
DOMJSProxyHandler.cpp \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2012-05-06 01:15:11 +00:00
|
|
|
EXPORTS_NAMESPACES = $(binding_include_path) mozilla
|
|
|
|
|
|
|
|
EXPORTS_mozilla = \
|
|
|
|
ErrorResult.h \
|
|
|
|
$(NULL)
|
2012-03-31 04:42:20 +00:00
|
|
|
|
|
|
|
EXPORTS_$(binding_include_path) = \
|
2012-12-25 22:00:15 +00:00
|
|
|
BindingDeclarations.h \
|
2012-08-04 07:29:18 +00:00
|
|
|
BindingUtils.h \
|
2012-11-09 15:43:57 +00:00
|
|
|
CallbackFunction.h \
|
2013-01-28 13:34:30 +00:00
|
|
|
CallbackInterface.h \
|
2013-01-28 13:34:29 +00:00
|
|
|
CallbackObject.h \
|
2012-03-31 04:42:20 +00:00
|
|
|
DOMJSClass.h \
|
2012-05-22 13:46:20 +00:00
|
|
|
DOMJSProxyHandler.h \
|
2012-07-18 10:36:08 +00:00
|
|
|
Errors.msg \
|
2012-09-19 13:02:37 +00:00
|
|
|
NonRefcountedDOMObject.h \
|
2012-08-04 07:29:18 +00:00
|
|
|
Nullable.h \
|
|
|
|
PrimitiveConversions.h \
|
2012-03-31 04:42:20 +00:00
|
|
|
PrototypeList.h \
|
2012-05-03 04:35:38 +00:00
|
|
|
RegisterBindings.h \
|
2012-05-04 16:36:56 +00:00
|
|
|
TypedArray.h \
|
2012-08-04 17:05:15 +00:00
|
|
|
UnionConversions.h \
|
2012-08-04 07:29:18 +00:00
|
|
|
UnionTypes.h \
|
2012-05-23 16:44:48 +00:00
|
|
|
$(exported_binding_headers) \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/js/xpconnect/src \
|
2012-05-31 18:16:48 +00:00
|
|
|
-I$(topsrcdir)/js/xpconnect/wrappers \
|
2012-06-13 15:14:15 +00:00
|
|
|
-I$(topsrcdir)/content/canvas/src \
|
2012-09-13 16:04:31 +00:00
|
|
|
-I$(topsrcdir)/content/html/content/src \
|
2012-10-15 15:09:10 +00:00
|
|
|
-I$(topsrcdir)/media/webrtc/signaling/src/peerconnection \
|
2012-10-14 07:40:11 +00:00
|
|
|
-I$(topsrcdir)/dom/base \
|
2013-02-05 12:54:49 +00:00
|
|
|
-I$(topsrcdir)/dom/battery \
|
2012-12-14 19:10:49 +00:00
|
|
|
-I$(topsrcdir)/content/xslt/src/base \
|
|
|
|
-I$(topsrcdir)/content/xslt/src/xpath \
|
2012-12-22 08:27:27 +00:00
|
|
|
-I$(topsrcdir)/content/xml/content/src \
|
2013-01-29 17:51:55 +00:00
|
|
|
-I$(topsrcdir)/content/xul/content/src \
|
2012-10-14 07:40:11 +00:00
|
|
|
$(NULL)
|
2012-03-31 04:42:20 +00:00
|
|
|
|
2013-02-08 16:34:47 +00:00
|
|
|
ifdef MOZ_AUDIO_CHANNEL_MANAGER
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(topsrcdir)/dom/system/gonk \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-03-31 04:42:20 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2012-05-23 16:44:48 +00:00
|
|
|
# If you change bindinggen_dependencies here, change it in
|
|
|
|
# dom/bindings/test/Makefile.in too.
|
2012-03-31 04:42:20 +00:00
|
|
|
bindinggen_dependencies := \
|
|
|
|
BindingGen.py \
|
|
|
|
Bindings.conf \
|
|
|
|
Configuration.py \
|
|
|
|
Codegen.py \
|
2012-06-11 22:21:35 +00:00
|
|
|
parser/WebIDL.py \
|
2012-03-31 04:42:20 +00:00
|
|
|
ParserResults.pkl \
|
|
|
|
$(GLOBAL_DEPS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-08-24 04:08:09 +00:00
|
|
|
CSS2Properties.webidl: $(topsrcdir)/layout/style/nsCSSPropList.h \
|
|
|
|
$(topsrcdir)/layout/style/nsCSSPropAliasList.h \
|
|
|
|
$(webidl_base)/CSS2Properties.webidl.in \
|
|
|
|
$(webidl_base)/CSS2PropertiesProps.h \
|
|
|
|
$(srcdir)/GenerateCSS2PropertiesWebIDL.py \
|
|
|
|
$(GLOBAL_DEPS)
|
2012-08-28 18:14:53 +00:00
|
|
|
$(CPP) $(DEFINES) $(ACDEFINES) -I$(topsrcdir)/layout/style $(webidl_base)/CSS2PropertiesProps.h | \
|
2012-08-24 04:08:09 +00:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) \
|
|
|
|
$(srcdir)/GenerateCSS2PropertiesWebIDL.py $(webidl_base)/CSS2Properties.webidl.in > CSS2Properties.webidl
|
|
|
|
|
2012-05-23 16:44:48 +00:00
|
|
|
$(webidl_files): %: $(webidl_base)/%
|
|
|
|
$(INSTALL) $(IFLAGS1) $(webidl_base)/$* .
|
|
|
|
|
|
|
|
$(test_webidl_files): %: $(srcdir)/test/%
|
|
|
|
$(INSTALL) $(IFLAGS1) $(srcdir)/test/$* .
|
|
|
|
|
2012-03-31 04:42:20 +00:00
|
|
|
$(binding_header_files): %Binding.h: $(bindinggen_dependencies) \
|
2012-05-23 16:44:48 +00:00
|
|
|
%.webidl \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(NULL)
|
2012-06-10 23:03:23 +00:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
2012-04-06 18:06:52 +00:00
|
|
|
$(PLY_INCLUDE) -I$(srcdir)/parser \
|
2012-08-08 05:26:19 +00:00
|
|
|
$(srcdir)/BindingGen.py header \
|
2012-04-06 18:06:52 +00:00
|
|
|
$(srcdir)/Bindings.conf $*Binding \
|
2012-05-23 16:44:48 +00:00
|
|
|
$*.webidl
|
2012-03-31 04:42:20 +00:00
|
|
|
|
|
|
|
$(binding_cpp_files): %Binding.cpp: $(bindinggen_dependencies) \
|
2012-05-23 16:44:48 +00:00
|
|
|
%.webidl \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(NULL)
|
2012-06-10 23:03:23 +00:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
2012-04-06 18:06:52 +00:00
|
|
|
$(PLY_INCLUDE) -I$(srcdir)/parser \
|
2012-08-08 05:26:19 +00:00
|
|
|
$(srcdir)/BindingGen.py cpp \
|
2012-04-06 18:06:52 +00:00
|
|
|
$(srcdir)/Bindings.conf $*Binding \
|
2012-05-23 16:44:48 +00:00
|
|
|
$*.webidl
|
2012-03-31 04:42:20 +00:00
|
|
|
|
|
|
|
$(globalgen_targets): ParserResults.pkl
|
|
|
|
|
2012-10-17 21:01:55 +00:00
|
|
|
%-example: $(bindinggen_dependencies) \
|
|
|
|
$(all_webidl_files) \
|
|
|
|
$(NULL)
|
|
|
|
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
|
|
|
$(PLY_INCLUDE) -I$(srcdir)/parser \
|
|
|
|
$(srcdir)/ExampleGen.py \
|
|
|
|
$(srcdir)/Bindings.conf $*
|
|
|
|
|
2012-03-31 04:42:20 +00:00
|
|
|
CACHE_DIR = _cache
|
|
|
|
|
|
|
|
globalgen_dependencies := \
|
|
|
|
GlobalGen.py \
|
|
|
|
Bindings.conf \
|
|
|
|
Configuration.py \
|
|
|
|
Codegen.py \
|
2012-06-11 22:21:35 +00:00
|
|
|
parser/WebIDL.py \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(CACHE_DIR)/.done \
|
|
|
|
$(GLOBAL_DEPS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
$(CACHE_DIR)/.done:
|
|
|
|
$(MKDIR) -p $(CACHE_DIR)
|
|
|
|
@$(TOUCH) $@
|
|
|
|
|
|
|
|
ParserResults.pkl: $(globalgen_dependencies) \
|
2012-05-23 16:44:48 +00:00
|
|
|
$(all_webidl_files)
|
2012-06-10 23:03:23 +00:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
2012-04-06 18:06:52 +00:00
|
|
|
$(PLY_INCLUDE) -I$(srcdir)/parser \
|
2012-08-08 05:26:19 +00:00
|
|
|
$(srcdir)/GlobalGen.py $(srcdir)/Bindings.conf . \
|
2012-03-31 04:42:20 +00:00
|
|
|
--cachedir=$(CACHE_DIR) \
|
2012-05-23 16:44:48 +00:00
|
|
|
$(all_webidl_files)
|
2012-03-31 04:42:20 +00:00
|
|
|
|
|
|
|
GARBAGE += \
|
|
|
|
$(binding_header_files) \
|
|
|
|
$(binding_cpp_files) \
|
2012-05-23 16:44:48 +00:00
|
|
|
$(all_webidl_files) \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(globalgen_targets) \
|
|
|
|
ParserResults.pkl \
|
|
|
|
webidlyacc.py \
|
|
|
|
parser.out \
|
2012-10-17 21:01:55 +00:00
|
|
|
$(wildcard *-example.h) \
|
|
|
|
$(wildcard *-example.cpp) \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(NULL)
|
2012-06-12 14:22:05 +00:00
|
|
|
|
|
|
|
# Make sure all binding header files are created during the export stage, so we
|
|
|
|
# don't have issues with .cpp files being compiled before we've generated the
|
|
|
|
# headers they depend on. This is really only needed for the test files, since
|
|
|
|
# the non-test headers are all exported above anyway.
|
2012-07-18 10:36:08 +00:00
|
|
|
export:: $(binding_header_files)
|