.anjuta*
*exe
make_installer.sh
+resources.rc
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
+m4_define(maj, 0)
+m4_define(min, 0)
+m4_define(mic, 1)
+
AC_PREREQ([2.65])
-AC_INIT([organigramma], [0.0.1], [azagli@libero.it])
+AC_INIT([organigramma], [maj.min.mic], [azagli@libero.it])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADER([config.h])
# Checks for library functions.
+dnl ******************************
+dnl Check for Operating System
+dnl ******************************
+
+platform_win32=no
+
+case "$host" in
+*-mingw*)
+ platform_win32=yes
+ AC_CHECK_TOOL(WINDRES, windres, windres)
+ AC_SUBST(WINDRES)
+ ;;
+esac
+
+AM_CONDITIONAL(PLATFORM_WIN32, [test $platform_win32 = yes])
+
+AC_SUBST(V_MAJOR, maj)
+AC_SUBST(V_MINOR, min)
+AC_SUBST(V_MICRO, mic)
+
AC_CONFIG_FILES([
liborganigramma.pc
Makefile
src/Makefile
+ src/resources.rc
libreria/Makefile
data/Makefile
data/organigramma/Makefile
LIBS = $(ORGANIGRAMMA_LIBS) \
-export-dynamic
+.rc.o:
+ $(WINDRES) $^ -o $@
+
+resources.o: resources.rc
+ $(WINDRES) $^ -o $@
+
bin_PROGRAMS = organigramma
marshal.c: marshal.h organigramma_marshal.list $(GLIB_GENMARSHAL)
ufficiorecapito.c \
ufficiorecapito.h \
ufficiostanza.c \
- ufficiostanza.h
\ No newline at end of file
+ ufficiostanza.h
+
+if PLATFORM_WIN32
+EXTRALDFLAGS=-mconsole -mwindows
+organigramma_SOURCES += resources.rc
+else
+EXTRALDFLAGS=
+endif
+
+organigramma_LDFLAGS = $(EXTRALDFLAGS)
--- /dev/null
+AppIcon ICON "..\\data\\organigramma\\images\\organigramma.ico"
+
+1 VERSIONINFO
+FILEVERSION @V_MAJOR@,@V_MINOR@,@V_MICRO@,0
+PRODUCTVERSION @V_MAJOR@,@V_MINOR@,@V_MICRO@,0
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904E4"
+ BEGIN
+ VALUE "CompanyName", "Andrea Zagli"
+ VALUE "FileDescription", "Organigramma"
+ VALUE "FileVersion", "@V_MAJOR@.@V_MINOR@.@V_MICRO@"
+ VALUE "InternalName", "organigramma"
+ VALUE "LegalCopyright", "Copyright 2013 Andrea Zagli <a.zagli@comune.scandicci.fi.it>"
+ VALUE "OriginalFilename", "organigramma.exe"
+ VALUE "ProductName", "Organigramma"
+ VALUE "ProductVersion", "@V_MAJOR@.@V_MINOR@.@V_MICRO@"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0410, 1252
+ END
+END