This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
svn path=/trunk/gnome-desktop-sharp/; revision=88030
- Loading branch information
0 parents
commit 628c380
Showing
19 changed files
with
1,445 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Mike Kestner <mkestner@novell.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly:AssemblyVersion("@API_VERSION@")] | ||
[assembly:AssemblyDelaySign(false)] | ||
[assembly:AssemblyKeyFile("gtk-sharp.snk")] | ||
[assembly:GLib.IgnoreClassInitializers] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Before beginning work on something, please post your intentions to the | ||
mailing list (gtk-sharp-list@ximian.com). Duplication of effort just gets | ||
folks cranky in general. | ||
|
||
Prior to checking anything into svn, please send a patch to the mailing list | ||
for approval. Any patches should be submitted in diff -u format. Also, it is | ||
assumed that the submitter has verified that the patch does not break the | ||
build, and hopefully that it doesn't break runtime. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SUBDIRS = sources gnomedesktop #sample | ||
|
||
EXTRA_DIST = \ | ||
gtk-sharp.snk \ | ||
gapi-cdecl-insert \ | ||
AssemblyInfo.cs.in \ | ||
ChangeLog \ | ||
HACKING \ | ||
README | ||
|
||
configure.in: bootstrap.status configure.in.in | ||
$(SHELL) $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
SNK = gtk-sharp.snk | ||
API = $(pkg)-api.xml | ||
RAW_API = $(pkg)-api.raw | ||
|
||
ASSEMBLY_NAME = $(pkg)-sharp | ||
ASSEMBLY = $(ASSEMBLY_NAME).dll | ||
|
||
TARGET = $(pkg:=-sharp.dll) $(pkg:=-sharp.dll.config) $(POLICY_ASSEMBLIES) | ||
noinst_DATA = $(TARGET) | ||
TARGET_API = $(pkg:=-api.xml) | ||
gapidir = $(datadir)/gapi-2.0 | ||
gapi_DATA = $(TARGET_API) | ||
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(POLICY_ASSEMBLIES) generated-stamp generated/*.cs $(API) glue/generated.c $(SNK) AssemblyInfo.cs $(POLICY_CONFIGS) | ||
DISTCLEANFILES = $(ASSEMBLY).config | ||
|
||
POLICY_ASSEMBLIES = $(addsuffix .$(ASSEMBLY), $(addprefix policy., $(POLICY_VERSIONS))) | ||
POLICY_CONFIGS = $(addsuffix .config, $(addprefix policy., $(POLICY_VERSIONS))) | ||
|
||
EXTRA_DIST = $(RAW_API) $(SYMBOLS) $(ASSEMBLY).config.in $(METADATA) $(customs) $(sources) $(add_dist) | ||
|
||
build_symbols = $(addprefix --symbols=$(srcdir)/, $(SYMBOLS)) | ||
|
||
$(API): $(METADATA) $(RAW_API) $(SYMBOLS) | ||
cp $(srcdir)/$(RAW_API) $(API) | ||
chmod u+w $(API) | ||
@if test -n '$(METADATA)'; then \ | ||
echo "$(GAPI_FIXUP) --api=$(API) --metadata=$(srcdir)/$(METADATA) $(build_symbols)"; \ | ||
$(GAPI_FIXUP) --api=$(API) --metadata=$(srcdir)/$(METADATA) $(build_symbols); \ | ||
fi | ||
|
||
build_customs = $(addprefix $(srcdir)/, $(customs)) | ||
api_includes = $(GTKSHARP_CFLAGS) $(addprefix -I:, $(INCLUDE_API)) | ||
|
||
generated-stamp: $(API) $(INCLUDE_API) $(build_customs) | ||
rm -f generated/* && \ | ||
$(GAPI_CODEGEN) --generate $(API) \ | ||
$(api_includes) \ | ||
--outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \ | ||
--gluelib-name=$(pkg)sharpglue-2 --glue-filename=glue/generated.c \ | ||
--glue-includes=$(glue_includes) \ | ||
&& touch generated-stamp | ||
|
||
$(SNK): $(top_srcdir)/$(SNK) | ||
cp $(top_srcdir)/$(SNK) . | ||
|
||
AssemblyInfo.cs: $(top_builddir)/AssemblyInfo.cs | ||
cp $(top_builddir)/AssemblyInfo.cs . | ||
|
||
$(POLICY_ASSEMBLIES): $(top_builddir)/policy.config $(SNK) | ||
@for i in $(POLICY_VERSIONS); do \ | ||
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:$(SNK); \ | ||
done | ||
|
||
build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs | ||
build_references = $(GTKSHARP_LIBS) $(addprefix /r:, $(references)) $(MONO_CAIRO_LIBS) | ||
|
||
if PLATFORM_WIN32 | ||
GAPI_CDECL_INSERT=$(top_srcdir)/gapi-cdecl-insert --keyfile=$(SNK) $(ASSEMBLY) | ||
else | ||
GAPI_CDECL_INSERT= | ||
endif | ||
|
||
$(ASSEMBLY): generated-stamp $(SNK) $(build_sources) $(references) | ||
@rm -f $(ASSEMBLY).mdb | ||
$(CSC) $(CSFLAGS) -nowarn:0169,0612,0618 -unsafe -out:$(ASSEMBLY) -target:library $(build_references) $(GENERATED_SOURCES) $(build_sources) | ||
$(GAPI_CDECL_INSERT) | ||
|
||
install-data-local: | ||
@if test -n '$(pkg)'; 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 \ | ||
fi | ||
|
||
uninstall-local: | ||
@if test -n '$(pkg)'; 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 \ | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
try CNN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
The Gtk#/Gnome# website can be found at: http://mono-project.com/GtkSharp/ | ||
|
||
GnomeDesktop# is a .NET language binding for assorted GNOME libraries from the | ||
desktop release. GnomeDesktop# is free software, licensed under the GNU LGPL. | ||
|
||
Building & Installing GnomeDesktop#: | ||
--------------------------- | ||
|
||
The build is the traditional: | ||
|
||
./configure | ||
make | ||
make install | ||
|
||
Discussion & Support: | ||
--------------------- | ||
|
||
A mailing list for GnomeDesktop# discussion is available. | ||
|
||
You can subscribe to the mailing list by visiting: | ||
|
||
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list | ||
|
||
And following the instructions (on that page) to subscribe. | ||
Messages are posted on this mailing list by sending them to: | ||
|
||
gtk-sharp-list@ximian.com | ||
|
||
(The mailing list requires you to subscribe in order to post | ||
messages.) | ||
|
||
An archive of this mailing list can be found at: | ||
|
||
http://lists.ximian.com/archives/public/gtk-sharp-list/ | ||
|
||
Also, people can get help with and discuss Gtk# on IRC via the | ||
#mono channel on the irc.gnome.org IRC server. | ||
|
||
People looking for general help with C# should visit the | ||
#c# channel on irc.freenode.net IRC server. | ||
|
||
|
||
Developers: | ||
----------- | ||
|
||
For developers wishing to "get started" with Gnome#, they are encouraged | ||
to read the Mono Hand Book: | ||
|
||
http://www.mono-project.com/Monkeyguide | ||
|
||
Hackers: | ||
-------- | ||
|
||
For those who wish to help with the development of Gnome#, they should | ||
read the file named: HACKING. | ||
|
||
Also, anyone wishing to hack Gnome# is encouraged to join the Gtk# | ||
mailing list. And to visit the #mono IRC channel (on irc.gnome.org). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
# Run this to set configure.in up for an API version. | ||
|
||
GNOME_SHARP_VERSION=2.19.0 | ||
ASSEMBLY_VERSION=2.20.0.0 | ||
POLICY_VERSIONS= | ||
GTK_REQUIRED_VERSION=2.10.0 | ||
GNOME_REQUIRED_VERSION=2.20.0 | ||
VERSIONCSDEFINES= | ||
VERSIONCFLAGS= | ||
GNOME_API_TAG=2.20 | ||
|
||
. ./bootstrap-generic "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
#!/bin/sh | ||
# Run this to set configure.in up for an API version. | ||
|
||
if [ x"$GNOME_SHARP_VERSION" = x ] ; then | ||
echo "error: this script should not be run directly; use bootstrap instead" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
srcdir=`dirname $0` | ||
test -z "$srcdir" && srcdir=. | ||
|
||
cat >bootstrap.status <<EOF | ||
#!/bin/sh | ||
set -e | ||
set -x | ||
sed -e "s/@GNOME_SHARP_VERSION@/$GNOME_SHARP_VERSION/" \ | ||
-e "s/@GTK_REQUIRED_VERSION@/$GTK_REQUIRED_VERSION/" \ | ||
-e "s/@GNOME_REQUIRED_VERSION@/$GNOME_REQUIRED_VERSION/" \ | ||
-e "s/@VERSIONCSDEFINES@/$VERSIONCSDEFINES/" \ | ||
-e "s/@VERSIONCFLAGS@/$VERSIONCFLAGS/" \ | ||
-e "s/@POLICY_VERSIONS@/$POLICY_VERSIONS/" \ | ||
-e "s/@ASSEMBLY_VERSION@/$ASSEMBLY_VERSION/" $srcdir/configure.in.in > $srcdir/configure.in | ||
ln -f $srcdir/gnomedesktop/gnomedesktop-api-$GNOME_API_TAG.raw $srcdir/gnomedesktop/gnomedesktop-api.raw | ||
EOF | ||
|
||
chmod +x bootstrap.status | ||
./bootstrap.status | ||
|
||
DIE=0 | ||
|
||
(autoconf --version) < /dev/null > /dev/null 2>&1 || { | ||
echo | ||
echo "**Error**: You must have \`autoconf' installed to compile GnomeDesktop#." | ||
echo "Download the appropriate package for your distribution," | ||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" | ||
DIE=1 | ||
} | ||
|
||
if [ -z "$LIBTOOL" ]; then | ||
LIBTOOL=`which glibtool 2>/dev/null` | ||
if [ ! -x "$LIBTOOL" ]; then | ||
LIBTOOL=`which libtool` | ||
fi | ||
fi | ||
|
||
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && { | ||
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || { | ||
echo | ||
echo "**Error**: You must have \`libtool' installed to compile GnomeDesktop#." | ||
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz" | ||
echo "(or a newer version if it is available)" | ||
DIE=1 | ||
} | ||
} | ||
|
||
(automake --version) < /dev/null > /dev/null 2>&1 || { | ||
echo | ||
echo "**Error**: You must have \`automake' installed to compile GnomeDesktop#." | ||
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz" | ||
echo "(or a newer version if it is available)" | ||
DIE=1 | ||
NO_AUTOMAKE=yes | ||
} | ||
|
||
|
||
# if no automake, don't bother testing for aclocal | ||
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || { | ||
echo | ||
echo "**Error**: Missing \`aclocal'. The version of \`automake'" | ||
echo "installed doesn't appear recent enough." | ||
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz" | ||
echo "(or a newer version if it is available)" | ||
DIE=1 | ||
} | ||
|
||
if test "$DIE" -eq 1; then | ||
exit 1 | ||
fi | ||
|
||
if test -z "$*"; then | ||
echo "**Warning**: I am going to run \`configure' with no arguments." | ||
echo "If you wish to pass any to it, please specify them on the" | ||
echo \`$0\'" command line." | ||
echo | ||
fi | ||
|
||
case $CC in | ||
xlc ) | ||
am_opt=--include-deps;; | ||
esac | ||
|
||
|
||
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then | ||
if test -z "$NO_LIBTOOLIZE" ; then | ||
echo "Running libtoolize..." | ||
libtoolize --force --copy | ||
fi | ||
fi | ||
|
||
echo "Running aclocal $ACLOCAL_FLAGS ..." | ||
aclocal $ACLOCAL_FLAGS || { | ||
echo | ||
echo "**Error**: aclocal failed. This may mean that you have not" | ||
echo "installed all of the packages you need, or you may need to" | ||
echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\"" | ||
echo "for the prefix where you installed the packages whose" | ||
echo "macros were not found" | ||
exit 1 | ||
} | ||
|
||
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then | ||
echo "Running autoheader..." | ||
autoheader || { echo "**Error**: autoheader failed."; exit 1; } | ||
fi | ||
|
||
echo "Running automake --foreign $am_opt ..." | ||
automake --add-missing --foreign $am_opt || | ||
{ echo "**Error**: automake failed."; exit 1; } | ||
echo "Running autoconf ..." | ||
autoconf || { echo "**Error**: autoconf failed."; exit 1; } | ||
|
||
|
||
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c | ||
|
||
if test x$NOCONFIGURE = x; then | ||
echo Running $srcdir/configure $conf_flags "$@" ... | ||
$srcdir/configure $conf_flags "$@" \ | ||
&& echo Now type \`make\' to compile $PKG_NAME || exit 1 | ||
else | ||
echo Skipping configure process. | ||
fi |
Oops, something went wrong.