Change .dbus.xml extension to .dbus-xml
Work around gyp's inability to handle compound extensions by expecting
a similar looking simple extension for XML files definine DBus
interfaces. We'll need to rename these sources in the places we're
using them already.
Bug: 23380180
Change-Id: Ieb2050f3ef05456cd70de65c3e128d57a6a508f8
diff --git a/core/binary.mk b/core/binary.mk
index 61cdcfe..01c8858 100644
--- a/core/binary.mk
+++ b/core/binary.mk
@@ -619,9 +619,9 @@
endif # $(proto_sources) non-empty
###########################################################
-## Compile the .dbus.xml files to c++ headers
+## Compile the .dbus-xml files to c++ headers
###########################################################
-dbus_definitions := $(filter %.dbus.xml,$(my_src_files))
+dbus_definitions := $(filter %.dbus-xml,$(my_src_files))
dbus_generated_headers :=
ifneq ($(dbus_definitions),)
@@ -636,7 +636,7 @@
dbus_headers := dbus-proxies.h
else
dbus_header_dir := $(dbus_gen_dir)
-dbus_headers := $(patsubst %.dbus.xml,%.h,$(dbus_definitions))
+dbus_headers := $(patsubst %.dbus-xml,%.h,$(dbus_definitions))
endif
dbus_generated_headers := $(addprefix $(dbus_header_dir)/,$(dbus_headers))
@@ -655,7 +655,7 @@
my_export_c_include_dirs += $(dbus_gen_dir)/include
my_c_includes += $(dbus_gen_dir)/include
else
-$(dbus_generated_headers) : $(dbus_header_dir)/%.h : $(LOCAL_PATH)/%.dbus.xml
+$(dbus_generated_headers) : $(dbus_header_dir)/%.h : $(LOCAL_PATH)/%.dbus-xml
$(generate-dbus-adaptors)
my_export_c_include_dirs += $(dbus_header_dir)