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