-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
172 lines (158 loc) · 3.78 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := dynet_jni
LOCAL_SHORT_COMMANDS := true
# JNI Sources
FILE_LIST := config.h
# Core OPS
FILE_LIST += dynet/aligned-mem-pool.cc \
dynet/aligned-mem-pool.h \
dynet/c2w.h \
dynet/cfsm-builder.cc \
dynet/cfsm-builder.h \
dynet/cuda-matrix-multiply.h \
dynet/cudnn-ops.h \
dynet/deep-lstm.cc \
dynet/deep-lstm.h \
dynet/devices.cc \
dynet/devices.h \
dynet/dict.cc \
dynet/dict.h \
dynet/dim.cc \
dynet/dim.h \
dynet/dynet.cc \
dynet/dynet.h \
dynet/dynet-helper.h \
dynet/except.h \
dynet/exec.cc \
dynet/exec.h \
dynet/expr.cc \
dynet/expr.h \
dynet/fast-lstm.cc \
dynet/fast-lstm.h \
dynet/functors.h \
dynet/globals.cc \
dynet/globals.h \
dynet/gpu-kernels.h \
dynet/grad-check.cc \
dynet/grad-check.h \
dynet/graph.cc \
dynet/graph.h \
dynet/gru.cc \
dynet/gru.h \
dynet/hsm-builder.cc \
dynet/hsm-builder.h \
dynet/init.cc \
dynet/init.h \
dynet/io.cc \
dynet/io.h \
dynet/lstm.cc \
dynet/lstm.h \
dynet/mem.cc \
dynet/mem.h \
dynet/model.cc \
dynet/model.h \
dynet/mp.cc \
dynet/mp.h \
dynet/nodes-activations.cc \
dynet/nodes-activations.h \
dynet/nodes-affinetransform.cc \
dynet/nodes-affinetransform.h \
dynet/nodes-arith-const.cc \
dynet/nodes-arith-const.h \
dynet/nodes-arith-cwise.cc \
dynet/nodes-arith-cwise.h \
dynet/nodes-arith-scalar.cc \
dynet/nodes-arith-scalar.h \
dynet/nodes-arith-sum.cc \
dynet/nodes-arith-sum.h \
dynet/nodes-arith-unary.cc \
dynet/nodes-arith-unary.h \
dynet/nodes-concat.cc \
dynet/nodes-concat.h \
dynet/nodes-const.cc \
dynet/nodes-const.h \
dynet/nodes-contract.cc \
dynet/nodes-contract.h \
dynet/nodes-conv2d.cc \
dynet/nodes-conv2d.h \
dynet/nodes-conv.cc \
dynet/nodes-conv.h \
dynet/nodes-dropout.cc \
dynet/nodes-dropout.h \
dynet/nodes-flow.cc \
dynet/nodes-flow.h \
dynet/nodes.h \
dynet/nodes-hinge.cc \
dynet/nodes-hinge.h \
dynet/nodes-linalg.cc \
dynet/nodes-linalg.h \
dynet/nodes-logsumexp.cc \
dynet/nodes-logsumexp.h \
dynet/nodes-losses.cc \
dynet/nodes-losses.h \
dynet/nodes-macros.h \
dynet/nodes-matrixmultiply.cc \
dynet/nodes-matrixmultiply.h \
dynet/nodes-maxpooling2d.cc \
dynet/nodes-maxpooling2d.h \
dynet/nodes-minmax.cc \
dynet/nodes-minmax.h \
dynet/nodes-moments.cc \
dynet/nodes-moments.h \
dynet/nodes-normalization.cc \
dynet/nodes-normalization.h \
dynet/nodes-norms.cc \
dynet/nodes-norms.h \
dynet/nodes-pickneglogsoftmax.cc \
dynet/nodes-pickneglogsoftmax.h \
dynet/nodes-random.cc \
dynet/nodes-random.h \
dynet/nodes-select.cc \
dynet/nodes-select.h \
dynet/nodes-similarities.cc \
dynet/nodes-similarities.h \
dynet/nodes-softmaxes.cc \
dynet/nodes-softmaxes.h \
dynet/nodes-trig.cc \
dynet/nodes-trig.h \
dynet/op-helper.h \
dynet/param-init.cc \
dynet/param-init.h \
dynet/param-nodes.cc \
dynet/param-nodes.h \
dynet/pretrain.cc \
dynet/pretrain.h \
dynet/rnn.cc \
dynet/rnn.h \
dynet/rnn-state-machine.cc \
dynet/rnn-state-machine.h \
dynet/saxe-init.cc \
dynet/saxe-init.h \
dynet/shadow-params.cc \
dynet/shadow-params.h \
dynet/sig.h \
dynet/simd-functors.h \
dynet/str-util.h \
dynet/tensor.cc \
dynet/tensor.h \
dynet/timing.h \
dynet/training.cc \
dynet/training.h \
dynet/treelstm.cc \
dynet/treelstm.h \
dynet/weight-decay.cc \
dynet/weight-decay.h
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
#LOCAL_LDLIBS := -llog -landroid -lm -ljnigraphics -lz
LOCAL_CPP_FEATURES += rtti exceptions
LOCAL_CPPFLAGS += -std=c++11 -Wno-c++11-narrowing
ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI), armeabi armeabi-v7a arm64-v8a))
LOCAL_CPPFLAGS += -mfpu=neon
endif
ifeq ($(TARGET_ARCH_ABI), x86)
LOCAL_CPPFLAGS += -mssse3
endif
LOCAL_C_INCLUDES := $(LOCAL_PATH)/third_party/eigen $(LOCAL_PATH)/third_party/eigen/unsupported/Eigen/CXX11
LOCAL_CPP_INCLUDES := $(LOCAL_PATH)/third_party/eigen $(LOCAL_PATH)/third_party/eigen/unsupported/Eigen/CXX11
include $(BUILD_SHARED_LIBRARY)