2022-08-29 05:37:16 +02:00
|
|
|
local _wrksrc="$wrksrc${build_wrksrc:+/$build_wrksrc}"
|
2022-08-24 03:24:03 +02:00
|
|
|
case "$build_style" in
|
|
|
|
cmake)
|
2022-10-23 02:32:23 +02:00
|
|
|
CFLAGS="${CFLAGS} -ffile-prefix-map=$_wrksrc/${cmake_builddir:-build}=."
|
|
|
|
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$_wrksrc/${cmake_builddir:-build}=."
|
2022-08-24 03:24:03 +02:00
|
|
|
;;
|
|
|
|
meson)
|
2022-10-23 02:32:23 +02:00
|
|
|
CFLAGS="${CFLAGS} -ffile-prefix-map=$_wrksrc/${meson_builddir:-build}=."
|
|
|
|
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$_wrksrc/${meson_builddir:-build}=."
|
2022-08-24 03:24:03 +02:00
|
|
|
;;
|
|
|
|
*)
|
2022-10-23 02:32:23 +02:00
|
|
|
CFLAGS="${CFLAGS} -ffile-prefix-map=$_wrksrc=."
|
|
|
|
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$_wrksrc=."
|
2022-08-24 03:24:03 +02:00
|
|
|
esac
|
2022-08-29 05:37:16 +02:00
|
|
|
|
|
|
|
unset _wrksrc
|