mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 05:55:35 +00:00
eea6465cf2
* generator/GenBase.cs: new method AppendCustom, moved from ObjectGen. * generator/BoxedGen.cs, ObjectGen.cs, StructGen.cs: Call AppendCustom in Generate (); * generator/Method.cs, Parameters.cs: Add support for "out" parameters. Additionally, output an accessor instead of a regular method if it is an accessor-style function (ie GetStartIter). * generator/Property.cs: Add additional cast to Boxed, if necessary. * glue/textiter.c: New constructor for GtkTextIter. * glue/Makefile.am: Add textiter.c, build with Gtk+ cflags. * configure.in: Check for Gtk+ cflags. * parser/Metadata.pm, Gtk.metadata: Added. * parser/gapi2xml.pl: Call Metadata::fixup on the document. Also work around gtk's screwy boxed type name registration (GtkFoo -> GtkTypeFoo). * gtk/TextIter.custom: Added. svn path=/trunk/gtk-sharp/; revision=5205
92 lines
2 KiB
Plaintext
92 lines
2 KiB
Plaintext
|
|
AC_INIT(README)
|
|
AC_CANONICAL_SYSTEM
|
|
AM_CONFIG_HEADER(config.h)
|
|
AM_INIT_AUTOMAKE(gtk-sharp, 0.2)
|
|
AM_MAINTAINER_MODE
|
|
|
|
AC_CHECK_TOOL(CC, gcc, gcc)
|
|
AC_PROG_CC
|
|
AM_PROG_CC_STDC
|
|
AC_PROG_INSTALL
|
|
|
|
dnl may require a specific autoconf version
|
|
dnl AC_PROG_CC_FOR_BUILD
|
|
dnl CC_FOR_BUILD not automatically detected
|
|
CC_FOR_BUILD=$CC
|
|
BUILD_EXEEXT=
|
|
if test "x$cross_compiling" = "xyes"; then
|
|
CC_FOR_BUILD=cc
|
|
BUILD_EXEEXT=""
|
|
fi
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
AC_SUBST(HOST_CC)
|
|
AC_SUBST(BUILD_EXEEXT)
|
|
|
|
# Set STDC_HEADERS
|
|
AC_HEADER_STDC
|
|
AM_PROG_LIBTOOL
|
|
|
|
# not 64 bit clean in cross-compile
|
|
AC_CHECK_SIZEOF(void *, 4)
|
|
|
|
CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
|
|
|
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|
if test "x$PKG_CONFIG" = "xno"; then
|
|
AC_MSG_ERROR([You need to install pkg-config])
|
|
fi
|
|
|
|
dnl for use on the build system
|
|
dnl pkg-config is stupid
|
|
BUILD_GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
|
|
BUILD_GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
|
|
AC_SUBST(BUILD_GTK_CFLAGS)
|
|
AC_SUBST(BUILD_GTK_LIBS)
|
|
|
|
PKG_PATH=
|
|
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
|
|
if test x$with_crosspkgdir = "x"; then
|
|
if test -s $PKG_CONFIG_PATH; then
|
|
PKG_PATH=$PKG_CONFIG_PATH
|
|
fi
|
|
else
|
|
PKG_PATH=$with_crosspkgdir
|
|
PKG_CONFIG_PATH=$PKG_PATH
|
|
export PKG_CONFIG_PATH
|
|
fi
|
|
)
|
|
|
|
## Versions of dependencies
|
|
GTK_REQUIRED_VERSION=2.0.0
|
|
|
|
PKG_CHECK_MODULES(BASE_DEPENDENCIES, gtk+-2.0 >= $GTK_REQUIRED_VERSION)
|
|
|
|
GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
|
|
GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
|
|
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
|
|
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
|
|
|
|
AC_SUBST(GTK_CFLAGS)
|
|
AC_SUBST(GTK_LIBS)
|
|
AC_SUBST(GMODULE_CFLAGS)
|
|
AC_SUBST(GMODULE_LIBS)
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_OUTPUT([
|
|
glue/Makefile
|
|
glib/Makefile
|
|
pango/Makefile
|
|
atk/Makefile
|
|
gdk/Makefile
|
|
gtk/Makefile
|
|
sample/Makefile
|
|
])
|
|
|
|
echo "
|
|
|
|
Now do a "make linux" or "make windows" to build Gtk#.
|
|
|
|
"
|