codegen/override.py: Fix the lookup of override files in the specified search directories.
Original commit message from CVS: * codegen/override.py: Fix the lookup of override files in the specified search directories. * gst/Makefile.am: Don't distribute gstversion.override Fixup .defs => .c make instructions All the above fixes the cases where you're building in a directory different from the source directory.
This commit is contained in:
parent
d06c4740ef
commit
34d62eb035
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2006-11-22 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
|
* codegen/override.py:
|
||||||
|
Fix the lookup of override files in the specified search directories.
|
||||||
|
* gst/Makefile.am:
|
||||||
|
Don't distribute gstversion.override
|
||||||
|
Fixup .defs => .c make instructions
|
||||||
|
All the above fixes the cases where you're building in a directory
|
||||||
|
different from the source directory.
|
||||||
|
|
||||||
2006-11-15 Michael Smith <msmith@fluendo.com>
|
2006-11-15 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* gst/extend/discoverer.py:
|
* gst/extend/discoverer.py:
|
||||||
|
@ -44,7 +44,7 @@ class Overrides:
|
|||||||
self.defines = {}
|
self.defines = {}
|
||||||
self.functions = {}
|
self.functions = {}
|
||||||
self.newstyle_constructors = {}
|
self.newstyle_constructors = {}
|
||||||
self.path = path
|
self.path = [os.path.abspath(x) for x in path]
|
||||||
if filename:
|
if filename:
|
||||||
self.handle_file(filename)
|
self.handle_file(filename)
|
||||||
|
|
||||||
@ -54,15 +54,16 @@ class Overrides:
|
|||||||
fp = None
|
fp = None
|
||||||
for path in self.path:
|
for path in self.path:
|
||||||
os.chdir(oldpath)
|
os.chdir(oldpath)
|
||||||
os.chdir(os.path.abspath(path))
|
os.chdir(path)
|
||||||
try:
|
try:
|
||||||
fp = open(filename, 'r')
|
fp = open(filename, 'r')
|
||||||
|
break
|
||||||
except:
|
except:
|
||||||
continue
|
os.chdir(oldpath)
|
||||||
if not fp:
|
if not fp:
|
||||||
raise Exception, "Couldn't find file %s" % filename
|
raise Exception, "Couldn't find file %s" % filename
|
||||||
|
|
||||||
dirname = os.path.dirname(os.path.abspath(filename))
|
dirname = path
|
||||||
|
|
||||||
if dirname != oldpath:
|
if dirname != oldpath:
|
||||||
os.chdir(dirname)
|
os.chdir(dirname)
|
||||||
|
@ -51,7 +51,6 @@ _gst_la_SOURCES = \
|
|||||||
nodist__gst_la_SOURCES = gst.c
|
nodist__gst_la_SOURCES = gst.c
|
||||||
GST_OVERRIDES = \
|
GST_OVERRIDES = \
|
||||||
gst.override \
|
gst.override \
|
||||||
gstversion.override \
|
|
||||||
gstbin.override \
|
gstbin.override \
|
||||||
gstbuffer.override \
|
gstbuffer.override \
|
||||||
gstbus.override \
|
gstbus.override \
|
||||||
@ -87,13 +86,13 @@ EXTRA_DIST += $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES)
|
|||||||
interfaces.c: $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES) $(GEN_FILES)
|
interfaces.c: $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES) $(GEN_FILES)
|
||||||
|
|
||||||
.defs.c:
|
.defs.c:
|
||||||
(cd $(srcdir) \
|
($(PYTHON) $(top_srcdir)/codegen/codegen.py \
|
||||||
&& python $(top_srcdir)/codegen/codegen.py \
|
|
||||||
--load-types $(srcdir)/arg-types.py \
|
--load-types $(srcdir)/arg-types.py \
|
||||||
--register $(srcdir)/gst-types.defs \
|
--register $(srcdir)/gst-types.defs \
|
||||||
--override $*.override \
|
--override $(srcdir)/$*.override \
|
||||||
--extendpath $(top_builddir)/gst/ \
|
--extendpath $(top_builddir)/gst/ \
|
||||||
--prefix py$* $*.defs) > gen-$*.c \
|
--extendpath $(srcdir)/ \
|
||||||
|
--prefix py$* $<) > gen-$*.c \
|
||||||
&& cp gen-$*.c $*.c \
|
&& cp gen-$*.c $*.c \
|
||||||
&& rm -f gen-$*.c
|
&& rm -f gen-$*.c
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user