-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathatom.mk
48 lines (39 loc) · 1.26 KB
/
atom.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
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libmux
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include/
# Public API headers - top level headers first
# This header list is currently used to generate a python binding
LOCAL_EXPORT_CUSTOM_VARIABLES := LIBMUX_HEADERS=$\
$(LOCAL_PATH)/include/libmux.h:$(LOCAL_PATH)/include/libmux-arsdk.h;
LOCAL_CFLAGS := -DMUX_API_EXPORTS -fvisibility=hidden
LOCAL_SRC_FILES := \
src/mux.c \
src/mux_channel.c \
src/mux_log.c \
src/mux_queue.c \
src/mux_ip_proxy.c
LOCAL_LIBRARIES := libpomp libfutils
LOCAL_CONDITIONAL_LIBRARIES := OPTIONAL:libulog
ifeq ("$(TARGET_OS)","windows")
LOCAL_LDLIBS += -lws2_32
endif
include $(BUILD_LIBRARY)
###############################################################################
###############################################################################
ifdef TARGET_TEST
include $(CLEAR_VARS)
LOCAL_MODULE := tst-mux
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src
LOCAL_SRC_FILES := \
tests/mux_test.c \
tests/mux_test_base.c \
tests/mux_test_basic.c \
tests/mux_test_ip_proxy.c
LOCAL_LIBRARIES := libmux libcunit libpomp libfutils
LOCAL_CONDITIONAL_LIBRARIES := OPTIONAL:libulog
ifeq ("$(TARGET_OS)","windows")
LOCAL_LDLIBS += -lws2_32
endif
include $(BUILD_EXECUTABLE)
endif