2011-01-08 04:22:35 +01:00
|
|
|
SUBDIRS =
|
2004-03-12 22:18:11 +01:00
|
|
|
|
2011-01-08 05:15:04 +01:00
|
|
|
SNK = $(top_srcdir)/gtk-sharp.snk
|
2004-05-03 23:05:51 +02:00
|
|
|
TARGET = $(ASSEMBLY)
|
2004-05-01 05:38:54 +02:00
|
|
|
ASSEMBLY = $(ASSEMBLY_NAME).dll
|
|
|
|
ASSEMBLY_NAME = glib-sharp
|
2011-08-11 18:41:13 +02:00
|
|
|
ASSEMBLY_NAME_VERSION = $(ASSEMBLY_NAME),Version=$(API_VERSION)
|
2005-09-22 06:26:52 +02:00
|
|
|
noinst_DATA = $(ASSEMBLY) $(ASSEMBLY).config $(POLICY_ASSEMBLIES)
|
2005-09-24 00:36:33 +02:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2009-08-30 22:06:33 +02:00
|
|
|
pkgconfig_DATA = glib-sharp-3.0.pc
|
|
|
|
gapidir = $(datadir)/gapi-3.0
|
2007-12-06 18:23:28 +01:00
|
|
|
gapi_DATA = glib-api.xml
|
2005-09-22 06:26:52 +02:00
|
|
|
|
2011-02-09 17:05:40 +01:00
|
|
|
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(POLICY_ASSEMBLIES) $(POLICY_CONFIGS)
|
2005-01-09 01:26:45 +01:00
|
|
|
DISTCLEANFILES = $(ASSEMBLY).config
|
2004-03-12 22:18:11 +01:00
|
|
|
|
2005-09-22 06:26:52 +02:00
|
|
|
POLICY_ASSEMBLIES = $(addsuffix .$(ASSEMBLY), $(addprefix policy., $(POLICY_VERSIONS)))
|
|
|
|
POLICY_CONFIGS = $(addsuffix .config, $(addprefix policy., $(POLICY_VERSIONS)))
|
|
|
|
|
2004-03-12 22:18:11 +01:00
|
|
|
references =
|
|
|
|
|
|
|
|
sources = \
|
2004-12-21 20:47:55 +01:00
|
|
|
Argv.cs \
|
2004-03-16 20:43:04 +01:00
|
|
|
ConnectBeforeAttribute.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
DefaultSignalHandlerAttribute.cs \
|
2005-05-04 13:47:25 +02:00
|
|
|
DestroyNotify.cs \
|
2007-03-06 21:10:15 +01:00
|
|
|
ExceptionManager.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
FileUtils.cs \
|
|
|
|
GException.cs \
|
2007-09-11 22:34:24 +02:00
|
|
|
GInterfaceAdapter.cs \
|
|
|
|
GInterfaceAttribute.cs \
|
2008-04-04 20:45:13 +02:00
|
|
|
Global.cs \
|
2004-09-29 19:47:51 +02:00
|
|
|
GString.cs \
|
2005-05-04 18:54:24 +02:00
|
|
|
GType.cs \
|
|
|
|
GTypeAttribute.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
Idle.cs \
|
2006-05-10 19:13:30 +02:00
|
|
|
InitiallyUnowned.cs \
|
2007-11-12 18:27:35 +01:00
|
|
|
IOChannel.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
IWrapper.cs \
|
2011-04-14 21:31:33 +02:00
|
|
|
KeyFile.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
ListBase.cs \
|
|
|
|
List.cs \
|
|
|
|
Log.cs \
|
|
|
|
MainContext.cs \
|
2004-08-25 20:11:41 +02:00
|
|
|
MainLoop.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
ManagedValue.cs \
|
|
|
|
Markup.cs \
|
|
|
|
Marshaller.cs \
|
2004-05-18 07:06:10 +02:00
|
|
|
MissingIntPtrCtorException.cs \
|
2005-01-28 17:44:30 +01:00
|
|
|
NotifyHandler.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
Object.cs \
|
|
|
|
ObjectManager.cs \
|
|
|
|
Opaque.cs \
|
2008-12-19 19:57:42 +01:00
|
|
|
ParamSpec.cs \
|
2009-05-03 21:34:22 +02:00
|
|
|
Priority.cs \
|
2004-11-18 21:31:22 +01:00
|
|
|
PropertyAttribute.cs \
|
2008-11-04 21:17:00 +01:00
|
|
|
PtrArray.cs \
|
2005-02-02 22:57:15 +01:00
|
|
|
Signal.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
SignalArgs.cs \
|
|
|
|
SignalAttribute.cs \
|
2008-04-30 22:15:45 +02:00
|
|
|
SignalClosure.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
SList.cs \
|
|
|
|
Source.cs \
|
2007-11-12 18:27:35 +01:00
|
|
|
Spawn.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
Thread.cs \
|
|
|
|
Timeout.cs \
|
2007-02-16 17:18:59 +01:00
|
|
|
ToggleRef.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
TypeFundamentals.cs \
|
2007-09-07 16:40:46 +02:00
|
|
|
TypeInitializerAttribute.cs \
|
2004-03-12 22:18:11 +01:00
|
|
|
ValueArray.cs \
|
2011-01-22 19:52:38 +01:00
|
|
|
Value.cs \
|
2011-02-11 20:52:13 +01:00
|
|
|
Variant.cs \
|
|
|
|
VariantType.cs
|
2004-03-12 22:18:11 +01:00
|
|
|
|
2011-02-09 17:05:40 +01:00
|
|
|
build_sources = $(addprefix $(srcdir)/, $(sources)) $(top_builddir)/AssemblyInfo.cs
|
2004-03-12 22:18:11 +01:00
|
|
|
dist_sources = $(sources)
|
|
|
|
|
2004-04-29 17:00:24 +02:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(dist_sources) \
|
|
|
|
$(ASSEMBLY).config.in \
|
2009-08-30 22:06:33 +02:00
|
|
|
glib-sharp-3.0.pc.in \
|
2008-05-15 19:36:46 +02:00
|
|
|
glib-api.xml
|
2004-03-12 22:18:11 +01:00
|
|
|
|
2011-02-09 17:05:40 +01:00
|
|
|
$(ASSEMBLY): $(build_sources) $(SNK)
|
2005-04-11 16:56:29 +02:00
|
|
|
@rm -f $(ASSEMBLY).mdb
|
2011-03-23 20:05:01 +01:00
|
|
|
$(CSC) $(CSFLAGS) -keyfile:$(SNK) -unsafe -out:$(ASSEMBLY) -target:library $(references) $(build_sources)
|
2004-03-12 22:18:11 +01:00
|
|
|
|
2009-01-24 05:47:54 +01:00
|
|
|
policy.%.config: $(top_builddir)/policy.config
|
|
|
|
sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@POLICY@/$*/" $(top_builddir)/policy.config > $@
|
|
|
|
|
2011-01-08 05:15:04 +01:00
|
|
|
$(POLICY_ASSEMBLIES) : policy.%.$(ASSEMBLY): policy.%.config $(SNK)
|
|
|
|
$(AL) -link:policy.$*.config -out:$@ -keyfile:$(SNK)
|
2005-09-22 06:26:52 +02:00
|
|
|
|
2004-05-01 05:38:54 +02:00
|
|
|
install-data-local:
|
2005-09-22 06:26:52 +02:00
|
|
|
@if test -n '$(TARGET)'; then \
|
2009-11-30 21:40:34 +01:00
|
|
|
echo "$(GACUTIL) -i $(ASSEMBLY) -f $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) -i $(ASSEMBLY) -f $(GACUTIL_FLAGS) || exit 1; \
|
2005-09-22 06:26:52 +02:00
|
|
|
if test -n '$(POLICY_VERSIONS)'; then \
|
|
|
|
for i in $(POLICY_VERSIONS); do \
|
2009-11-30 21:40:34 +01:00
|
|
|
echo "$(GACUTIL) -i policy.$$i.$(ASSEMBLY) -f $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) -i policy.$$i.$(ASSEMBLY) -f $(GACUTIL_FLAGS) || exit 1; \
|
2005-09-22 06:26:52 +02:00
|
|
|
done \
|
|
|
|
fi \
|
2004-05-03 23:05:51 +02:00
|
|
|
fi
|
2004-05-01 05:38:54 +02:00
|
|
|
|
|
|
|
uninstall-local:
|
2005-09-22 06:26:52 +02:00
|
|
|
@if test -n '$(TARGET)'; then \
|
2011-08-11 18:41:13 +02:00
|
|
|
echo "$(GACUTIL) -u $(ASSEMBLY_NAME_VERSION) $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) -u $(ASSEMBLY_NAME_VERSION) $(GACUTIL_FLAGS) || exit 1; \
|
2005-09-22 06:26:52 +02:00
|
|
|
if test -n '$(POLICY_VERSIONS)'; then \
|
|
|
|
for i in $(POLICY_VERSIONS); do \
|
2009-11-30 21:40:34 +01:00
|
|
|
echo "$(GACUTIL) -u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) -u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
|
2005-09-22 06:26:52 +02:00
|
|
|
done \
|
|
|
|
fi \
|
2004-05-03 23:05:51 +02:00
|
|
|
fi
|
2004-05-01 05:38:54 +02:00
|
|
|
|