Commit 52ab2cca authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

add binding for g_chmod

2007-11-25  Juerg Billeter  <j@bitron.ch>

	* vapi/glib-2.0.vapi: add binding for g_chmod

	* Makefile.am, configure.ac, gen-project/Makefile.am,
	  gen-project/valaprojectgenerator.vala: add vala-gen-project, a simple
	  gui for generating Vala projects, not built by default, requires GTK+

svn path=/trunk/; revision=719
parent b45f7843
2007-11-25 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add binding for g_chmod
* Makefile.am, configure.ac, gen-project/Makefile.am,
gen-project/valaprojectgenerator.vala: add vala-gen-project, a simple
gui for generating Vala projects, not built by default, requires GTK+
2007-11-25 Jürg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/gtk+-2.0.metadata: mark GtkTargetEntry as
......
......@@ -7,6 +7,12 @@ VAPIGEN_SUBDIRS = \
$(NULL)
endif
if ENABLE_GEN_PROJECT
GEN_PROJECT_SUBDIRS = \
gen-project \
$(NULL)
endif
SUBDIRS = \
gee \
ccode \
......@@ -16,7 +22,8 @@ SUBDIRS = \
vapi \
tests \
doc \
$(VAPIGEN_SUBDIRS)
$(VAPIGEN_SUBDIRS) \
$(GEN_PROJECT_SUBDIRS) \
$(NULL)
DIST_SUBDIRS = \
......@@ -30,6 +37,7 @@ DIST_SUBDIRS = \
doc \
gobject-introspection \
vapigen \
gen-project \
$(NULL)
pkgconfigdir = $(libdir)/pkgconfig
......
......@@ -29,7 +29,11 @@ AC_SUBST(LDFLAGS)
AC_ARG_ENABLE(vapigen, AS_HELP_STRING([--enable-vapigen], [Enable VAPI generator]), enable_vapigen=$enableval, enable_vapigen=no)
AM_CONDITIONAL(ENABLE_VAPIGEN, test x$enable_vapigen = xyes)
AC_ARG_ENABLE(gen-project, AS_HELP_STRING([--enable-gen-project], [Enable project generator]), enable_gen_project=$enableval, enable_gen_project=no)
AM_CONDITIONAL(ENABLE_GEN_PROJECT, test x$enable_gen_project = xyes)
GLIB_REQUIRED=2.12.0
GTK_REQUIRED=2.10.0
ENCHANT_REQUIRED=1.3.0
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
......@@ -47,6 +51,13 @@ PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GLIB_REQUIRED)
AC_SUBST(GTHREAD_CFLAGS)
AC_SUBST(GTHREAD_LIBS)
if test x$enable_gen_project = xyes; then
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
fi
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
AC_PATH_PROG([XSLTPROC], [xsltproc], :)
AM_CONDITIONAL(HAVE_XSLTPROC, test "$XSLTPROC" != :)
......@@ -70,6 +81,7 @@ AC_CONFIG_FILES([Makefile
gobject-introspection/Makefile
vapigen/Makefile
vapigen/vala-gen-introspect/Makefile
vapigen/vala-gen-introspect/vala-gen-introspect])
vapigen/vala-gen-introspect/vala-gen-introspect
gen-project/Makefile])
AC_OUTPUT
NULL =
INCLUDES = \
-I$(top_srcdir) \
$(GLIB_CFLAGS) \
$(GTK_CFLAGS) \
$(NULL)
BUILT_SOURCES = vala-gen-project.vala.stamp
bin_PROGRAMS = \
vala-gen-project \
$(NULL)
vala_gen_project_SOURCES = \
vala-gen-project.vala.stamp \
valaprojectgenerator.c \
valaprojectgenerator.h \
valaprojectgenerator.vala \
$(NULL)
vala-gen-project.vala.stamp: $(filter %.vala,$(vala_gen_project_SOURCES))
$(VALAC) --vapidir $(srcdir)/../vapi --pkg config --pkg gtk+-2.0 --basedir $(top_srcdir) $^
touch $@
vala_gen_project_CPPFLAGS = \
-include config.h \
-DPACKAGE_DATADIR=\"$(pkgdatadir)\"
vala_gen_project_LDADD = \
$(GLIB_LIBS) \
$(GTK_LIBS) \
$(NULL)
EXTRA_DIST = vala-gen-project.vala.stamp
This diff is collapsed.
......@@ -1773,6 +1773,8 @@ namespace GLib {
public static int rename (string oldfilename, string newfilename);
[CCode (cname = "g_unlink")]
public static int unlink (string filename);
[CCode (cname = "g_chmod")]
public static int chmod (string filename, int mode);
[CCode (cname = "symlink")]
public static int symlink (string! oldpath, string! newpath);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment