Home | History | Annotate | Download | only in tools
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 dbusToolsCommonCIncludes := $(LOCAL_PATH)/..
      4 dbusToolsCommonCFlags := \
      5 	-DDBUS_COMPILATION \
      6 	-DDBUS_MACHINE_UUID_FILE=\"/etc/machine-id\" \
      7 	-Wno-unused-parameter
      8 dbusToolsCommonSharedLibraries := libdbus
      9 
     10 # common
     11 
     12 include $(CLEAR_VARS)
     13 
     14 LOCAL_SRC_FILES := dbus-print-message.c
     15 LOCAL_C_INCLUDES += $(dbusToolsCommonCIncludes)
     16 LOCAL_SHARED_LIBRARIES += $(dbusToolsCommonSharedLibraries)
     17 LOCAL_CFLAGS += $(dbusToolsCommonCFlags)
     18 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     19 LOCAL_MODULE := libdbus-tools-common
     20 include $(BUILD_STATIC_LIBRARY)
     21 
     22 # dbus-monitor
     23 
     24 include $(CLEAR_VARS)
     25 
     26 LOCAL_SRC_FILES := dbus-monitor.c
     27 LOCAL_C_INCLUDES += $(dbusToolsCommonCIncludes)
     28 LOCAL_SHARED_LIBRARIES += $(dbusToolsCommonSharedLibraries)
     29 LOCAL_STATIC_LIBRARIES += libdbus-tools-common
     30 LOCAL_CFLAGS += $(dbusToolsCommonCFlags)
     31 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     32 LOCAL_MODULE := dbus-monitor
     33 include $(BUILD_EXECUTABLE)
     34 
     35 # dbus-send
     36 
     37 include $(CLEAR_VARS)
     38 
     39 LOCAL_SRC_FILES := dbus-send.c
     40 LOCAL_C_INCLUDES += $(dbusToolsCommonCIncludes)
     41 LOCAL_SHARED_LIBRARIES += $(dbusToolsCommonSharedLibraries)
     42 LOCAL_STATIC_LIBRARIES += libdbus-tools-common
     43 LOCAL_CFLAGS += $(dbusToolsCommonCFlags)
     44 LOCAL_MODULE := dbus-send
     45 include $(BUILD_EXECUTABLE)
     46