aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2015-08-03 10:21:25 -0700
committerChristopher Wiley <wiley@google.com>2015-08-04 10:35:13 -0700
commit9cba60779bc0958c0d4c270ee526d639d7fec63d (patch)
tree77b3790f4ed2268be6bf4eb05892b9494c98f177
parent0d654cd14f01fff5a74ef7c68e40659b5adc75ec (diff)
downloadlibbrillo-9cba60779bc0958c0d4c270ee526d639d7fec63d.tar.gz
Add build rules for libchromeos-dbus
Because of the interdependence of Any and the DBus bindings, it is difficult to build one without the other. Bug: 22880161 Change-Id: Icc8d70f0ea34cf1d9869672743fbe7ce0f825a78
-rw-r--r--Android.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 52d535a..4f06f1c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -36,6 +36,20 @@ libchromeos_core_sources := \
chromeos/type_name_undecorate.cc \
chromeos/url_utils.cc
+libchromeos_dbus_sources := \
+ chromeos/any.cc \
+ chromeos/daemons/dbus_daemon.cc \
+ chromeos/dbus/async_event_sequencer.cc \
+ chromeos/dbus/data_serialization.cc \
+ chromeos/dbus/dbus_method_invoker.cc \
+ chromeos/dbus/dbus_method_response.cc \
+ chromeos/dbus/dbus_object.cc \
+ chromeos/dbus/dbus_service_watcher.cc \
+ chromeos/dbus/dbus_signal.cc \
+ chromeos/dbus/exported_object_manager.cc \
+ chromeos/dbus/exported_property_set.cc \
+ chromeos/dbus/utils.cc
+
libchromeos_http_sources := \
chromeos/http/curl_api.cc \
chromeos/http/http_connection_curl.cc \
@@ -115,6 +129,22 @@ LOCAL_CLANG := true
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
include $(BUILD_SHARED_LIBRARY)
+# Shared dbus library for target
+# ========================================================
+include $(CLEAR_VARS)
+LOCAL_CPP_EXTENSION := $(libchromeos_cpp_extension)
+LOCAL_MODULE := libchromeos-dbus
+LOCAL_SRC_FILES := $(libchromeos_dbus_sources)
+LOCAL_C_INCLUDES := $(libchromeos_includes)
+LOCAL_SHARED_LIBRARIES := $(libchromeos_shared_libraries) libchromeos \
+ libchrome-dbus libdbus
+LOCAL_CFLAGS := $(libchromeos_CFLAGS)
+LOCAL_CPPFLAGS := $(libchromeos_CPPFLAGS)
+LOCAL_RTTI_FLAG := -frtti
+LOCAL_CLANG := true
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+include $(BUILD_SHARED_LIBRARY)
+
# Shared host library for target
# ========================================================
ifeq ($(HOST_OS),linux)