From 08aff1fce83ddcd3622e3e47bfe4187976497929 Mon Sep 17 00:00:00 2001 From: Tom Gall Date: Thu, 6 Jun 2013 11:27:44 -0500 Subject: Fix waffle_version.h is properly generated as part of a normal android build when waffle is a dep of piglit. --- Android.mk | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Android.mk b/Android.mk index d66bed1..c1a55f2 100644 --- a/Android.mk +++ b/Android.mk @@ -13,15 +13,15 @@ waffle_patch_version := 75 waffle_android_major_version := $(word 1, $(subst ., , $(PLATFORM_VERSION))) waffle_android_minor_version := $(word 2, $(subst ., , $(PLATFORM_VERSION))) -$(waffle_top)/include/waffle_version.h: \ - $(waffle_top)/Android.mk \ - $(waffle_top)/include/waffle/waffle_version.h.in +WAFFLE_VERSION_H := $(waffle_top)/include/waffle/waffle_version.h +$(WAFFLE_VERSION_H): $(waffle_top)/include/waffle/waffle_version.h.in @echo "target Gen: libwaffle <= $(waffle_top)/include/waffle/waffle_version.h" @sed -e 's/@waffle_major_version@/$(waffle_major_version)/' \ -e 's/@waffle_minor_version@/$(waffle_minor_version)/' \ -e 's/@waffle_patch_version@/$(waffle_patch_version)/' \ - $(waffle_top)/include/waffle/waffle_version.h.in \ - > $(waffle_top)/include/waffle/waffle_version.h + $(waffle_top)/include/waffle/waffle_version.h.in > $(waffle_top)/include/waffle/waffle_version.h + +LOCAL_GENERATED_SOURCES += $(WAFFLE_VERSION_H) LOCAL_MODULE_TAGS := eng LOCAL_MODULE := libwaffle-$(waffle_major_version) @@ -80,9 +80,6 @@ LOCAL_SHARED_LIBRARIES := \ libutils \ libgui \ -LOCAL_GENERATED_SOURCES := \ - $(LOCAL_PATH)/include/waffle_version.h - LOCAL_COPY_HEADERS := \ include/waffle/waffle.h \ include/waffle/waffle_gbm.h \ -- cgit v1.2.3