blob: 2126962335f9d04908bf75bea1135a98077da74b [file] [log] [blame]
Alexander Afanasyev087c7c12015-02-02 00:21:21 -08001LOCAL_PATH := $(call my-dir)
2LOCAL_PATH_SAVED := $(LOCAL_PATH)
3
4include $(CLEAR_VARS)
5LOCAL_MODULE := ndn-cxx
Ivan Yeodb0052d2015-02-08 17:27:04 -08006NDN_CXX_BOOST_LIBS = system filesystem date_time iostreams program_options chrono random
Alexander Afanasyevf3812562016-01-21 16:28:33 -08007LOCAL_SHARED_LIBRARIES := cryptopp_shared $(addsuffix _shared,$(addprefix boost_,$(NDN_CXX_BOOST_LIBS)))
Alexander Afanasyev6ce35432015-12-02 18:48:59 -08008LOCAL_STATIC_LIBRARIES := sqlite3_static boost_regex_static
Alexander Afanasyev216df012015-02-10 17:35:46 -08009NDN_CXX_SRC_FILES := \
10 data.cpp \
11 encoding/block.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070012 encoding/block-helpers.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080013 encoding/buffer.cpp \
14 encoding/cryptopp/asn_ext.cpp \
15 encoding/encoder.cpp \
16 encoding/estimator.cpp \
17 encoding/nfd-constants.cpp \
18 encoding/oid.cpp \
19 exclude.cpp \
20 face.cpp \
21 interest-filter.cpp \
22 interest.cpp \
23 key-locator.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070024 link.cpp \
25 lp/cache-policy.cpp \
26 lp/detail/field-info.cpp \
27 lp/nack-header.cpp \
28 lp/nack.cpp \
29 lp/packet.cpp \
Alexander Afanasyev77a30092016-01-21 19:46:58 -080030 lp/tags.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080031 management/nfd-channel-status.cpp \
32 management/nfd-command-options.cpp \
33 management/nfd-control-command.cpp \
34 management/nfd-control-parameters.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080035 management/nfd-controller.cpp \
36 management/nfd-face-event-notification.cpp \
37 management/nfd-face-query-filter.cpp \
38 management/nfd-face-status.cpp \
39 management/nfd-fib-entry.cpp \
40 management/nfd-forwarder-status.cpp \
41 management/nfd-rib-entry.cpp \
42 management/nfd-strategy-choice.cpp \
43 meta-info.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070044 mgmt/control-response.cpp \
45 mgmt/dispatcher.cpp \
46 mgmt/status-dataset-context.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080047 name-component.cpp \
48 name.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070049 security/additional-description.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080050 security/certificate-cache-ttl.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070051 security/certificate-container.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080052 security/certificate-extension.cpp \
53 security/certificate-subject-description.cpp \
54 security/certificate.cpp \
55 security/digest-sha256.cpp \
56 security/identity-certificate.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070057 security/identity-container.cpp \
58 security/identity.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080059 security/key-chain.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070060 security/key-container.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080061 security/key-params.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070062 security/key.cpp \
63 security/pib-memory.cpp \
64 security/pib-sqlite3.cpp \
65 security/pib.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080066 security/public-key.cpp \
67 security/sec-public-info-sqlite3.cpp \
68 security/sec-public-info.cpp \
69 security/sec-rule-relative.cpp \
70 security/sec-rule-specific.cpp \
71 security/sec-tpm-file.cpp \
72 security/sec-tpm.cpp \
73 security/secured-bag.cpp \
74 security/signature-sha256-with-ecdsa.cpp \
75 security/signature-sha256-with-rsa.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070076 security/signing-helpers.cpp \
77 security/signing-info.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080078 security/validator-config.cpp \
79 security/validator-regex.cpp \
80 security/validator.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070081 security/validity-period.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080082 selectors.cpp \
83 signature-info.cpp \
84 signature.cpp \
85 transport/tcp-transport.cpp \
86 transport/unix-transport.cpp \
87 util/config-file.cpp \
88 util/crypto.cpp \
89 util/digest.cpp \
90 util/dns.cpp \
91 util/dummy-client-face.cpp \
92 util/ethernet.cpp \
93 util/face-uri.cpp \
94 util/in-memory-storage-entry.cpp \
95 util/in-memory-storage-fifo.cpp \
96 util/in-memory-storage-lfu.cpp \
97 util/in-memory-storage-lru.cpp \
98 util/in-memory-storage-persistent.cpp \
99 util/in-memory-storage.cpp \
100 util/indented-stream.cpp \
101 util/network-monitor.cpp \
102 util/random.cpp \
103 util/regex/regex-top-matcher.cpp \
104 util/scheduler-scoped-event-id.cpp \
105 util/scheduler.cpp \
106 util/segment-fetcher.cpp \
107 util/signal-connection.cpp \
108 util/signal-scoped-connection.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -0700109 util/sqlite3-statement.cpp \
110 util/string-helper.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800111 util/time-unit-test-clock.cpp \
112 util/time.cpp
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800113LOCAL_SRC_FILES := $(addprefix ndn-cxx/src/,$(NDN_CXX_SRC_FILES))
114LOCAL_CPPFLAGS := -I$(LOCAL_PATH)/ndn-cxx/src -I$(LOCAL_PATH)/ndn-cxx-android
115LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ndn-cxx-android
116include $(BUILD_SHARED_LIBRARY)
117
Alexander Afanasyevf3812562016-01-21 16:28:33 -0800118include $(LOCAL_PATH_SAVED)/cryptopp/extras/jni/Android.mk
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800119
Alexander Afanasyevf3812562016-01-21 16:28:33 -0800120$(call import-module,boost/1.59.0)
Alexander Afanasyev6ce35432015-12-02 18:48:59 -0800121$(call import-module,sqlite/3)