ARI: Fix missing dependencies.
authorCorey Farrell <git@cfware.com>
Wed, 29 Apr 2015 11:46:44 +0000 (07:46 -0400)
committerCorey Farrell <git@cfware.com>
Wed, 29 Apr 2015 11:46:44 +0000 (07:46 -0400)
ARI modules that are generated by 'make ari-stubs' are all dependent on
res_ari_model.  Additionally some of the same modules depend on one or more
res_stasis_* modules.

ASTERISK-25027 #close
Reported by: Corey Farrell

Change-Id: I8e07fe7e81fedacb87232f2b6f8b5f47927b4153

21 files changed:
Makefile.moddir_rules
build_tools/get_moduleinfo
res/ari/ari_model_validators.c
res/ari/resource_channels.c
res/ari/resource_device_states.c
res/ari/resource_mailboxes.c
res/ari/resource_playbacks.c
res/ari/resource_recordings.c
res/res_ari_applications.c
res/res_ari_asterisk.c
res/res_ari_bridges.c
res/res_ari_channels.c
res/res_ari_device_states.c
res/res_ari_endpoints.c
res/res_ari_events.c
res/res_ari_mailboxes.c
res/res_ari_playbacks.c
res/res_ari_recordings.c
res/res_ari_sounds.c
rest-api-templates/ari_model_validators.c.mustache
rest-api-templates/res_ari_resource.c.mustache

index 673580d..3d3e6ad 100644 (file)
@@ -66,6 +66,7 @@ define MOD_ADD_SOURCE
 $$(if $$(filter $(1),$$(EMBEDDED_MODS)),modules.link,$(1).so): $$(subst $(3),$(5),$(2))
 $$(subst $(3),$(5),$(2)): _ASTCFLAGS+=$$(call MOD_ASTCFLAGS,$(1))
 .$(1).moduleinfo: MODULEINFO_EXTRA_OUTPUT=" $$(addprefix $$(SUBDIR)/,$$(subst $(3),$(5),$(2)) $$(subst $(3),$(4),$(2)))"
+.$(1).moduleinfo: $(2)
 
 clean:: clean-$(1)$(3)
 
@@ -148,12 +149,12 @@ dist-clean::
 
 .%.moduleinfo: %.c
        @echo "<member name=\"$*\" displayname=\"$(shell $(GREP) -e AST_MODULE_INFO $< | head -n 1 | cut -d '"' -f 2)\" remove_on_change=\"$(SUBDIR)/$*.o $(SUBDIR)/$*.i $(SUBDIR)/$*.so$(MODULEINFO_EXTRA_OUTPUT)\">" > $@
-       $(AWK) -f $(ASTTOPDIR)/build_tools/get_moduleinfo $< >> $@
+       $(AWK) -f $(ASTTOPDIR)/build_tools/get_moduleinfo $^ >> $@
        echo "</member>" >> $@
 
 .%.moduleinfo: %.cc
        @echo "<member name=\"$*\" displayname=\"$(shell $(GREP) -e AST_MODULE_INFO $< | head -n 1 | cut -d '"' -f 2)\" remove_on_change=\"$(SUBDIR)/$*.oo $(SUBDIR)/$*.ii $(SUBDIR)/$*.so$(MODULEINFO_EXTRA_OUTPUT)\">" > $@
-       $(AWK) -f $(ASTTOPDIR)/build_tools/get_moduleinfo $< >> $@
+       $(AWK) -f $(ASTTOPDIR)/build_tools/get_moduleinfo $^ >> $@
        echo "</member>" >> $@
 
 .moduleinfo:: $(addsuffix .moduleinfo,$(addprefix .,$(sort $(ALL_C_MODS) $(ALL_CC_MODS))))
index 92bc7e9..4dbb294 100644 (file)
@@ -1,3 +1,4 @@
 /\/\*\*\* MODULEINFO/ {printit=1; next}
-/\*\*\*\// {if (printit) exit}
+/<support_level>/ {if (gotsupportlevel) { next }; gotsupportlevel=1}
+/\*\*\*\// {printit=0}
 /.*/ {if (printit) print}
index db12f00..37d31a1 100644 (file)
@@ -24,7 +24,7 @@
  * !!!!!                               DO NOT EDIT                        !!!!!
  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  * This file is generated by a mustache template. Please see the original
- * template in rest-api-templates/ari_model_validators.h.mustache
+ * template in rest-api-templates/ari_model_validators.c.mustache
  */
 
 #include "asterisk.h"
index e35fc8b..2975601 100644 (file)
  */
 
 /*** MODULEINFO
-       <depend type="module">res_stasis_app_playback</depend>
+       <depend type="module">res_stasis_answer</depend>
+       <depend type="module">res_stasis_playback</depend>
+       <depend type="module">res_stasis_recording</depend>
+       <depend type="module">res_stasis_snoop</depend>
        <support_level>core</support_level>
  ***/
 
index 53a3683..6f68d52 100644 (file)
  * \author Kevin Harwell <kharwell@digium.com>
  */
 
+/*** MODULEINFO
+       <depend type="module">res_stasis_device_states</depend>
+       <support_level>core</support_level>
+ ***/
+
 #include "asterisk.h"
 
 ASTERISK_REGISTER_FILE()
index de41338..f899ee4 100644 (file)
  * \author Jonathan Rose <jrose@digium.com>
  */
 
+/*** MODULEINFO
+       <depend type="module">res_stasis_mailbox</depend>
+       <support_level>core</support_level>
+ ***/
+
 #include "asterisk.h"
 #include "asterisk/stasis_app_mailbox.h"
 
index f610c6d..f2751f7 100644 (file)
  * \author David M. Lee, II <dlee@digium.com>
  */
 
+/*** MODULEINFO
+       <depend type="module">res_stasis_playback</depend>
+       <support_level>core</support_level>
+ ***/
+
 #include "asterisk.h"
 
 ASTERISK_REGISTER_FILE()
index e7e74ff..a49c3b1 100644 (file)
  * \author David M. Lee, II <dlee@digium.com>
  */
 
+/*** MODULEINFO
+       <depend type="module">res_stasis_recording</depend>
+       <support_level>core</support_level>
+ ***/
+
 #include "asterisk.h"
 
 ASTERISK_REGISTER_FILE()
index 04992c1..5d38616 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index df4d276..92f0133 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index 524b03d..72a3464 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index ef92b6b..a2305a5 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index 6d18b34..c4eff8c 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index e6c9d29..c23fbc6 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index 2c9c1d9..aea318d 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index 5eabbd2..0fe83c2 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index 8128bb9..a0fc29a 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index edc614f..61d23aa 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index 7c3528e..ea7f60a 100644 (file)
@@ -33,6 +33,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/
index 9d31671..be20515 100644 (file)
@@ -22,7 +22,7 @@
  /*
 {{> do-not-edit}}
  * This file is generated by a mustache template. Please see the original
- * template in rest-api-templates/ari_model_validators.h.mustache
+ * template in rest-api-templates/ari_model_validators.c.mustache
  */
 
 #include "asterisk.h"
index 896ee0d..4cc9e0d 100644 (file)
@@ -38,6 +38,7 @@
 
 /*** MODULEINFO
        <depend type="module">res_ari</depend>
+       <depend type="module">res_ari_model</depend>
        <depend type="module">res_stasis</depend>
        <support_level>core</support_level>
  ***/