Commit graph

34 commits

Author SHA1 Message Date
David Schleef
e8af6da24a gst-project-maker: Create tools, pass make distcheck
Create a tools directory for an application.  Add source code
stubs to allow the project to compile and pass make distcheck.
Add notes in source code to tell the user how to create plugin
or app code using the other -maker scripts.
2012-02-20 18:13:47 -08:00
David Schleef
f3456aeaa1 gst-project-maker: Create autotools project
This is a replacement for gst-template that creates an entire
autotools project (customized to package name), and populates
it with the source for a GStreamer plugin (but no plugin features,
those come from gst-element-maker).  Fixes: #665727.
2012-02-19 15:54:39 -08:00
Vincent Penquerc'h
7521b597f4 various: fix pad template ref leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
2011-11-28 13:08:27 +00:00
Stefan Kost
c46725845b element-templates: improve the audiofilter template
Add comments. Add start/stop methods. Add (commented) instance casts at the
begin of the method. Make transform_ip returning FLOW_OK by default.
2011-05-18 10:31:38 +03:00
Stefan Kost
f76feeb632 element-maker: improve plugin_init()
Return the result of gst_element_register(). Use the TYPE macro instead of the
_get_type() function.
2011-05-18 10:31:38 +03:00
Tim-Philipp Müller
aaf14dd40a tools: disable new gst-element-maker test
It doesn't seem to work in an uninstalled setup, and
breaks make distcheck for me.
2011-04-27 23:43:03 +01:00
Stefan Kost
f478429895 element-maker: the broekn templates are not broekn, but dependencies
Rename the list and dist them. We need them for the actual templates.
2011-04-27 01:14:20 +03:00
Stefan Kost
bec03b8e19 element-maker: set CPPFLAGS to make templates using uninstalled headers work 2011-04-26 15:21:50 +03:00
Stefan Kost
f7f5946fd3 element-maker: fixup gobject template a bit but disable for now
The template contains things we already define by default.
2011-04-26 15:21:47 +03:00
Stefan Kost
795bf6c53b element-templates: fix templates
Use the object class and not the object in the init function. Set the vmethods.
Add default returns.
2011-04-26 15:21:07 +03:00
Stefan Kost
9bec684c3e element-maker: don't dist incomplete templates
Move not working templates to a separate variable to highlight the fact that
they need more work. These need at least the class and type fields filled.
2011-04-26 15:20:48 +03:00
Stefan Kost
c1e91cb168 element-maker-test: try to run element-maker for all templates
Add an easy way to check the element-maker templates.
2011-04-26 15:17:30 +03:00
Stefan Kost
e32a6f9471 element-maker: make it fail, when compilation fails 2011-04-26 15:17:29 +03:00
Stefan Kost
a161f901eb element-maker: allow to run from a different working directory
Get the dirname for the script and use that to reference the templates. Use the
templatedir variable to check for templates.
2011-04-26 03:42:55 -04:00
David Schleef
9f38ae9227 element-maker: lowercasify input
This allows using capitalized acronyms in class names, so using
"AVC_src" on the command line will create filename gstavcsrc.c,
class name GstAVCSrc, and symbol names gst_avc_src_*.
2011-04-24 19:40:09 -07:00
Tim-Philipp Müller
fb0222ea67 element-templates: clean up gobject template a bit
Remove pointless g_return_if_fail (G_IS_FOO (obj)) checks in
vfunc implementations. Comment out unused variables to avoid
warnings with gcc 4.6.
2011-04-15 00:24:47 +01:00
Tim-Philipp Müller
d82c63df98 element-maker: dist new videofilter2 template 2011-04-10 00:26:47 +01:00
Tim-Philipp Müller
581714bff0 baseparse: remove -bad version of baseparse library, now in core 2011-04-09 00:38:02 +01:00
David Schleef
02b15b4e8b element-maker: Add videofilter2 template 2011-04-08 15:51:04 -07:00
David Schleef
fedcf43e29 element-maker: do test build with -fPIC 2011-02-17 14:08:09 -08:00
David Schleef
5a1132aaf1 element-maker: Add baseparse template 2011-02-17 14:07:53 -08:00
David Schleef
07625c1b5d element-maker: Fix handling of debug category 2011-01-20 13:01:00 -08:00
David Schleef
a09078db4a element-maker: improve pushsrc 2011-01-05 18:27:04 -08:00
David Schleef
36a3688015 element-maker: Add debug category 2011-01-02 19:38:01 -08:00
David Schleef
a12dce1095 element-maker: Update FSF address 2010-12-31 00:37:54 -08:00
David Schleef
76b087b8b6 Add gst-app-maker 2010-12-31 00:37:30 -08:00
David Schleef
7ae4aaaee6 element-maker: Clean up directory 2010-12-15 12:47:02 -08:00
David Schleef
da1fe1e0dd element-maker: improve generation of several classes
Better creation of pads, test and fix many other classes.  Most
classes work now, although might not create functional elements.
2010-12-14 19:04:45 -08:00
David Schleef
0a624d92cf element-maker: Handle names with multiple underscores 2010-12-01 23:24:24 -08:00
David Schleef
7e8580c955 element-maker: Take parameters on command line
Now it's actually useful.
2010-09-06 03:25:16 -07:00
David Schleef
239bcffa56 element-maker: construct element names 2010-09-04 11:22:26 -07:00
David Schleef
8b3450882a element-maker: Fix up GstElement 2010-09-04 11:22:25 -07:00
David Schleef
fbbb708e9f tools: flesh out element-maker templates 2010-06-03 23:57:46 -07:00
David Schleef
f6f9563dc8 tools: Add element-maker
Add a script that creates elements based on any of the GStreamer
base classes.  It isn't very user friendly at the moment, one
needs to edit the script to make it work properly.  Each base class
has a template file describing what to put into the constructed
element.  Eventually, these templates should be moved to reside
with the base class source and installed to a well-known directory,
where an installed script could find them.

The template files use the .c ending so editors know they are C
source, but gst-indent doesn't handle them correctly.  So they
need to be committed with -n.  Ugh.  I'll try to figure out a fix
for that soon.
2010-04-14 16:43:23 -07:00