blob: d467bac0e168cdaa7f72f5df1b3bfe62f6bca0e3 [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 Afanasyeva8d404b2016-11-05 10:07:08 -06007LOCAL_SHARED_LIBRARIES := cryptopp_shared opencrypto_shared openssl_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 \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070011 encoding/block-helpers.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060012 encoding/block.cpp \
13 encoding/buffer-stream.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080014 encoding/buffer.cpp \
15 encoding/cryptopp/asn_ext.cpp \
16 encoding/encoder.cpp \
17 encoding/estimator.cpp \
18 encoding/nfd-constants.cpp \
19 encoding/oid.cpp \
20 exclude.cpp \
21 face.cpp \
22 interest-filter.cpp \
23 interest.cpp \
24 key-locator.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070025 link.cpp \
26 lp/cache-policy.cpp \
27 lp/detail/field-info.cpp \
28 lp/nack-header.cpp \
29 lp/nack.cpp \
30 lp/packet.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080031 meta-info.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070032 mgmt/control-response.cpp \
33 mgmt/dispatcher.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060034 mgmt/nfd/channel-status.cpp \
35 mgmt/nfd/command-options.cpp \
36 mgmt/nfd/control-command.cpp \
37 mgmt/nfd/control-parameters.cpp \
38 mgmt/nfd/controller.cpp \
39 mgmt/nfd/face-event-notification.cpp \
40 mgmt/nfd/face-query-filter.cpp \
41 mgmt/nfd/face-status.cpp \
42 mgmt/nfd/fib-entry.cpp \
43 mgmt/nfd/forwarder-status.cpp \
44 mgmt/nfd/rib-entry.cpp \
45 mgmt/nfd/status-dataset.cpp \
46 mgmt/nfd/strategy-choice.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070047 mgmt/status-dataset-context.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080048 name-component.cpp \
49 name.cpp \
50 security/certificate-cache-ttl.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070051 security/certificate-container.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060052 security/command-interest-validator.cpp \
53 security/detail/openssl-helper.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080054 security/digest-sha256.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070055 security/identity-container.cpp \
56 security/identity.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080057 security/key-chain.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070058 security/key-container.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080059 security/key-params.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070060 security/key.cpp \
61 security/pib-memory.cpp \
62 security/pib-sqlite3.cpp \
63 security/pib.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060064 security/safe-bag.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080065 security/sec-public-info-sqlite3.cpp \
66 security/sec-public-info.cpp \
67 security/sec-rule-relative.cpp \
68 security/sec-rule-specific.cpp \
69 security/sec-tpm-file.cpp \
70 security/sec-tpm.cpp \
71 security/secured-bag.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060072 security/security-common.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080073 security/signature-sha256-with-ecdsa.cpp \
74 security/signature-sha256-with-rsa.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070075 security/signing-helpers.cpp \
76 security/signing-info.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060077 security/transform/base64-decode.cpp \
78 security/transform/base64-encode.cpp \
79 security/transform/block-cipher.cpp \
80 security/transform/bool-sink.cpp \
81 security/transform/buffer-source.cpp \
82 security/transform/digest-filter.cpp \
83 security/transform/hex-decode.cpp \
84 security/transform/hex-encode.cpp \
85 security/transform/hmac-filter.cpp \
86 security/transform/private-key.cpp \
87 security/transform/public-key.cpp \
88 security/transform/signer-filter.cpp \
89 security/transform/step-source.cpp \
90 security/transform/stream-sink.cpp \
91 security/transform/stream-source.cpp \
92 security/transform/strip-space.cpp \
93 security/transform/transform-base.cpp \
94 security/transform/verifier-filter.cpp \
95 security/v1/certificate-extension.cpp \
96 security/v1/certificate-subject-description.cpp \
97 security/v1/certificate.cpp \
98 security/v1/identity-certificate.cpp \
99 security/v1/public-key.cpp \
100 security/v2/additional-description.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800101 security/validator-config.cpp \
102 security/validator-regex.cpp \
103 security/validator.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -0700104 security/validity-period.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800105 selectors.cpp \
106 signature-info.cpp \
107 signature.cpp \
108 transport/tcp-transport.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600109 transport/transport.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800110 transport/unix-transport.cpp \
111 util/config-file.cpp \
112 util/crypto.cpp \
113 util/digest.cpp \
114 util/dns.cpp \
115 util/dummy-client-face.cpp \
116 util/ethernet.cpp \
117 util/face-uri.cpp \
118 util/in-memory-storage-entry.cpp \
119 util/in-memory-storage-fifo.cpp \
120 util/in-memory-storage-lfu.cpp \
121 util/in-memory-storage-lru.cpp \
122 util/in-memory-storage-persistent.cpp \
123 util/in-memory-storage.cpp \
124 util/indented-stream.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600125 util/io.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800126 util/network-monitor.cpp \
127 util/random.cpp \
128 util/regex/regex-top-matcher.cpp \
129 util/scheduler-scoped-event-id.cpp \
130 util/scheduler.cpp \
131 util/segment-fetcher.cpp \
132 util/signal-connection.cpp \
133 util/signal-scoped-connection.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -0700134 util/sqlite3-statement.cpp \
135 util/string-helper.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800136 util/time-unit-test-clock.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600137 util/time.cpp \
138 ../../ndn-cxx-android/ndn-cxx-custom-logger.cpp \
139 ../../ndn-cxx-android/ndn-cxx-custom-logging.cpp
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800140LOCAL_SRC_FILES := $(addprefix ndn-cxx/src/,$(NDN_CXX_SRC_FILES))
Alexander Afanasyev93886942016-02-09 16:00:24 -0800141LOCAL_CPPFLAGS := -I$(LOCAL_PATH)/ndn-cxx/src -I$(LOCAL_PATH)/ndn-cxx-android -I$(LOCAL_PATH)/../../../build/generated/source/ndn-cxx
142LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ndn-cxx-android $(LOCAL_PATH)/../../../build/generated/source/include
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600143LOCAL_LDLIBS := -llog
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800144include $(BUILD_SHARED_LIBRARY)
145
Alexander Afanasyevf3812562016-01-21 16:28:33 -0800146include $(LOCAL_PATH_SAVED)/cryptopp/extras/jni/Android.mk
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800147
Alexander Afanasyevf3812562016-01-21 16:28:33 -0800148$(call import-module,boost/1.59.0)
Alexander Afanasyev6ce35432015-12-02 18:48:59 -0800149$(call import-module,sqlite/3)
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600150$(call import-module,openssl/1.0.2h)