The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | ifneq ($(TARGET_SIMULATOR),true) |
| 2 | |
Kenny Root | 33b2264 | 2010-11-30 13:49:32 -0800 | [diff] [blame] | 3 | LOCAL_PATH := $(call my-dir) |
Kenny Root | 86c9584 | 2011-03-31 13:16:12 -0700 | [diff] [blame] | 4 | |
| 5 | common_src_files := \ |
| 6 | commands.c utils.c |
| 7 | |
| 8 | # |
| 9 | # Static library used in testing and executable |
| 10 | # |
| 11 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 12 | include $(CLEAR_VARS) |
| 13 | |
Kenny Root | 33b2264 | 2010-11-30 13:49:32 -0800 | [diff] [blame] | 14 | LOCAL_SRC_FILES := \ |
Kenny Root | 86c9584 | 2011-03-31 13:16:12 -0700 | [diff] [blame] | 15 | $(common_src_files) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 16 | |
Kenny Root | 86c9584 | 2011-03-31 13:16:12 -0700 | [diff] [blame] | 17 | LOCAL_MODULE := libinstalld |
| 18 | |
| 19 | LOCAL_MODULE_TAGS := eng tests |
| 20 | |
| 21 | include $(BUILD_STATIC_LIBRARY) |
| 22 | |
| 23 | # |
| 24 | # Executable |
| 25 | # |
| 26 | |
| 27 | include $(CLEAR_VARS) |
| 28 | |
| 29 | LOCAL_SRC_FILES := \ |
| 30 | installd.c \ |
| 31 | $(common_src_files) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 32 | |
| 33 | LOCAL_SHARED_LIBRARIES := \ |
| 34 | libcutils |
| 35 | |
Kenny Root | 33b2264 | 2010-11-30 13:49:32 -0800 | [diff] [blame] | 36 | LOCAL_STATIC_LIBRARIES := \ |
| 37 | libdiskusage |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 38 | |
Kenny Root | 33b2264 | 2010-11-30 13:49:32 -0800 | [diff] [blame] | 39 | LOCAL_MODULE := installd |
| 40 | |
| 41 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 42 | |
| 43 | include $(BUILD_EXECUTABLE) |
| 44 | |
Kenny Root | 33b2264 | 2010-11-30 13:49:32 -0800 | [diff] [blame] | 45 | endif # !simulator |