aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-08-03 00:45:28 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-03 00:45:28 +0000
commitd7cea0625a67e5c20f4890d2568dca843f3c4711 (patch)
treed2ab1b1ab82f80cbbce259aa563bf38904a4a78a
parent5d5360a269b6e1c5d0d609813a3940c973447ee6 (diff)
parentcad86b899faa8bf925646522d8bb348095199cdf (diff)
downloadplatform_external_libbrillo-d7cea0625a67e5c20f4890d2568dca843f3c4711.tar.gz
platform_external_libbrillo-d7cea0625a67e5c20f4890d2568dca843f3c4711.tar.bz2
platform_external_libbrillo-d7cea0625a67e5c20f4890d2568dca843f3c4711.zip
Build static version of libbrillo-stream.
am: cad86b899f Change-Id: I52e061cccc94cc42e315151ddec27e485a7f7c97
-rw-r--r--Android.mk20
1 files changed, 18 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 5dbfc64..305d372 100644
--- a/Android.mk
+++ b/Android.mk
@@ -281,8 +281,24 @@ LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
LOCAL_MODULE := libbrillo
LOCAL_SRC_FILES := $(libbrillo_core_sources) $(libbrillo_linux_sources)
LOCAL_C_INCLUDES := $(libbrillo_includes)
-LOCAL_SHARED_LIBRARIES := $(libbrillo_shared_libraries)
-LOCAL_STATIC_LIBRARIES := libmodpb64 libgtest_prod
+LOCAL_STATIC_LIBRARIES := $(libbrillo_shared_libraries) libmodpb64 libgtest_prod
+LOCAL_EXPORT_STATIC_LIBRARY_HEADERS := $(LOCAL_STATIC_LIBRARIES)
+LOCAL_CFLAGS := $(libbrillo_CFLAGS)
+LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
+LOCAL_CLANG := true
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+include $(BUILD_STATIC_LIBRARY)
+
+# Static stream library for target
+# ========================================================
+include $(CLEAR_VARS)
+LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
+LOCAL_MODULE := libbrillo-stream
+LOCAL_SRC_FILES := $(libbrillo_stream_sources)
+LOCAL_C_INCLUDES := $(libbrillo_includes)
+LOCAL_STATIC_LIBRARIES := $(libbrillo_shared_libraries) libbrillo \
+ libcrypto libssl libgtest_prod
+LOCAL_EXPORT_STATIC_LIBRARY_HEADERS := $(LOCAL_STATIC_LIBRARIES)
LOCAL_CFLAGS := $(libbrillo_CFLAGS)
LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
LOCAL_CLANG := true