aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-03-17 20:45:18 -0700
committerYabin Cui <yabinc@google.com>2016-03-18 16:23:31 -0700
commit2617d566c48d6d1f24c2be68b8dab7358a45363c (patch)
tree8efb71ed5cc779368e23fe76f99efc0085277663
parentf7e9b4ae190b39bc3d73f2156991eba36b259146 (diff)
downloadlzma-2617d566c48d6d1f24c2be68b8dab7358a45363c.tar.gz
Compile lzma for windows and mac.
It is needed by simpleperf to read .gnu_debugdata section in elf files. Bug: 27744639 Change-Id: I118cc1b5f518cc221f0c5e545ea0c9ffd78f41e2
-rw-r--r--C/Android.bp6
-rw-r--r--C/Android.mk2
2 files changed, 8 insertions, 0 deletions
diff --git a/C/Android.bp b/C/Android.bp
index af1e15a..890ef72 100644
--- a/C/Android.bp
+++ b/C/Android.bp
@@ -48,4 +48,10 @@ cc_library {
"XzEnc.c",
"XzIn.c",
],
+
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
}
diff --git a/C/Android.mk b/C/Android.mk
index 41ba1e6..cc551af 100644
--- a/C/Android.mk
+++ b/C/Android.mk
@@ -46,6 +46,7 @@ lzma_clang_cflags := -Wno-self-assign
include $(CLEAR_VARS)
LOCAL_MODULE := liblzma
+LOCAL_MODULE_HOST_OS := linux darwin windows
LOCAL_CFLAGS := $(lzma_cflags)
LOCAL_CLANG_CFLAGS := $(lzma_clang_cflags)
LOCAL_SRC_FILES := $(lzma_files)
@@ -63,6 +64,7 @@ include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liblzma
+LOCAL_MODULE_HOST_OS := linux darwin windows
LOCAL_CFLAGS := $(lzma_cflags)
LOCAL_CLANG_CFLAGS := $(lzma_clang_cflags)
LOCAL_SRC_FILES := $(lzma_files)