fix git build

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@539 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: adc62e8ebe
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-04-08 (Thu, 08 Apr 2010)



------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2010-04-08 13:09:08 +00:00
parent 67ed424903
commit ec78b1140d
2 changed files with 20 additions and 5 deletions

View File

@@ -1,8 +1,14 @@
AM_CPPFLAGS = -fno-rtti -fno-exceptions
#AM_CPPFLAGS = -fno-rtti
svn_version.h:
sleep 30 && rm svn_version.h & echo "#define SVNVERSION \"$$(svnversion -n || echo svn_oops!)\" " > svn_version.h
BUILT_SOURCES = svn_version.h
svn_version.h:
@if test -d .svn ; then \
sleep 180 && rm svn_version.h & echo "#define SVNVERSION \"$$(svnversion -n || echo svn_oops!)\" " > svn_version.h ; \
else \
sleep 180 && rm svn_version.h & echo '#define BUILT_DATE "'`date`'"' > svn_version.h ; \
fi
noinst_HEADERS = svn_version.h
@@ -25,14 +31,14 @@ INCLUDES = \
noinst_LIBRARIES = libtimerlist.a libneutrino_gui.a libneutrino_gui2.a
libneutrino_gui_a_SOURCES = \
bouquetlist.cpp channellist.cpp eventlist.cpp pluginlist.cpp \
imageinfo.cpp bouquetlist.cpp channellist.cpp eventlist.cpp pluginlist.cpp \
favorites.cpp sleeptimer.cpp screensetup.cpp \
epgview.cpp infoviewer.cpp scan.cpp update.cpp \
filebrowser.cpp audioplayer.cpp nfs.cpp pictureviewer.cpp \
movieplayer.cpp rc_lock.cpp bookmarkmanager.cpp \
timeosd.cpp epgplus.cpp epg_menu.cpp \
streaminfo2.cpp dboxinfo.cpp \
plugins.cpp imageinfo.cpp audio_select.cpp moviebrowser.cpp movieinfo.cpp
plugins.cpp audio_select.cpp moviebrowser.cpp movieinfo.cpp
libneutrino_gui2_a_SOURCES = \
color.cpp alphasetup.cpp motorcontrol.cpp hdd_menu.cpp cam_menu.cpp infoclock.cpp upnpbrowser.cpp

View File

@@ -39,6 +39,7 @@
#include "svn_version.h"
#define SVN_REV "SVN Rev.:"
#define GIT_REV "GIT Build:"
extern cVideo * videoDecoder;
extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
@@ -89,7 +90,11 @@ void CImageInfo::Init(void)
offset = tmpoffset;
}
}
#ifdef SVNVERSION
int off_tmp = g_Font[font_info]->getRenderWidth(SVN_REV);
#else
int off_tmp = g_Font[font_info]->getRenderWidth(GIT_REV);
#endif
if(off_tmp > offset)
offset = off_tmp;
@@ -207,9 +212,13 @@ void CImageInfo::paint()
paintLine(xpos+offset, font_info, releaseCycle);
ypos += iheight;
#ifdef SVNVERSION
paintLine(xpos , font_info, SVN_REV);
paintLine(xpos+offset, font_info, SVNVERSION );
#else
paintLine(xpos , font_info, GIT_REV);
paintLine(xpos+offset, font_info, BUILT_DATE );
#endif
ypos += iheight;
paintLine(xpos , font_info, g_Locale->getText(LOCALE_IMAGEINFO_CREATOR));
paintLine(xpos+offset, font_info, creator);