blob: d82d548df7365fedc905333c2414d33c010beda7 (
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
|
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_ldlibs := -lpthread
#############################
# Target build
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)
LOCAL_MODULE_TAGS := $(common_module_tags)
LOCAL_C_INCLUDES += \
$(call include-path-for, stlport) \
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)_host
LOCAL_MODULE_TAGS := $(common_module_tags)
LOCAL_LDLIBS += $(common_ldlibs)
include $(BUILD_HOST_SHARED_LIBRARY)
|