mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 15:55:31 +00:00
Move the fixup tool from the parser to the generator folder
The parser will be going away at some point in the future, but we will still need the fixup step. And the fixup step is really more of a preliminary step for the generator anyway.
This commit is contained in:
parent
ac9da8d4aa
commit
2d83fb3073
|
@ -23,12 +23,12 @@ EXTRA_DIST = $(RAW_API) $(SYMBOLS) $(ASSEMBLY).config.in $(METADATA) $(sources)
|
|||
|
||||
build_symbols = $(addprefix --symbols=$(srcdir)/, $(SYMBOLS))
|
||||
|
||||
$(API): $(METADATA) $(RAW_API) $(SYMBOLS) $(top_builddir)/parser/gapi-fixup.exe
|
||||
$(API): $(METADATA) $(RAW_API) $(SYMBOLS) $(top_builddir)/generator/gapi-fixup.exe
|
||||
cp $(srcdir)/$(RAW_API) $(API)
|
||||
chmod u+w $(API)
|
||||
@if test -n '$(METADATA)'; then \
|
||||
echo "$(RUNTIME) $(top_builddir)/parser/gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA) $(build_symbols)"; \
|
||||
$(RUNTIME) $(top_builddir)/parser/gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA) $(build_symbols); \
|
||||
echo "$(RUNTIME) $(top_builddir)/generator/gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA) $(build_symbols)"; \
|
||||
$(RUNTIME) $(top_builddir)/generator/gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA) $(build_symbols); \
|
||||
fi
|
||||
|
||||
api_includes = $(addprefix -I:, $(INCLUDE_API))
|
||||
|
|
|
@ -217,10 +217,10 @@ policy.config
|
|||
sources/Makefile
|
||||
parser/Makefile
|
||||
parser/gapi-3.0.pc
|
||||
parser/gapi3-fixup
|
||||
parser/gapi3-parser
|
||||
generator/Makefile
|
||||
generator/gapi3-codegen
|
||||
generator/gapi3-fixup
|
||||
glib/Makefile
|
||||
glib/glib-sharp-3.0.pc
|
||||
glib/glib-sharp.dll.config
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
assemblydir = $(prefix)/lib/gapi-3.0
|
||||
assembly_DATA = gapi_codegen.exe
|
||||
bin_SCRIPTS = gapi3-codegen
|
||||
CLEANFILES = gapi_codegen.exe
|
||||
DISTCLEANFILES = gapi3-codegen
|
||||
assembly_DATA = gapi-fixup.exe gapi_codegen.exe
|
||||
bin_SCRIPTS = gapi3-fixup gapi3-codegen
|
||||
CLEANFILES = gapi-fixup.exe gapi_codegen.exe
|
||||
DISTCLEANFILES = gapi3-fixup gapi3-codegen
|
||||
|
||||
references =
|
||||
|
||||
fixup_sources = \
|
||||
gapi-fixup.cs
|
||||
|
||||
sources = \
|
||||
AliasGen.cs \
|
||||
ArrayParameter.cs \
|
||||
|
@ -71,10 +74,14 @@ sources = \
|
|||
XmlElementExtensions.cs
|
||||
|
||||
build_sources = $(addprefix $(srcdir)/, $(sources))
|
||||
dist_sources = $(sources)
|
||||
build_fixup_sources = $(addprefix $(srcdir)/, $(fixup_sources))
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(dist_sources)
|
||||
$(sources) \
|
||||
$(fixup_sources)
|
||||
|
||||
gapi-fixup.exe: $(build_fixup_sources)
|
||||
$(CSC) $(CSFLAGS) -out:gapi-fixup.exe $(srcdir)/gapi-fixup.cs
|
||||
|
||||
gapi_codegen.exe: $(build_sources)
|
||||
$(CSC) $(CSFLAGS) -out:gapi_codegen.exe $(OFF_T_FLAGS) $(references) $(build_sources)
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
assemblydir = $(prefix)/lib/gapi-3.0
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
assembly_DATA = gapi-fixup.exe gapi-parser.exe
|
||||
assembly_DATA = gapi-parser.exe
|
||||
pkgconfig_DATA = gapi-3.0.pc
|
||||
bin_SCRIPTS = gapi3-fixup gapi3-parser
|
||||
bin_SCRIPTS = gapi3-parser
|
||||
assembly_SCRIPTS = gapi_pp.pl gapi2xml.pl
|
||||
CLEANFILES = gapi-fixup.exe gapi-parser.exe
|
||||
DISTCLEANFILES = gapi3-fixup gapi3-parser gapi-3.0.pc
|
||||
CLEANFILES = gapi-parser.exe
|
||||
DISTCLEANFILES = gapi3-parser gapi-3.0.pc
|
||||
|
||||
sources = \
|
||||
gapi-fixup.cs \
|
||||
gapi-parser.cs
|
||||
|
||||
EXTRA_DIST = \
|
||||
|
@ -18,9 +17,6 @@ EXTRA_DIST = \
|
|||
gapi2xml.pl \
|
||||
gapi-3.0.pc.in
|
||||
|
||||
gapi-fixup.exe: $(srcdir)/gapi-fixup.cs
|
||||
$(CSC) $(CSFLAGS) -out:gapi-fixup.exe $(srcdir)/gapi-fixup.cs
|
||||
|
||||
gapi-parser.exe: $(srcdir)/gapi-parser.cs
|
||||
$(CSC) $(CSFLAGS) -out:gapi-parser.exe $(srcdir)/gapi-parser.cs
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ generated/*.cs: opaque-api.xml
|
|||
|
||||
api:
|
||||
PATH=../../parser:$(PATH) $(RUNTIME) ../../parser/gapi-parser.exe opaque-sources.xml
|
||||
$(RUNTIME) ../../parser/gapi-fixup.exe --metadata=Opaque.metadata --api=opaque-api.xml
|
||||
$(RUNTIME) ../../generator/gapi-fixup.exe --metadata=Opaque.metadata --api=opaque-api.xml
|
||||
|
||||
install:
|
||||
|
||||
|
|
Loading…
Reference in a new issue