GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

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> 2007-11-25 Jürg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/gtk+-2.0.metadata: mark GtkTargetEntry as * vapi/packages/gtk+-2.0/gtk+-2.0.metadata: mark GtkTargetEntry as
......
...@@ -7,6 +7,12 @@ VAPIGEN_SUBDIRS = \ ...@@ -7,6 +7,12 @@ VAPIGEN_SUBDIRS = \
$(NULL) $(NULL)
endif endif
if ENABLE_GEN_PROJECT
GEN_PROJECT_SUBDIRS = \
gen-project \
$(NULL)
endif
SUBDIRS = \ SUBDIRS = \
gee \ gee \
ccode \ ccode \
...@@ -16,7 +22,8 @@ SUBDIRS = \ ...@@ -16,7 +22,8 @@ SUBDIRS = \
vapi \ vapi \
tests \ tests \
doc \ doc \
$(VAPIGEN_SUBDIRS) $(VAPIGEN_SUBDIRS) \
$(GEN_PROJECT_SUBDIRS) \
$(NULL) $(NULL)
DIST_SUBDIRS = \ DIST_SUBDIRS = \
...@@ -30,6 +37,7 @@ DIST_SUBDIRS = \ ...@@ -30,6 +37,7 @@ DIST_SUBDIRS = \
doc \ doc \
gobject-introspection \ gobject-introspection \
vapigen \ vapigen \
gen-project \
$(NULL) $(NULL)
pkgconfigdir = $(libdir)/pkgconfig pkgconfigdir = $(libdir)/pkgconfig
......
...@@ -29,7 +29,11 @@ AC_SUBST(LDFLAGS) ...@@ -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) 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) 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 GLIB_REQUIRED=2.12.0
GTK_REQUIRED=2.10.0
ENCHANT_REQUIRED=1.3.0 ENCHANT_REQUIRED=1.3.0
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED) 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) ...@@ -47,6 +51,13 @@ PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GLIB_REQUIRED)
AC_SUBST(GTHREAD_CFLAGS) AC_SUBST(GTHREAD_CFLAGS)
AC_SUBST(GTHREAD_LIBS) 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], :) AC_PATH_PROG([XSLTPROC], [xsltproc], :)
AM_CONDITIONAL(HAVE_XSLTPROC, test "$XSLTPROC" != :) AM_CONDITIONAL(HAVE_XSLTPROC, test "$XSLTPROC" != :)
...@@ -70,6 +81,7 @@ AC_CONFIG_FILES([Makefile ...@@ -70,6 +81,7 @@ AC_CONFIG_FILES([Makefile
gobject-introspection/Makefile gobject-introspection/Makefile
vapigen/Makefile vapigen/Makefile
vapigen/vala-gen-introspect/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 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 { ...@@ -1773,6 +1773,8 @@ namespace GLib {
public static int rename (string oldfilename, string newfilename); public static int rename (string oldfilename, string newfilename);
[CCode (cname = "g_unlink")] [CCode (cname = "g_unlink")]
public static int unlink (string filename); public static int unlink (string filename);
[CCode (cname = "g_chmod")]
public static int chmod (string filename, int mode);
[CCode (cname = "symlink")] [CCode (cname = "symlink")]
public static int symlink (string! oldpath, string! newpath); 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