2004-03-12 21:18:11 +00:00
|
|
|
SUBDIRS = glue
|
|
|
|
|
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
|
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
|
|
|
|
pkgconfig_DATA = glib-sharp-2.0.pc
|
2005-09-22 04:26:52 +00:00
|
|
|
|
|
|
|
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk AssemblyInfo.cs $(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 =
|
|
|
|
|
|
|
|
sources = \
|
2004-12-21 19:47:55 +00:00
|
|
|
Argv.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
Boxed.cs \
|
2005-03-23 20:39:18 +00:00
|
|
|
CDeclCallbackAttribute.cs \
|
2004-12-23 22:59:59 +00:00
|
|
|
ClassInitializerAttribute.cs \
|
2004-03-16 19:43:04 +00:00
|
|
|
ConnectBeforeAttribute.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
DefaultSignalHandlerAttribute.cs \
|
|
|
|
DelegateWrapper.cs \
|
2005-05-04 11:47:25 +00:00
|
|
|
DestroyNotify.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
EnumWrapper.cs \
|
2007-03-06 20:10:15 +00:00
|
|
|
ExceptionManager.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
FileUtils.cs \
|
|
|
|
GException.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 \
|
2004-03-12 21:18:11 +00:00
|
|
|
IWrapper.cs \
|
|
|
|
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 \
|
2005-01-28 16:44:30 +00:00
|
|
|
NotifyHandler.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
Object.cs \
|
|
|
|
ObjectManager.cs \
|
|
|
|
Opaque.cs \
|
2004-11-18 20:31:22 +00:00
|
|
|
PropertyAttribute.cs \
|
2005-02-02 21:57:15 +00:00
|
|
|
Signal.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
SignalArgs.cs \
|
|
|
|
SignalAttribute.cs \
|
|
|
|
SignalCallback.cs \
|
|
|
|
SList.cs \
|
|
|
|
Source.cs \
|
|
|
|
Thread.cs \
|
|
|
|
Timeout.cs \
|
2007-02-16 16:18:59 +00:00
|
|
|
ToggleRef.cs \
|
2004-03-12 21:18:11 +00:00
|
|
|
TypeConverter.cs \
|
|
|
|
TypeFundamentals.cs \
|
|
|
|
UnwrappedObject.cs \
|
|
|
|
ValueArray.cs \
|
2005-03-12 22:19:44 +00:00
|
|
|
Value.cs \
|
|
|
|
WeakObject.cs
|
2004-03-12 21:18:11 +00:00
|
|
|
|
2005-08-25 20:59:21 +00:00
|
|
|
build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs
|
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 \
|
2005-09-23 22:36:33 +00:00
|
|
|
glib-sharp-2.0.pc.in \
|
2004-03-12 21:18:11 +00:00
|
|
|
makefile.win32
|
|
|
|
|
2004-06-10 19:45:20 +00:00
|
|
|
gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
|
|
|
|
cp $(top_srcdir)/gtk-sharp.snk .
|
2004-05-01 03:38:54 +00:00
|
|
|
|
2005-08-25 22:32:18 +00:00
|
|
|
AssemblyInfo.cs: $(top_builddir)/AssemblyInfo.cs
|
|
|
|
cp $(top_builddir)/AssemblyInfo.cs .
|
2005-08-25 20:59:21 +00:00
|
|
|
|
|
|
|
if PLATFORM_WIN32
|
|
|
|
GAPI_CDECL_INSERT=$(top_srcdir)/gapi-cdecl-insert --keyfile=gtk-sharp.snk $(ASSEMBLY)
|
|
|
|
else
|
|
|
|
GAPI_CDECL_INSERT=
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(ASSEMBLY): $(build_sources) gtk-sharp.snk AssemblyInfo.cs
|
2005-04-11 14:56:29 +00:00
|
|
|
@rm -f $(ASSEMBLY).mdb
|
2005-08-25 20:59:21 +00:00
|
|
|
$(CSC) $(CSFLAGS) -nowarn:0169,0612,0618 -out:$(ASSEMBLY) -target:library $(references) $(build_sources)
|
|
|
|
$(GAPI_CDECL_INSERT)
|
2004-03-12 21:18:11 +00:00
|
|
|
|
2005-09-22 04:26:52 +00:00
|
|
|
$(POLICY_ASSEMBLIES): $(top_builddir)/policy.config gtk-sharp.snk
|
2005-10-09 18:55:31 +00:00
|
|
|
@for i in $(POLICY_VERSIONS); do \
|
2005-09-22 04:26:52 +00:00
|
|
|
echo "Creating policy.$$i.$(ASSEMBLY)"; \
|
|
|
|
sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@POLICY@/$$i/" $(top_builddir)/policy.config > policy.$$i.config; \
|
|
|
|
$(AL) -link:policy.$$i.config -out:policy.$$i.$(ASSEMBLY) -keyfile:gtk-sharp.snk; \
|
|
|
|
done
|
|
|
|
|
2004-05-01 03:38:54 +00:00
|
|
|
install-data-local:
|
2005-09-22 04:26:52 +00:00
|
|
|
@if test -n '$(TARGET)'; then \
|
|
|
|
echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \
|
|
|
|
if test -n '$(POLICY_VERSIONS)'; then \
|
|
|
|
for i in $(POLICY_VERSIONS); do \
|
|
|
|
echo "$(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \
|
|
|
|
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 \
|
|
|
|
echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
|
|
|
|
if test -n '$(POLICY_VERSIONS)'; then \
|
|
|
|
for i in $(POLICY_VERSIONS); do \
|
|
|
|
echo "$(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
|
|
|
|
done \
|
|
|
|
fi \
|
2004-05-03 21:05:51 +00:00
|
|
|
fi
|
2004-05-01 03:38:54 +00:00
|
|
|
|