-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAndroid.mk
More file actions
147 lines (119 loc) · 3.33 KB
/
Android.mk
File metadata and controls
147 lines (119 loc) · 3.33 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Android.mk. Manually derived by running 'configure' using options
# --disable-libhal --disable-libusb
# on Ubuntu 9.10 and capturing the actions taken by make.
#
# Copyright (C) 2010 Free Software Foundation, Inc.
# This Android.mk is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
LOCAL_PATH := $(call my-dir)
common_cflags := \
-DANDROID \
-DDISABLE_SYSTEMD \
-DPCSCD_PATH='"$(PCSCD_PATH)"' \
-DHAVE_CONFIG_H \
-Dmain=pcsc_main \
common_c_includes := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/src/PCSC \
$(LOCAL_PATH)/src \
# ============ build libpcsclite.a ====================================
#include $(CLEAR_VARS)
#LOCAL_SRC_FILES := \
# src/debug.c \
# src/error.c \
# src/simclist.c \
# src/strlcat.c \
# src/strlcpy.c \
# src/sys_unix.c \
# src/utils.c \
# src/winscard_msg.c \
# src/winscard_clnt.c \
# src/spy/libpcscspy.c
#LOCAL_CFLAGS := $(common_cflags) \
# -DLIBPCSCLITE
#LOCAL_C_INCLUDES := $(common_c_includes)
#LOCAL_PRELINK_MODULE := false
#LOCAL_MODULE := libpcsclite
#include $(BUILD_STATIC_LIBRARY)
# ============ build libpcsclite.so ====================================
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
src/debug.c \
src/error.c \
src/simclist.c \
src/strlcat.c \
src/strlcpy.c \
src/sys_unix.c \
src/utils.c \
src/winscard_msg.c \
src/winscard_clnt.c
LOCAL_CFLAGS := $(common_cflags) \
-DLIBPCSCLITE
LOCAL_C_INCLUDES := $(common_c_includes)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := libpcsclite
LOCAL_MODULE_TAGS := eng
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/src/PCSC
include $(BUILD_SHARED_LIBRARY)
# ============ build pcscd =============================================
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
src/auth.c \
src/debuglog.c \
src/atrhandler.c \
src/configfile.c \
src/dyn_hpux.c \
src/dyn_macosx.c \
src/dyn_unix.c \
src/eventhandler.c \
src/hotplug_generic.c \
src/hotplug_libusb.c \
src/hotplug_linux.c \
src/hotplug_macosx.c \
src/ifdwrapper.c \
src/pcscdaemon.c \
src/powermgt_generic.c \
src/prothandler.c \
src/readerfactory.c \
src/sd-daemon.c \
src/simclist.c \
src/strlcat.c \
src/strlcpy.c \
src/sys_unix.c \
src/tokenparser.c \
src/utils.c \
src/winscard.c \
src/winscard_msg.c \
src/winscard_msg_srv.c \
src/winscard_svc.c
LOCAL_C_INCLUDES := $(common_c_includes)
LOCAL_CFLAGS := $(common_cflags) \
-DPCSCD \
-DSIMCLIST_NO_DUMPRESTORE
LOCAL_LDLIBS := -llog -ldl
LOCAL_SHARED_LIBRARIES := libcrypto libusb libccid
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := pcscd
LOCAL_MODULE_TAGS := eng
include $(BUILD_SHARED_LIBRARY)
# ============ build testpcsc ==========================================
include $(CLEAR_VARS)
LOCAL_LDLIBS := -ldl
LOCAL_SHARED_LIBRARIES := libcrypto
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := src/testpcsc.c
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/src/PCSC \
$(LOCAL_PATH)/src
LOCAL_CFLAGS := $(common_cflags)
LOCAL_STATIC_LIBRARIES := libpcsclite
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE := testpcsc
include $(BUILD_EXECUTABLE)
$(call import-module,libusb)