hardware/intel/common/libva
修订版 | cfcd7c5e1a65a08b36ae3114f7248f5fb92ed64b (tree) |
---|---|
时间 | 2017-04-26 14:25:29 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
android: fix the rules to generate va_version.h
Android source tree has to be read-only. The generated files should
be put to the $(OUT)/gen/ dir. Besides, LOCAL_GENERATED_SOURCES must
be set before include $(BUILD_SHARED_LIBRARY). Otherwise it has no
effect.
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
@@ -82,19 +82,21 @@ LOCAL_COPY_HEADERS_TO := libva/va | ||
82 | 82 | |
83 | 83 | LOCAL_MODULE_TAGS := optional |
84 | 84 | LOCAL_MODULE := libva |
85 | +LOCAL_MODULE_CLASS := SHARED_LIBRARIES | |
85 | 86 | |
86 | 87 | LOCAL_SHARED_LIBRARIES := libdl libdrm libcutils liblog |
87 | 88 | |
88 | -include $(BUILD_SHARED_LIBRARY) | |
89 | +intermediates := $(call local-generated-sources-dir) | |
89 | 90 | |
90 | -GEN := $(LOCAL_PATH)/va_version.h | |
91 | +GEN := $(intermediates)/va/va_version.h | |
91 | 92 | $(GEN): SCRIPT := $(LOCAL_PATH)/../build/gen_version.sh |
92 | -$(GEN): PRIVATE_PATH := $(LOCAL_PATH) | |
93 | -$(GEN): PRIVATE_CUSTOM_TOOL = sh $(SCRIPT) $(PRIVATE_PATH)/.. $(PRIVATE_PATH)/va_version.h.in > $@ | |
94 | -$(GEN): $(LOCAL_PATH)/%.h : $(LOCAL_PATH)/%.h.in $(SCRIPT) $(LOCAL_PATH)/../configure.ac | |
93 | +$(GEN): PRIVATE_CUSTOM_TOOL = sh $(SCRIPT) $(<D)/.. $< > $@ | |
94 | +$(GEN): $(intermediates)/va/%.h : $(LOCAL_PATH)/%.h.in $(LOCAL_PATH)/../configure.ac | |
95 | 95 | $(transform-generated-source) |
96 | 96 | LOCAL_GENERATED_SOURCES += $(GEN) |
97 | 97 | |
98 | +include $(BUILD_SHARED_LIBRARY) | |
99 | + | |
98 | 100 | # For libva-android |
99 | 101 | # ===================================================== |
100 | 102 |