Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame^] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | common_src_files := \ |
| 4 | commands.c utils.c |
| 5 | |
| 6 | # |
| 7 | # Static library used in testing and executable |
| 8 | # |
| 9 | |
| 10 | include $(CLEAR_VARS) |
| 11 | |
| 12 | LOCAL_SRC_FILES := \ |
| 13 | $(common_src_files) |
| 14 | |
| 15 | LOCAL_MODULE := libinstalld |
| 16 | |
| 17 | LOCAL_MODULE_TAGS := eng tests |
| 18 | |
| 19 | include $(BUILD_STATIC_LIBRARY) |
| 20 | |
| 21 | # |
| 22 | # Executable |
| 23 | # |
| 24 | |
| 25 | include $(CLEAR_VARS) |
| 26 | |
| 27 | LOCAL_SRC_FILES := \ |
| 28 | installd.c \ |
| 29 | $(common_src_files) |
| 30 | |
| 31 | LOCAL_SHARED_LIBRARIES := \ |
| 32 | libcutils \ |
| 33 | libselinux |
| 34 | |
| 35 | LOCAL_STATIC_LIBRARIES := \ |
| 36 | libdiskusage |
| 37 | |
| 38 | LOCAL_MODULE := installd |
| 39 | |
| 40 | LOCAL_MODULE_TAGS := optional |
| 41 | |
| 42 | include $(BUILD_EXECUTABLE) |