Move configuration from Config.h to libbcc-config.mk
In order to avoid the excessive use of $(shell) in Android.mk,
this commit moves the configuration options to libbcc-config.mk,
automatically generate ConfigFromMk.h by calling
tools/gen-config-from-mk.
Change-Id: Ib5e9771dc9808f7bef2fa8da4db8e25c2a170c34
diff --git a/lib/Disassembler/Android.mk b/lib/Disassembler/Android.mk
index e8ed882..701f606 100644
--- a/lib/Disassembler/Android.mk
+++ b/lib/Disassembler/Android.mk
@@ -41,6 +41,7 @@
LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES)
+include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
include $(LLVM_ROOT_PATH)/llvm-device-build.mk
include $(BUILD_STATIC_LIBRARY)
@@ -61,6 +62,7 @@
LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES)
+include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
include $(LLVM_ROOT_PATH)/llvm-host-build.mk
include $(BUILD_HOST_STATIC_LIBRARY)