-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAndroid.mk
59 lines (41 loc) · 1.38 KB
/
Android.mk
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
ifeq ($(BOARD_USES_GPS_PROXY),true)
#==============================================================================
# wrapper library for the gps proxy
#==============================================================================
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := gps.$(TARGET_BOOTLOADER_BOARD_NAME)
LOCAL_SHARED_LIBRARIES:= \
libcutils \
libutils \
liblog \
libdl
LOCAL_STATIC_LIBRARIES := libstc-rpc
LOCAL_SRC_FILES += \
gps_library.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_C_INCLUDES += hardware/stc/libstc-rpc/include
LOCAL_CFLAGS += \
-fno-short-enums -DDEBUG -DVERBOSE
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
include $(BUILD_SHARED_LIBRARY)
#==============================================================================
# daemon executable for the gps proxy
#==============================================================================
include $(CLEAR_VARS)
LOCAL_MODULE:= gps_proxy
LOCAL_MODULE_TAGS := optional
LOCAL_SHARED_LIBRARIES := \
liblog \
libcutils
LOCAL_STATIC_LIBRARIES := libstc-rpc
ifeq ($(TARGET_ARCH),arm)
LOCAL_SHARED_LIBRARIES += libdl
endif # arm
LOCAL_SRC_FILES += gps_proxy.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_C_INCLUDES += hardware/stc/libstc-rpc/include
include $(BUILD_EXECUTABLE)
endif # BOARD_USES_GPS_PROXY