blob: bef8f905e5e5aad24ea2e91bf3050e2b6fb9b0a1 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
LOCAL_PATH := $(call my-dir)
####################
# Common definitions
COMMON_SRC_FILES := \
Socket.cpp \
ListeningSocket.cpp \
ConnectionSocket.cpp \
Message.cpp \
RequestMessage.cpp \
AnswerMessage.cpp \
RemoteProcessorServer.cpp \
RemoteProcessorServerBuilder.cpp
COMMON_MODULE := libremote-processor
COMMON_MODULE_TAGS := optional
COMMON_ERROR_FLAGS := -Wno-non-virtual-dtor
COMMON_LDLIBS := -lpthread
#############################
# Target build
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(COMMON_SRC_FILES)
LOCAL_MODULE := $(COMMON_MODULE)
LOCAL_MODULE_TAGS := $(COMMON_MODULE_TAGS)
TARGET_ERROR_FLAGS += $(COMMON_ERROR_FLAGS)
LOCAL_C_INCLUDES += \
external/stlport/stlport/ \
bionic/libstdc++ \
bionic/
LOCAL_SHARED_LIBRARIES := libstlport
LOCAL_LDLIBS += $(COMMON_LDLIBS)
include $(BUILD_SHARED_LIBRARY)
##############################
# Host build
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(COMMON_SRC_FILES)
LOCAL_MODULE := $(COMMON_MODULE)
LOCAL_MODULE_TAGS := $(COMMON_MODULE_TAGS)
TARGET_ERROR_FLAGS += $(COMMON_ERROR_FLAGS)
LOCAL_LDLIBS += $(COMMON_LDLIBS)
include $(BUILD_HOST_SHARED_LIBRARY)
|