-
Notifications
You must be signed in to change notification settings - Fork 7
/
Android.mk
64 lines (50 loc) · 1.29 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
60
61
62
63
64
LOCAL_PATH := $(call my-dir)
common_cflags := \
-DANDROID \
-DPCSCD_PATH='"$(PCSCD_PATH)"' \
-DHAVE_CONFIG_H
LIBUSB_PATH := $(LOCAL_PATH)/../libusb
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/src \
$(PCSC_PATH)/src/PCSC \
$(LIBUSB_PATH) \
LOCAL_SRC_FILES:= \
src/ccid.c \
src/commands.c \
src/ifdhandler.c \
src/utils.c \
src/ccid_usb.c \
src/towitoko/atr.c \
src/towitoko/pps.c \
src/openct/buffer.c \
src/openct/checksum.c \
src/openct/proto-t1.c \
src/tokenparser.c \
src/strlcpy.c \
src/simclist.c \
src/debug.c
LOCAL_CFLAGS := $(common_cflags)
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_MODULE_TAGS = eng
LOCAL_MODULE:= libccid
LOCAL_LDLIBS := -llog -ldl -lc
LOCAL_SHARED_LIBRARIES := libusb
LOCAL_PRELINK_MODULE := false
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := \
LOCAL_SRC_FILES:= \
examples/PCSCv2part10.c \
examples/scardcontrol.c \
LOCAL_CFLAGS := \
$(common_cflags) \
-Dmain=scardcontrol_main
LOCAL_MODULE_TAGS = eng
LOCAL_MODULE:= libscardcontrol
LOCAL_LDLIBS := -llog
LOCAL_SHARED_LIBRARIES := libpcsclite
LOCAL_PRELINK_MODULE := false
include $(BUILD_SHARED_LIBRARY)
$(call import-module,libusb)