Re: [PATCH xserver 4/4] meson: Move the BUILD_DATE/TIME setup to configure time.

2017-09-13 Thread Adam Jackson
On Fri, 2017-09-01 at 12:22 -0700, Eric Anholt wrote:
> By having it as a custom_target with build_always, every "ninja -C
> build" would rebuild Xorg for the new date/time, even if the rest of
> Xorg didn't change.
> 
> We could build the rest of Xorg into a static lib, and regenerate
> date/time when the static lib changes and link that into a final Xorg,
> but BUILD_DATE/TIME is such a dubious feature (compared to including a
> git sha, which is easy with meson) it doesn't seem worth the build
> time cost.
> 
> Signed-off-by: Eric Anholt 

remote: I: patch #174852 updated using rev 
937ed782ae5e4e0da739f0630d1681b3754f0281.
remote: I: patch #174851 updated using rev 
2b080a14c87fc9e5f77fc3361297ac332aa04f02.
remote: I: patch #174854 updated using rev 
05e7e8b587dd9d37e8beadc72ab993f028c47fa1.
remote: I: patch #174853 updated using rev 
5abaa50b292798370a665ace5eec56fd830be226.
remote: I: 4 patch(es) updated to state Accepted.
To ssh://git.freedesktop.org/git/xorg/xserver
   a49379b604..5abaa50b29  master -> master

- ajax
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

[PATCH xserver 4/4] meson: Move the BUILD_DATE/TIME setup to configure time.

2017-09-01 Thread Eric Anholt
By having it as a custom_target with build_always, every "ninja -C
build" would rebuild Xorg for the new date/time, even if the rest of
Xorg didn't change.

We could build the rest of Xorg into a static lib, and regenerate
date/time when the static lib changes and link that into a final Xorg,
but BUILD_DATE/TIME is such a dubious feature (compared to including a
git sha, which is easy with meson) it doesn't seem worth the build
time cost.

Signed-off-by: Eric Anholt 
---
 hw/xfree86/common/meson.build | 6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/hw/xfree86/common/meson.build b/hw/xfree86/common/meson.build
index 6ed3f51242c3..e734b3ce29d2 100644
--- a/hw/xfree86/common/meson.build
+++ b/hw/xfree86/common/meson.build
@@ -65,11 +65,9 @@ if get_option('pciaccess')
 srcs_xorg_common += ['xf86pciBus.c', 'xf86VGAarbiter.c']
 endif
 
-srcs_xorg_common += custom_target(
-'xf86Build.h',
+srcs_xorg_common += configure_file(
 output: 'xf86Build.h',
-command: [join_paths(meson.current_source_dir(), 'xf86Build.sh'), 
'@OUTPUT@'],
-build_always: true,
+command: ['sh', join_paths(meson.current_source_dir(), 'xf86Build.sh'), 
'@OUTPUT@'],
 )
 
 srcs_xorg_common += custom_target(
-- 
2.14.1

___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel