summaryrefslogtreecommitdiffstats
path: root/cmds/installd/Android.mk
blob: 6eecb202589c513f478cb2c1f51e468187ee0ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
LOCAL_PATH := $(call my-dir)

common_src_files := \
    commands.c utils.c

#
# Static library used in testing and executable
#

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
    $(common_src_files)
LOCAL_CFLAGS := -std=gnu99
LOCAL_MODULE := libinstalld
LOCAL_MODULE_TAGS := eng tests

include $(BUILD_STATIC_LIBRARY)

#
# Executable
#

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
    installd.c \
    $(common_src_files)

LOCAL_SHARED_LIBRARIES := \
    libcutils \
    libselinux

LOCAL_STATIC_LIBRARIES := \
    libdiskusage

LOCAL_MODULE := installd
LOCAL_CFLAGS := -std=gnu99
LOCAL_MODULE_TAGS := optional

include $(BUILD_EXECUTABLE)