blob: d12a5b689a947b01c93d27993aa5055152c2f72a [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 Afanasyev79a0fff2017-12-05 12:45:14 -05007LOCAL_SHARED_LIBRARIES := libcrypto_shared libssl_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 Afanasyev79a0fff2017-12-05 12:45:14 -050011 delegation-list.cpp \
12 delegation.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070013 encoding/block-helpers.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060014 encoding/block.cpp \
15 encoding/buffer-stream.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080016 encoding/buffer.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080017 encoding/encoder.cpp \
18 encoding/estimator.cpp \
19 encoding/nfd-constants.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -050020 encoding/tlv.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080021 exclude.cpp \
22 face.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -050023 ims/in-memory-storage-entry.cpp \
24 ims/in-memory-storage-fifo.cpp \
25 ims/in-memory-storage-lfu.cpp \
26 ims/in-memory-storage-lru.cpp \
27 ims/in-memory-storage-persistent.cpp \
28 ims/in-memory-storage.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080029 interest-filter.cpp \
30 interest.cpp \
31 key-locator.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070032 link.cpp \
33 lp/cache-policy.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070034 lp/nack-header.cpp \
35 lp/nack.cpp \
36 lp/packet.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080037 meta-info.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070038 mgmt/control-response.cpp \
39 mgmt/dispatcher.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060040 mgmt/nfd/channel-status.cpp \
41 mgmt/nfd/command-options.cpp \
42 mgmt/nfd/control-command.cpp \
43 mgmt/nfd/control-parameters.cpp \
44 mgmt/nfd/controller.cpp \
45 mgmt/nfd/face-event-notification.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -050046 mgmt/nfd/face-monitor.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060047 mgmt/nfd/face-query-filter.cpp \
48 mgmt/nfd/face-status.cpp \
49 mgmt/nfd/fib-entry.cpp \
50 mgmt/nfd/forwarder-status.cpp \
51 mgmt/nfd/rib-entry.cpp \
52 mgmt/nfd/status-dataset.cpp \
53 mgmt/nfd/strategy-choice.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070054 mgmt/status-dataset-context.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080055 name-component.cpp \
56 name.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -050057 net/address-converter.cpp \
58 net/detail/link-type-helper.cpp \
59 net/detail/linux-if-constants.cpp \
60 net/detail/network-monitor-impl-rtnl.cpp \
61 net/dns.cpp \
62 net/ethernet.cpp \
63 net/face-uri.cpp \
64 net/network-address.cpp \
65 net/network-interface.cpp \
66 net/network-monitor-stub.cpp \
67 net/network-monitor.cpp \
68 packet-base.cpp \
69 security/command-interest-signer.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060070 security/detail/openssl-helper.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080071 security/digest-sha256.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080072 security/key-params.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -050073 security/pib/certificate-container.cpp \
74 security/pib/detail/identity-impl.cpp \
75 security/pib/detail/key-impl.cpp \
76 security/pib/identity-container.cpp \
77 security/pib/identity.cpp \
78 security/pib/key-container.cpp \
79 security/pib/key.cpp \
80 security/pib/pib-memory.cpp \
81 security/pib/pib-sqlite3.cpp \
82 security/pib/pib.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060083 security/safe-bag.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060084 security/security-common.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080085 security/signature-sha256-with-ecdsa.cpp \
86 security/signature-sha256-with-rsa.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070087 security/signing-helpers.cpp \
88 security/signing-info.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -050089 security/tpm/back-end-file.cpp \
90 security/tpm/back-end-mem.cpp \
91 security/tpm/back-end.cpp \
92 security/tpm/key-handle-mem.cpp \
93 security/tpm/key-handle.cpp \
94 security/tpm/tpm.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060095 security/transform/base64-decode.cpp \
96 security/transform/base64-encode.cpp \
97 security/transform/block-cipher.cpp \
98 security/transform/bool-sink.cpp \
99 security/transform/buffer-source.cpp \
100 security/transform/digest-filter.cpp \
101 security/transform/hex-decode.cpp \
102 security/transform/hex-encode.cpp \
103 security/transform/hmac-filter.cpp \
104 security/transform/private-key.cpp \
105 security/transform/public-key.cpp \
106 security/transform/signer-filter.cpp \
107 security/transform/step-source.cpp \
108 security/transform/stream-sink.cpp \
109 security/transform/stream-source.cpp \
110 security/transform/strip-space.cpp \
111 security/transform/transform-base.cpp \
112 security/transform/verifier-filter.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600113 security/v2/additional-description.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -0500114 security/v2/certificate-bundle-fetcher.cpp \
115 security/v2/certificate-cache.cpp \
116 security/v2/certificate-fetcher-direct-fetch.cpp \
117 security/v2/certificate-fetcher-from-network.cpp \
118 security/v2/certificate-fetcher-offline.cpp \
119 security/v2/certificate-fetcher.cpp \
120 security/v2/certificate-storage.cpp \
121 security/v2/certificate.cpp \
122 security/v2/key-chain.cpp \
123 security/v2/trust-anchor-container.cpp \
124 security/v2/trust-anchor-group.cpp \
125 security/v2/validation-error.cpp \
126 security/v2/validation-policy-command-interest.cpp \
127 security/v2/validation-policy-config.cpp \
128 security/v2/validation-policy-simple-hierarchy.cpp \
129 security/v2/validation-policy.cpp \
130 security/v2/validation-state.cpp \
131 security/v2/validator-config/checker.cpp \
132 security/v2/validator-config/filter.cpp \
133 security/v2/validator-config/name-relation.cpp \
134 security/v2/validator-config/rule.cpp \
135 security/v2/validator.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800136 security/validator-config.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -0500137 security/validator-null.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -0700138 security/validity-period.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -0500139 security/verification-helpers.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800140 selectors.cpp \
141 signature-info.cpp \
142 signature.cpp \
143 transport/tcp-transport.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600144 transport/transport.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800145 transport/unix-transport.cpp \
146 util/config-file.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800147 util/dummy-client-face.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800148 util/indented-stream.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600149 util/io.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -0500150 util/notification-subscriber.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800151 util/random.cpp \
152 util/regex/regex-top-matcher.cpp \
153 util/scheduler-scoped-event-id.cpp \
154 util/scheduler.cpp \
155 util/segment-fetcher.cpp \
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -0500156 util/sha256.cpp \
157 util/signal/connection.cpp \
158 util/signal/scoped-connection.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -0700159 util/sqlite3-statement.cpp \
160 util/string-helper.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800161 util/time-unit-test-clock.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600162 util/time.cpp \
163 ../../ndn-cxx-android/ndn-cxx-custom-logger.cpp \
164 ../../ndn-cxx-android/ndn-cxx-custom-logging.cpp
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800165LOCAL_SRC_FILES := $(addprefix ndn-cxx/src/,$(NDN_CXX_SRC_FILES))
Alexander Afanasyev93886942016-02-09 16:00:24 -0800166LOCAL_CPPFLAGS := -I$(LOCAL_PATH)/ndn-cxx/src -I$(LOCAL_PATH)/ndn-cxx-android -I$(LOCAL_PATH)/../../../build/generated/source/ndn-cxx
167LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ndn-cxx-android $(LOCAL_PATH)/../../../build/generated/source/include
Alexander Afanasyev79a0fff2017-12-05 12:45:14 -0500168LOCAL_LDLIBS := -llog -latomic
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800169include $(BUILD_SHARED_LIBRARY)
170
Alexander Afanasyevda066292017-11-12 23:02:31 -0500171$(call import-module,../packages/boost/1.65.1)
172$(call import-module,../packages/sqlite/3.18.0)
173$(call import-module,../packages/openssl/1.0.2m)