Add alternative variant for the display of __FILE__ (__path_file__)

- __path_file__ includes the relevant parts of source path


Origin commit data
------------------
Branch: ni/coolstream
Commit: 92a88906a5
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-04 (Sun, 04 Sep 2016)



------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-09-04 12:00:15 +02:00
parent 891ef16ea8
commit 06577e385c

View File

@@ -228,8 +228,10 @@ fi
# hack to define a short filename also for out-of-tree build
if test `dirname $0` = `pwd`; then
HWLIB_CFLAGS="$HWLIB_CFLAGS "'-D__file__=__FILE__'
HWLIB_CFLAGS="$HWLIB_CFLAGS "'-D__path_file__=__FILE__'
else
HWLIB_CFLAGS="$HWLIB_CFLAGS "'-D__file__="\"$(subst $(srcdir)/,,$(abspath $<))\""'
HWLIB_CFLAGS="$HWLIB_CFLAGS "'-D__path_file__="\"$(subst $(top_srcdir)/,,$(abspath $<))\""'
fi
#
# Check for libtdservicedb - the new one - for testing only