Install desktop on linux; compile in resource file on windows

This commit is contained in:
Yevgen Muntyan 2010-09-10 00:42:04 -07:00
parent e60e68226f
commit 1d2ebc3eb5
2 changed files with 19 additions and 4 deletions

View File

@ -34,9 +34,24 @@ if MOO_OS_WIN32
medit_LDFLAGS += -mwindows
endif
EXTRA_DIST += medit-app/medit.rc.in
if MOO_OS_WIN32
CLEANFILES += medit-app/medit.rc medit-app/medit.res
medit-app/medit.rc: medit-app/medit.rc.in $(top_builddir)/config.status
$(MKDIR_P) medit-app
cd $(top_builddir) && ./config.status --file=moo/medit-app/medit.rc
medit-app/medit.res: medit-app/medit.rc
$(WINDRES) -i medit-app/medit.rc --input-format=rc -o medit-app/medit.res -O coff
medit_LDADD += medit-app/medit.res
endif
EXTRA_DIST += medit-app/medit.desktop.in
# desktopdir = $(datadir)/applications
# desktop_DATA = medit.desktop.in
if MOO_OS_UNIX
desktopdir = $(datadir)/applications
desktop_DATA = medit.desktop
medit.desktop: medit-app/medit.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po)
LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
endif MOO_OS_UNIX
# MOO_WIN32_RESOURCE(medit.rc.in medit MEDIT_SOURCES medit_libs)

View File

@ -1,6 +1,6 @@
#include <windows.h>
A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "@MOO_SOURCE_DIR@/moo/mooutils/pixmaps/medit.ico"
A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "@top_srcdir@/moo/mooutils/pixmaps/medit.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION @MOO_MAJOR_VERSION@,@MOO_MINOR_VERSION@,@MOO_MICRO_VERSION@,0
@ -17,7 +17,7 @@ VS_VERSION_INFO VERSIONINFO
BEGIN
VALUE "CompanyName", "http://mooedit.sourceforge.net/"
VALUE "FileDescription", "medit"
VALUE "FileVersion", "@MOO_VERSION@.0"
VALUE "FileVersion", "@MOO_MAJOR_VERSION@.@MOO_MINOR_VERSION@.@MOO_MICRO_VERSION@.0"
VALUE "InternalName", "medit"
VALUE "LegalCopyright", "@MOO_COPYRIGHT@"
VALUE "OriginalFilename", "medit.exe"