diff options
author | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-10-29 11:35:50 +0200 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@gmail.com> | 2010-12-21 11:29:35 +0800 |
commit | 68c5f603d868707488184146801b0d87782f0161 (patch) | |
tree | 1416b9859124e4973f4c34fbe8b9f840906c33ae /va/Android.mk | |
parent | 071658db3952cecf2c4eda424af231b1a07cd1bf (diff) |
Android: try to auto generate <va/version.h>
Diffstat (limited to 'va/Android.mk')
-rw-r--r-- | va/Android.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/va/Android.mk b/va/Android.mk index 494f7c7..d795c38 100644 --- a/va/Android.mk +++ b/va/Android.mk @@ -13,7 +13,16 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := \ va.c \ va_trace.c \ - va_fool.c + va_fool.c + +intermediates := $(local-intermediates-dir) +GEN := $(intermediates)/va_version.h +$(GEN): PRIVATE_GEN_VERSION := $(LOCAL_PATH)/../build/gen_version.sh +$(GEN): PRIVATE_INPUT_FILE := $(LOCAL_PATH)/va_version.h.in +$(GEN): PRIVATE_CUSTOM_TOOL = sh $(PRIVATE_GEN_VERSION) $(LOCAL_PATH)/.. $(PRIVATE_INPUT_FILE) > $@ +$(GEN): $(LOCAL_PATH)/va_version.h $(PRIVATE_GEN_VERSION) + $(transform-generated-source) +LOCAL_GENERATED_SOURCES += $(GEN) LOCAL_CFLAGS += \ -DANDROID \ |