| 1 |
## Copyright 2009 The gstreamermm Development Team |
| 2 |
## |
| 3 |
## This library is free software: you can redistribute it and/or modify it |
| 4 |
## under the terms of the GNU Lesser General Public License as published |
| 5 |
## by the Free Software Foundation, either version 2.1 of the License, |
| 6 |
## or (at your option) any later version. |
| 7 |
## |
| 8 |
## This library is distributed in the hope that it will be useful, |
| 9 |
## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
## Lesser General Public License for more details. |
| 12 |
## |
| 13 |
## You should have received a copy of the GNU Lesser General Public License |
| 14 |
## along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 |
|
| 16 |
binding_name = gstreamermm |
| 17 |
wrap_init_flags = --namespace=Gst --parent_dir=gstreamermm |
| 18 |
codegen_srcdir = $(top_srcdir)/tools |
| 19 |
|
| 20 |
include $(srcdir)/plugin_filelist.am |
| 21 |
plugins_ccg = $(plugins_hg:.hg=.ccg) |
| 22 |
|
| 23 |
include $(srcdir)/filelist.am |
| 24 |
include $(top_srcdir)/tools/m4/filelist.am |
| 25 |
include $(top_srcdir)/build/generate-binding.am |
| 26 |
|
| 27 |
other_built_sources += |
| 28 |
MAINTAINERCLEANFILES += $(addprefix $(srcdir)/,$(plugins_ccg) $(plugins_hg)) |
| 29 |
|
| 30 |
generate_gst_wrap_init = $(codegen_srcdir)/generate_gst_wrap_init.pl |
| 31 |
|
| 32 |
generate_plugin_gmmproc_file = \ |
| 33 |
$(top_builddir)/tools/extra_defs_gen/generate_plugin_gmmproc_file$(EXEEXT) \ |
| 34 |
--namespace=Gst --main-defs=gst --target=gstreamermm |
| 35 |
generate_plugin_dependencies = \ |
| 36 |
$(codegen_srcdir)/extra_defs_gen/generate_plugin_gmmproc_file.cc \ |
| 37 |
$(addprefix $(codegen_m4_srcdir)/,$(files_plugin_m4)) |
| 38 |
|
| 39 |
target_hg_basename = $(basename $(notdir $@)) |
| 40 |
plugin_list = $(GSTREAMERMM_CORE_PLUGIN_DEFS) $(GSTREAMERMM_BASE_PLUGIN_DEFS) |
| 41 |
target_plugin_and_classname = $(wordlist 2,3,$(subst |, ,$(filter $(target_hg_basename)|%,$(plugin_list)))) |
| 42 |
|
| 43 |
# This is to generate plugin .ccg files. The generated .ccg file is piped |
| 44 |
# through m4 using the macros in tools/m4/ctocpp_base.m4 which then produces |
| 45 |
# the final .ccg file. |
| 46 |
$(addprefix $(srcdir)/,$(plugins_ccg)): $(generate_plugin_dependencies) |
| 47 |
$(AM_V_GEN)$(generate_plugin_gmmproc_file) --ccg \ |
| 48 |
$(target_plugin_and_classname) | $(M4) -I $(codegen_m4_srcdir) >$@ |
| 49 |
|
| 50 |
# This is to generate plugin .hg files. The generated .hg file is piped |
| 51 |
# through m4 using the macros in tools/m4/ctocpp_base.m4 which then produces |
| 52 |
# the final .hg file. |
| 53 |
$(addprefix $(srcdir)/,$(plugins_hg)): %.hg: %.ccg $(generate_plugin_dependencies) |
| 54 |
$(AM_V_GEN)$(generate_plugin_gmmproc_file) \ |
| 55 |
--hg $(target_plugin_and_classname) | $(M4) -I $(codegen_m4_srcdir) \ |
| 56 |
>$@ |