From 9c04a328f97257e951b382262a0c38f4438d46b3 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 11 Jan 2010 18:05:57 -0600 Subject: Adding in customs support --- bindings/mono/Makefile.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bindings') diff --git a/bindings/mono/Makefile.am b/bindings/mono/Makefile.am index 54e0b53..d8a0222 100644 --- a/bindings/mono/Makefile.am +++ b/bindings/mono/Makefile.am @@ -24,13 +24,17 @@ EXTRA_DIST = \ appindicator-sharp.dll.config.in \ app-indicator.sources.xml \ $(ASSEMBLY_NAME).snk \ - $(TEST_SOURCES) + $(TEST_SOURCES) \ + $(customs) GACUTIL_FLAGS="-package $(ASSEMBLY_NAME) -root $(DESTDIR)$(prefix)/lib" references = $(GTK_SHARP_LIBS) test_references = $(GTK_SHARP_LIBS) $(NUNIT_LIBS) -r:$(ASSEMBLY) +customs = myfile.custom +build_customs = $(addprefix $(srcdir)/, $(customs)) + $(RAW_API): app-indicator.sources.xml $(GAPI_PARSER) app-indicator.sources.xml @@ -63,9 +67,10 @@ $(API): $(MIDDLE_API) Makefile.am api_includes = $(GTK_SHARP_CFLAGS) -generated-stamp: $(API) +generated-stamp: $(API) $(build_customs) rm -f generated/* && \ $(GAPI_CODEGEN) --generate $(API) $(api_includes) \ + --customdir=$(srcdir) \ --outdir=generated --assembly-name=$(ASSEMBLY_NAME) \ && touch generated-stamp -- cgit v1.2.3