Alexander Afanasyev | 087c7c1 | 2015-02-02 00:21:21 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | LOCAL_PATH_SAVED := $(LOCAL_PATH) |
| 3 | |
| 4 | include $(CLEAR_VARS) |
| 5 | LOCAL_MODULE := ndn-cxx |
Ivan Yeo | db0052d | 2015-02-08 17:27:04 -0800 | [diff] [blame] | 6 | NDN_CXX_BOOST_LIBS = system filesystem date_time iostreams program_options chrono random |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 7 | LOCAL_SHARED_LIBRARIES := libcrypto_shared libssl_shared $(addsuffix _shared,$(addprefix boost_,$(NDN_CXX_BOOST_LIBS))) |
Alexander Afanasyev | 6ce3543 | 2015-12-02 18:48:59 -0800 | [diff] [blame] | 8 | LOCAL_STATIC_LIBRARIES := sqlite3_static boost_regex_static |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 9 | NDN_CXX_SRC_FILES := \ |
| 10 | data.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 11 | delegation-list.cpp \ |
| 12 | delegation.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 13 | encoding/block-helpers.cpp \ |
Alexander Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 14 | encoding/block.cpp \ |
| 15 | encoding/buffer-stream.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 16 | encoding/buffer.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 17 | encoding/encoder.cpp \ |
| 18 | encoding/estimator.cpp \ |
| 19 | encoding/nfd-constants.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 20 | encoding/tlv.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 21 | exclude.cpp \ |
| 22 | face.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 23 | 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 Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 29 | interest-filter.cpp \ |
| 30 | interest.cpp \ |
| 31 | key-locator.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 32 | link.cpp \ |
| 33 | lp/cache-policy.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 34 | lp/nack-header.cpp \ |
| 35 | lp/nack.cpp \ |
| 36 | lp/packet.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 37 | meta-info.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 38 | mgmt/control-response.cpp \ |
| 39 | mgmt/dispatcher.cpp \ |
Alexander Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 40 | 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 Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 46 | mgmt/nfd/face-monitor.cpp \ |
Alexander Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 47 | 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 Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 54 | mgmt/status-dataset-context.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 55 | name-component.cpp \ |
| 56 | name.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 57 | 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 Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 70 | security/detail/openssl-helper.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 71 | security/digest-sha256.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 72 | security/key-params.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 73 | 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 Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 83 | security/safe-bag.cpp \ |
Alexander Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 84 | security/security-common.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 85 | security/signature-sha256-with-ecdsa.cpp \ |
| 86 | security/signature-sha256-with-rsa.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 87 | security/signing-helpers.cpp \ |
| 88 | security/signing-info.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 89 | 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 Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 95 | 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 Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 113 | security/v2/additional-description.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 114 | 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 Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 136 | security/validator-config.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 137 | security/validator-null.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 138 | security/validity-period.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 139 | security/verification-helpers.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 140 | selectors.cpp \ |
| 141 | signature-info.cpp \ |
| 142 | signature.cpp \ |
| 143 | transport/tcp-transport.cpp \ |
Alexander Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 144 | transport/transport.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 145 | transport/unix-transport.cpp \ |
| 146 | util/config-file.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 147 | util/dummy-client-face.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 148 | util/indented-stream.cpp \ |
Alexander Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 149 | util/io.cpp \ |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 150 | util/notification-subscriber.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 151 | 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 Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 156 | util/sha256.cpp \ |
| 157 | util/signal/connection.cpp \ |
| 158 | util/signal/scoped-connection.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 159 | util/sqlite3-statement.cpp \ |
| 160 | util/string-helper.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 161 | util/time-unit-test-clock.cpp \ |
Alexander Afanasyev | a8d404b | 2016-11-05 10:07:08 -0600 | [diff] [blame] | 162 | util/time.cpp \ |
| 163 | ../../ndn-cxx-android/ndn-cxx-custom-logger.cpp \ |
| 164 | ../../ndn-cxx-android/ndn-cxx-custom-logging.cpp |
Alexander Afanasyev | 087c7c1 | 2015-02-02 00:21:21 -0800 | [diff] [blame] | 165 | LOCAL_SRC_FILES := $(addprefix ndn-cxx/src/,$(NDN_CXX_SRC_FILES)) |
Alexander Afanasyev | 9388694 | 2016-02-09 16:00:24 -0800 | [diff] [blame] | 166 | LOCAL_CPPFLAGS := -I$(LOCAL_PATH)/ndn-cxx/src -I$(LOCAL_PATH)/ndn-cxx-android -I$(LOCAL_PATH)/../../../build/generated/source/ndn-cxx |
| 167 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ndn-cxx-android $(LOCAL_PATH)/../../../build/generated/source/include |
Alexander Afanasyev | 79a0fff | 2017-12-05 12:45:14 -0500 | [diff] [blame] | 168 | LOCAL_LDLIBS := -llog -latomic |
Alexander Afanasyev | 087c7c1 | 2015-02-02 00:21:21 -0800 | [diff] [blame] | 169 | include $(BUILD_SHARED_LIBRARY) |
| 170 | |
Alexander Afanasyev | da06629 | 2017-11-12 23:02:31 -0500 | [diff] [blame] | 171 | $(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) |