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 | e363724 | 2015-04-08 20:56:42 -0700 | [diff] [blame] | 15 | LOCAL_SHARED_LIBRARIES := \ |
| 16 | libbase \ |
| 17 | liblogwrap \ |
| 18 | |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame] | 19 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
Jeff Sharkey | 41ea424 | 2015-04-09 11:34:03 -0700 | [diff] [blame] | 20 | LOCAL_CLANG := true |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 21 | include $(BUILD_STATIC_LIBRARY) |
| 22 | |
| 23 | # |
| 24 | # Executable |
| 25 | # |
| 26 | |
| 27 | include $(CLEAR_VARS) |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 28 | LOCAL_MODULE := installd |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 29 | LOCAL_MODULE_TAGS := optional |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame] | 30 | LOCAL_CFLAGS := $(common_cflags) |
Jeff Sharkey | 1980380 | 2015-04-07 12:44:51 -0700 | [diff] [blame] | 31 | LOCAL_SRC_FILES := installd.cpp $(common_src_files) |
Jeff Sharkey | c03de09 | 2015-04-07 18:14:05 -0700 | [diff] [blame] | 32 | LOCAL_SHARED_LIBRARIES := \ |
| 33 | libbase \ |
| 34 | libcutils \ |
| 35 | liblog \ |
Jeff Sharkey | e363724 | 2015-04-08 20:56:42 -0700 | [diff] [blame] | 36 | liblogwrap \ |
Jeff Sharkey | c03de09 | 2015-04-07 18:14:05 -0700 | [diff] [blame] | 37 | libselinux \ |
| 38 | |
Brian Carlstrom | e46a75a | 2014-06-27 16:03:06 -0700 | [diff] [blame] | 39 | LOCAL_STATIC_LIBRARIES := libdiskusage |
| 40 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
Tom Cherry | 7415599 | 2015-08-14 13:01:23 -0700 | [diff] [blame] | 41 | LOCAL_INIT_RC := installd.rc |
Jeff Sharkey | 41ea424 | 2015-04-09 11:34:03 -0700 | [diff] [blame] | 42 | LOCAL_CLANG := true |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 43 | include $(BUILD_EXECUTABLE) |