aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2017-07-17 13:44:34 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-17 13:44:34 +0000
commitddcb22c3e835ad8381eda9f490defcda56e8c3bb (patch)
tree70080315b26b52669ad1cd961f2ab44690f1138f
parent1510820b8c4f11546318e1b007dc27fe7ed58391 (diff)
parent0b1cb6ca6027d8515b24991af6098dbf8c64195a (diff)
downloadlibbrillo-ddcb22c3e835ad8381eda9f490defcda56e8c3bb.tar.gz
Convert most libbrillo targets to soong. am: 7a4643f007 am: 98ab7d68cf
am: 0b1cb6ca60 Change-Id: I815200cc3f0114bea5dd3527d3c676a000e39866
-rw-r--r--Android.bp271
-rw-r--r--Android.mk312
2 files changed, 274 insertions, 309 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..e59e7fe
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,271 @@
+// Copyright (C) 2017 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Default values for the USE flags. Override these USE flags from your product
+// by setting BRILLO_USE_* values. Note that we define local variables like
+// local_use_* to prevent leaking our default setting for other packages.
+
+libbrillo_core_sources = [
+ "brillo/backoff_entry.cc",
+ "brillo/data_encoding.cc",
+ "brillo/errors/error.cc",
+ "brillo/errors/error_codes.cc",
+ "brillo/flag_helper.cc",
+ "brillo/key_value_store.cc",
+ "brillo/message_loops/base_message_loop.cc",
+ "brillo/message_loops/message_loop.cc",
+ "brillo/message_loops/message_loop_utils.cc",
+ "brillo/mime_utils.cc",
+ "brillo/osrelease_reader.cc",
+ "brillo/process.cc",
+ "brillo/process_information.cc",
+ "brillo/secure_blob.cc",
+ "brillo/strings/string_utils.cc",
+ "brillo/syslog_logging.cc",
+ "brillo/type_name_undecorate.cc",
+ "brillo/url_utils.cc",
+ "brillo/userdb_utils.cc",
+ "brillo/value_conversion.cc",
+]
+
+libbrillo_linux_sources = [
+ "brillo/asynchronous_signal_handler.cc",
+ "brillo/daemons/daemon.cc",
+ "brillo/file_utils.cc",
+ "brillo/process_reaper.cc",
+]
+
+libbrillo_binder_sources = ["brillo/binder_watcher.cc"]
+
+libbrillo_http_sources = [
+ "brillo/http/curl_api.cc",
+ "brillo/http/http_connection_curl.cc",
+ "brillo/http/http_form_data.cc",
+ "brillo/http/http_request.cc",
+ "brillo/http/http_transport.cc",
+ "brillo/http/http_transport_curl.cc",
+ "brillo/http/http_utils.cc",
+]
+
+libbrillo_policy_sources = [
+ "policy/device_policy.cc",
+ "policy/libpolicy.cc",
+]
+
+libbrillo_stream_sources = [
+ "brillo/streams/file_stream.cc",
+ "brillo/streams/input_stream_set.cc",
+ "brillo/streams/memory_containers.cc",
+ "brillo/streams/memory_stream.cc",
+ "brillo/streams/openssl_stream_bio.cc",
+ "brillo/streams/stream.cc",
+ "brillo/streams/stream_errors.cc",
+ "brillo/streams/stream_utils.cc",
+ "brillo/streams/tls_stream.cc",
+]
+
+libbrillo_test_helpers_sources = [
+ "brillo/http/http_connection_fake.cc",
+ "brillo/http/http_transport_fake.cc",
+ "brillo/message_loops/fake_message_loop.cc",
+ "brillo/streams/fake_stream.cc",
+ "brillo/unittest_utils.cc",
+]
+
+libbrillo_test_sources = [
+ "brillo/asynchronous_signal_handler_unittest.cc",
+ "brillo/backoff_entry_unittest.cc",
+ "brillo/data_encoding_unittest.cc",
+ "brillo/errors/error_codes_unittest.cc",
+ "brillo/errors/error_unittest.cc",
+ "brillo/file_utils_unittest.cc",
+ "brillo/flag_helper_unittest.cc",
+ "brillo/http/http_connection_curl_unittest.cc",
+ "brillo/http/http_form_data_unittest.cc",
+ "brillo/http/http_request_unittest.cc",
+ "brillo/http/http_transport_curl_unittest.cc",
+ "brillo/http/http_utils_unittest.cc",
+ "brillo/key_value_store_unittest.cc",
+ "brillo/map_utils_unittest.cc",
+ "brillo/message_loops/base_message_loop_unittest.cc",
+ "brillo/message_loops/fake_message_loop_unittest.cc",
+ "brillo/mime_utils_unittest.cc",
+ "brillo/osrelease_reader_unittest.cc",
+ "brillo/process_reaper_unittest.cc",
+ "brillo/process_unittest.cc",
+ "brillo/secure_blob_unittest.cc",
+ "brillo/streams/fake_stream_unittest.cc",
+ "brillo/streams/file_stream_unittest.cc",
+ "brillo/streams/input_stream_set_unittest.cc",
+ "brillo/streams/memory_containers_unittest.cc",
+ "brillo/streams/memory_stream_unittest.cc",
+ "brillo/streams/openssl_stream_bio_unittests.cc",
+ "brillo/streams/stream_unittest.cc",
+ "brillo/streams/stream_utils_unittest.cc",
+ "brillo/strings/string_utils_unittest.cc",
+ "brillo/unittest_utils.cc",
+ "brillo/url_utils_unittest.cc",
+ "brillo/value_conversion_unittest.cc",
+]
+
+libbrillo_CFLAGS = [
+ "-Wall",
+ "-Werror",
+]
+
+libbrillo_shared_libraries = ["libchrome"]
+
+// Main library, shared and static for host and target
+// ========================================================
+cc_library {
+ name: "libbrillo",
+ host_supported: true,
+ srcs: libbrillo_core_sources + libbrillo_linux_sources,
+ shared_libs: libbrillo_shared_libraries,
+ static_libs: [
+ "libmodpb64",
+ "libgtest_prod",
+ ],
+ cflags: libbrillo_CFLAGS,
+ export_include_dirs: ["."],
+
+ target: {
+ host: {
+ cppflags: ["-D__ANDROID_HOST__"],
+ },
+ },
+}
+
+// Shared binder library for target
+// ========================================================
+cc_library_shared {
+ name: "libbrillo-binder",
+ srcs: libbrillo_binder_sources,
+ shared_libs: libbrillo_shared_libraries + [
+ "libbinder",
+ "libbrillo",
+ "libutils",
+ ],
+ static_libs: ["libgtest_prod"],
+ cflags: libbrillo_CFLAGS,
+ export_include_dirs: ["."],
+}
+
+// Shared and static stream library for target and host
+// ========================================================
+cc_library {
+ name: "libbrillo-stream",
+ srcs: libbrillo_stream_sources,
+ shared_libs: libbrillo_shared_libraries + [
+ "libbrillo",
+ "libcrypto",
+ "libssl",
+ ],
+ static_libs: ["libgtest_prod"],
+ cflags: libbrillo_CFLAGS,
+ export_include_dirs: ["."],
+
+ host_supported: true,
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ windows: {
+ enabled: false,
+ },
+ },
+}
+
+// Shared http library for target and host
+// ========================================================
+cc_library_shared {
+ name: "libbrillo-http",
+ srcs: libbrillo_http_sources,
+ shared_libs: libbrillo_shared_libraries + [
+ "libbrillo",
+ "libbrillo-stream",
+ "libcurl",
+ ],
+ static_libs: ["libgtest_prod"],
+ cflags: libbrillo_CFLAGS,
+ export_include_dirs: ["."],
+
+ host_supported: true,
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ windows: {
+ enabled: false,
+ },
+ },
+}
+
+// Shared policy library for target
+// ========================================================
+cc_library_shared {
+ name: "libbrillo-policy",
+ srcs: libbrillo_policy_sources,
+ shared_libs: libbrillo_shared_libraries,
+ static_libs: ["libgtest_prod"],
+ cflags: libbrillo_CFLAGS,
+ export_include_dirs: ["."],
+}
+
+
+// Static test-helpers library for target
+// ========================================================
+cc_library_static {
+ name: "libbrillo-test-helpers",
+ srcs: libbrillo_test_helpers_sources,
+ static_libs: [
+ "libgtest",
+ "libgmock",
+ ],
+ shared_libs: libbrillo_shared_libraries + [
+ "libbrillo",
+ "libcurl",
+ "libbrillo-http",
+ "libbrillo-stream",
+ "libcrypto",
+ ],
+ cflags: libbrillo_CFLAGS,
+ cppflags: ["-Wno-sign-compare"],
+ export_include_dirs: ["."],
+}
+
+// Unit tests.
+// ========================================================
+cc_test {
+ name: "libbrillo_test",
+ srcs: libbrillo_test_sources,
+ static_libs: [
+ "libgtest",
+ "libchrome_test_helpers",
+ "libbrillo-test-helpers",
+ "libgmock",
+ "libBionicGtestMain",
+ ],
+ shared_libs: libbrillo_shared_libraries + [
+ "libbrillo",
+ "libcurl",
+ "libbrillo-http",
+ "libbrillo-stream",
+ "libcrypto",
+ "libprotobuf-cpp-lite",
+ ],
+ cflags: libbrillo_CFLAGS,
+ cppflags: ["-Wno-sign-compare"],
+}
+
diff --git a/Android.mk b/Android.mk
index 0cccf4b..e064610 100644
--- a/Android.mk
+++ b/Android.mk
@@ -18,329 +18,23 @@
LOCAL_PATH := $(call my-dir)
-libbrillo_cpp_extension := .cc
-libbrillo_core_sources := \
- brillo/backoff_entry.cc \
- brillo/data_encoding.cc \
- brillo/errors/error.cc \
- brillo/errors/error_codes.cc \
- brillo/flag_helper.cc \
- brillo/key_value_store.cc \
- brillo/message_loops/base_message_loop.cc \
- brillo/message_loops/message_loop.cc \
- brillo/message_loops/message_loop_utils.cc \
- brillo/mime_utils.cc \
- brillo/osrelease_reader.cc \
- brillo/process.cc \
- brillo/process_information.cc \
- brillo/secure_blob.cc \
- brillo/strings/string_utils.cc \
- brillo/syslog_logging.cc \
- brillo/type_name_undecorate.cc \
- brillo/url_utils.cc \
- brillo/userdb_utils.cc \
- brillo/value_conversion.cc \
-
-libbrillo_linux_sources := \
- brillo/asynchronous_signal_handler.cc \
- brillo/daemons/daemon.cc \
- brillo/file_utils.cc \
- brillo/process_reaper.cc \
-
-libbrillo_binder_sources := \
- brillo/binder_watcher.cc \
-
-libbrillo_http_sources := \
- brillo/http/curl_api.cc \
- brillo/http/http_connection_curl.cc \
- brillo/http/http_form_data.cc \
- brillo/http/http_request.cc \
- brillo/http/http_transport.cc \
- brillo/http/http_transport_curl.cc \
- brillo/http/http_utils.cc \
-
-libbrillo_policy_sources := \
- policy/device_policy.cc \
- policy/libpolicy.cc \
-
-libbrillo_stream_sources := \
- brillo/streams/file_stream.cc \
- brillo/streams/input_stream_set.cc \
- brillo/streams/memory_containers.cc \
- brillo/streams/memory_stream.cc \
- brillo/streams/openssl_stream_bio.cc \
- brillo/streams/stream.cc \
- brillo/streams/stream_errors.cc \
- brillo/streams/stream_utils.cc \
- brillo/streams/tls_stream.cc \
-
-libbrillo_test_helpers_sources := \
- brillo/http/http_connection_fake.cc \
- brillo/http/http_transport_fake.cc \
- brillo/message_loops/fake_message_loop.cc \
- brillo/streams/fake_stream.cc \
- brillo/unittest_utils.cc \
-
-libbrillo_test_sources := \
- brillo/asynchronous_signal_handler_unittest.cc \
- brillo/backoff_entry_unittest.cc \
- brillo/data_encoding_unittest.cc \
- brillo/errors/error_codes_unittest.cc \
- brillo/errors/error_unittest.cc \
- brillo/file_utils_unittest.cc \
- brillo/flag_helper_unittest.cc \
- brillo/http/http_connection_curl_unittest.cc \
- brillo/http/http_form_data_unittest.cc \
- brillo/http/http_request_unittest.cc \
- brillo/http/http_transport_curl_unittest.cc \
- brillo/http/http_utils_unittest.cc \
- brillo/key_value_store_unittest.cc \
- brillo/map_utils_unittest.cc \
- brillo/message_loops/base_message_loop_unittest.cc \
- brillo/message_loops/fake_message_loop_unittest.cc \
- brillo/mime_utils_unittest.cc \
- brillo/osrelease_reader_unittest.cc \
- brillo/process_reaper_unittest.cc \
- brillo/process_unittest.cc \
- brillo/secure_blob_unittest.cc \
- brillo/streams/fake_stream_unittest.cc \
- brillo/streams/file_stream_unittest.cc \
- brillo/streams/input_stream_set_unittest.cc \
- brillo/streams/memory_containers_unittest.cc \
- brillo/streams/memory_stream_unittest.cc \
- brillo/streams/openssl_stream_bio_unittests.cc \
- brillo/streams/stream_unittest.cc \
- brillo/streams/stream_utils_unittest.cc \
- brillo/strings/string_utils_unittest.cc \
- brillo/unittest_utils.cc \
- brillo/url_utils_unittest.cc \
- brillo/value_conversion_unittest.cc \
-
libbrillo_CFLAGS := \
-Wall \
-Werror
-libbrillo_CPPFLAGS :=
-libbrillo_includes :=
-libbrillo_shared_libraries := libchrome
-
-# Shared library for target
-# ========================================================
-include $(CLEAR_VARS)
-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_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_SHARED_LIBRARY)
-
-# Shared binder library for target
-# ========================================================
-include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
-LOCAL_MODULE := libbrillo-binder
-LOCAL_SRC_FILES := $(libbrillo_binder_sources)
-LOCAL_C_INCLUDES := $(libbrillo_includes)
-LOCAL_SHARED_LIBRARIES := \
- $(libbrillo_shared_libraries) \
- libbinder \
- libbrillo \
- libutils
-LOCAL_STATIC_LIBRARIES := libgtest_prod
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_SHARED_LIBRARY)
# Shared minijail library for target
# ========================================================
include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
+LOCAL_CPP_EXTENSION := .cc
LOCAL_MODULE := libbrillo-minijail
-LOCAL_SRC_FILES := brillo/minijail/minijail.cc \
-
-LOCAL_C_INCLUDES := $(libbrillo_includes)
-LOCAL_SHARED_LIBRARIES := $(libbrillo_shared_libraries) libbrillo \
- libminijail
+LOCAL_SRC_FILES := brillo/minijail/minijail.cc
+LOCAL_SHARED_LIBRARIES := libchrome libbrillo libminijail
LOCAL_STATIC_LIBRARIES := libgtest_prod
LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
LOCAL_CLANG := true
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
include $(BUILD_SHARED_LIBRARY)
-# Shared 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_SHARED_LIBRARIES := $(libbrillo_shared_libraries) libbrillo \
- libcrypto libssl
-LOCAL_STATIC_LIBRARIES := libgtest_prod
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_SHARED_LIBRARY)
-
-# Shared http library for target
-# ========================================================
-include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
-LOCAL_MODULE := libbrillo-http
-LOCAL_SRC_FILES := $(libbrillo_http_sources)
-LOCAL_C_INCLUDES := $(libbrillo_includes)
-LOCAL_SHARED_LIBRARIES := $(libbrillo_shared_libraries) libbrillo \
- libbrillo-stream libcurl
-LOCAL_STATIC_LIBRARIES := libgtest_prod
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_SHARED_LIBRARY)
-
-# Shared policy library for target
-# ========================================================
-include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
-LOCAL_MODULE := libbrillo-policy
-LOCAL_SRC_FILES := $(libbrillo_policy_sources)
-LOCAL_C_INCLUDES := $(libbrillo_includes)
-LOCAL_SHARED_LIBRARIES := $(libbrillo_shared_libraries)
-LOCAL_STATIC_LIBRARIES := libgtest_prod
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_SHARED_LIBRARY)
-
-# Static library for target
-# ========================================================
-include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
-LOCAL_MODULE := libbrillo
-LOCAL_SRC_FILES := $(libbrillo_core_sources) $(libbrillo_linux_sources)
-LOCAL_C_INCLUDES := $(libbrillo_includes)
-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
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_STATIC_LIBRARY)
-
-# Static test-helpers library for target
-# ========================================================
-include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
-LOCAL_MODULE := libbrillo-test-helpers
-LOCAL_SRC_FILES := $(libbrillo_test_helpers_sources)
-LOCAL_C_INCLUDES := $(libbrillo_includes)
-LOCAL_STATIC_LIBRARIES := libgtest libgmock
-LOCAL_SHARED_LIBRARIES := $(libbrillo_shared_libraries) libbrillo libcurl \
- libbrillo-http libbrillo-stream libcrypto
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS) -Wno-sign-compare
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_STATIC_LIBRARY)
-
-# Shared library for host
-# ========================================================
-include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
-LOCAL_MODULE := libbrillo
-LOCAL_SRC_FILES := $(libbrillo_core_sources)
-LOCAL_C_INCLUDES := $(libbrillo_includes)
-LOCAL_SHARED_LIBRARIES := $(libbrillo_shared_libraries)
-LOCAL_STATIC_LIBRARIES := libmodpb64 libgtest_prod
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := \
- -D__ANDROID_HOST__ \
- $(libbrillo_CPPFLAGS)
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_HOST_SHARED_LIBRARY)
-
-ifeq ($(HOST_OS),linux)
-
-# Shared stream library for host
-# ========================================================
-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_SHARED_LIBRARIES := $(libbrillo_shared_libraries) libbrillo \
- libcrypto libssl
-LOCAL_STATIC_LIBRARIES := libgtest_prod
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_HOST_SHARED_LIBRARY)
-
-# Shared http library for host
-# ========================================================
-include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
-LOCAL_MODULE := libbrillo-http
-LOCAL_SRC_FILES := $(libbrillo_http_sources)
-LOCAL_C_INCLUDES := $(libbrillo_includes)
-LOCAL_SHARED_LIBRARIES := $(libbrillo_shared_libraries) libbrillo \
- libbrillo-stream libcurl
-LOCAL_STATIC_LIBRARIES := libgtest_prod
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS)
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_HOST_SHARED_LIBRARY)
-
-endif # HOST_OS == linux
-
-# Unit tests.
-# ========================================================
-include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := $(libbrillo_cpp_extension)
-LOCAL_MODULE := libbrillo_test
-LOCAL_MODULE_CLASS := NATIVE_TESTS
-generated_sources_dir := $(call local-generated-sources-dir)
-LOCAL_SRC_FILES := $(libbrillo_test_sources)
-LOCAL_C_INCLUDES := \
- $(libbrillo_includes) \
- $(generated_sources_dir)/proto/external/libbrillo
-LOCAL_STATIC_LIBRARIES := libgtest libchrome_test_helpers \
- libbrillo-test-helpers libgmock libBionicGtestMain
-LOCAL_SHARED_LIBRARIES := $(libbrillo_shared_libraries) libbrillo libcurl \
- libbrillo-http libbrillo-stream libcrypto libprotobuf-cpp-lite
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CPPFLAGS := $(libbrillo_CPPFLAGS) -Wno-sign-compare
-LOCAL_CLANG := true
-include $(BUILD_NATIVE_TEST)
-
# Run unit tests on target
# ========================================================
# We su shell because process tests try setting "illegal"