Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
Jeff Sharkey | 1980380 | 2015-04-07 12:44:51 -0700 | [diff] [blame] | 3 | common_src_files := commands.cpp utils.cpp |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame] | 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) |
Jeff Sharkey | c03de09 | 2015-04-07 18:14:05 -0700 | [diff] [blame] | 15 | LOCAL_SHARED_LIBRARIES := libbase |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame] | 16 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 17 | include $(BUILD_STATIC_LIBRARY) |
| 18 | |
| 19 | # |
| 20 | # Executable |
| 21 | # |
| 22 | |
| 23 | include $(CLEAR_VARS) |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 24 | LOCAL_MODULE := installd |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 25 | LOCAL_MODULE_TAGS := optional |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame] | 26 | LOCAL_CFLAGS := $(common_cflags) |
Jeff Sharkey | 1980380 | 2015-04-07 12:44:51 -0700 | [diff] [blame] | 27 | LOCAL_SRC_FILES := installd.cpp $(common_src_files) |
Jeff Sharkey | c03de09 | 2015-04-07 18:14:05 -0700 | [diff] [blame] | 28 | LOCAL_SHARED_LIBRARIES := \ |
| 29 | libbase \ |
| 30 | libcutils \ |
| 31 | liblog \ |
| 32 | libselinux \ |
| 33 | |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame] | 34 | LOCAL_STATIC_LIBRARIES := libdiskusage |
| 35 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 36 | include $(BUILD_EXECUTABLE) |