Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame^] | 3 | common_src_files := commands.c utils.c |
| 4 | common_cflags := -Wall -Werror |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 5 | |
| 6 | # |
| 7 | # Static library used in testing and executable |
| 8 | # |
| 9 | |
| 10 | include $(CLEAR_VARS) |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 11 | LOCAL_MODULE := libinstalld |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 12 | LOCAL_MODULE_TAGS := eng tests |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame^] | 13 | LOCAL_SRC_FILES := $(common_src_files) |
| 14 | LOCAL_CFLAGS := $(common_cflags) |
| 15 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 16 | include $(BUILD_STATIC_LIBRARY) |
| 17 | |
| 18 | # |
| 19 | # Executable |
| 20 | # |
| 21 | |
| 22 | include $(CLEAR_VARS) |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 23 | LOCAL_MODULE := installd |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 24 | LOCAL_MODULE_TAGS := optional |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame^] | 25 | LOCAL_CFLAGS := $(common_cflags) |
| 26 | LOCAL_SRC_FILES := installd.c $(common_src_files) |
| 27 | LOCAL_SHARED_LIBRARIES := libcutils liblog libselinux |
| 28 | LOCAL_STATIC_LIBRARIES := libdiskusage |
| 29 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 30 | include $(BUILD_EXECUTABLE) |