blob: c8e6818b9c3d38c562cefbaa6899f27cf65e143f [file] [log] [blame]
Alexander Afanasyev087c7c12015-02-02 00:21:21 -08001LOCAL_PATH := $(call my-dir)
2LOCAL_PATH_SAVED := $(LOCAL_PATH)
3
Alexander Afanasyevc134b6f2015-02-12 17:01:44 -08004NFD_BOOST_LIBS = system filesystem chrono program_options random thread
Alexander Afanasyev087c7c12015-02-02 00:21:21 -08005
Alexander Afanasyev54732342015-12-02 16:34:25 -08006# nfd itself
Alexander Afanasyev087c7c12015-02-02 00:21:21 -08007include $(CLEAR_VARS)
Alexander Afanasyev54732342015-12-02 16:34:25 -08008LOCAL_MODULE := nfd-daemon
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -06009LOCAL_SHARED_LIBRARIES := cryptopp_shared openssl_shared ndn-cxx $(addsuffix _shared,$(addprefix boost_,$(NFD_BOOST_LIBS)))
Alexander Afanasyev54732342015-12-02 16:34:25 -080010NFD_DAEMON_SRC_FILES := \
Alexander Afanasyev216df012015-02-10 17:35:46 -080011 core/city-hash.cpp \
12 core/config-file.cpp \
13 core/global-io.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060014 core/manager-base.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080015 core/network-interface.cpp \
16 core/network.cpp \
17 core/privilege-helper.cpp \
18 core/random.cpp \
Alexander Afanasyev54732342015-12-02 16:34:25 -080019 core/scheduler.cpp \
20 ../nfd-android/custom-logger.cpp \
21 ../nfd-android/custom-logger-factory.cpp \
22 \
Alexander Afanasyev216df012015-02-10 17:35:46 -080023 daemon/face/channel.cpp \
Alexander Afanasyev77a30092016-01-21 19:46:58 -080024 daemon/face/face-counters.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060025 daemon/face/face.cpp \
Alexander Afanasyev77a30092016-01-21 19:46:58 -080026 daemon/face/generic-link-service.cpp \
Alexander Afanasyev150c2642015-09-11 01:10:55 -070027 daemon/face/internal-face.cpp \
Alexander Afanasyev77a30092016-01-21 19:46:58 -080028 daemon/face/internal-transport.cpp \
29 daemon/face/link-service.cpp \
30 daemon/face/lp-fragmenter.cpp \
31 daemon/face/lp-reassembler.cpp \
32 daemon/face/multicast-udp-transport.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080033 daemon/face/null-face.cpp \
34 daemon/face/tcp-channel.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080035 daemon/face/tcp-factory.cpp \
Alexander Afanasyev77a30092016-01-21 19:46:58 -080036 daemon/face/tcp-transport.cpp \
37 daemon/face/transport.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080038 daemon/face/udp-channel.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080039 daemon/face/udp-factory.cpp \
Alexander Afanasyev77a30092016-01-21 19:46:58 -080040 daemon/face/udp-protocol.cpp \
41 daemon/face/unicast-udp-transport.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070042 daemon/face/websocket-channel.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070043 daemon/face/websocket-factory.cpp \
Alexander Afanasyev77a30092016-01-21 19:46:58 -080044 daemon/face/websocket-transport.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080045 daemon/fw/access-strategy.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060046 daemon/fw/asf-measurements.cpp \
47 daemon/fw/asf-probing-module.cpp \
48 daemon/fw/asf-strategy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080049 daemon/fw/best-route-strategy.cpp \
50 daemon/fw/best-route-strategy2.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080051 daemon/fw/client-control-strategy.cpp \
52 daemon/fw/face-table.cpp \
53 daemon/fw/forwarder.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070054 daemon/fw/multicast-strategy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080055 daemon/fw/ncc-strategy.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060056 daemon/fw/pit-algorithm.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070057 daemon/fw/retx-suppression-exponential.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070058 daemon/fw/retx-suppression-fixed.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070059 daemon/fw/retx-suppression.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080060 daemon/fw/rtt-estimator.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070061 daemon/fw/strategy-registry.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070062 daemon/fw/strategy.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060063 daemon/fw/unsolicited-data-policy.cpp \
64 daemon/main.cpp \
65 daemon/mgmt/command-authenticator.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080066 daemon/mgmt/face-manager.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080067 daemon/mgmt/fib-manager.cpp \
Alexander Afanasyev150c2642015-09-11 01:10:55 -070068 daemon/mgmt/forwarder-status-manager.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080069 daemon/mgmt/general-config-section.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060070 daemon/mgmt/nfd-manager-base.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080071 daemon/mgmt/strategy-choice-manager.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080072 daemon/mgmt/tables-config-section.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070073 daemon/nfd.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060074 daemon/table/cleanup.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080075 daemon/table/cs-entry-impl.cpp \
76 daemon/table/cs-entry.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060077 daemon/table/cs-policy-lru.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070078 daemon/table/cs-policy-priority-fifo.cpp \
79 daemon/table/cs-policy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080080 daemon/table/cs.cpp \
81 daemon/table/dead-nonce-list.cpp \
82 daemon/table/fib-entry.cpp \
83 daemon/table/fib-nexthop.cpp \
84 daemon/table/fib.cpp \
85 daemon/table/measurements-accessor.cpp \
86 daemon/table/measurements-entry.cpp \
87 daemon/table/measurements.cpp \
88 daemon/table/name-tree-entry.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060089 daemon/table/name-tree-hashtable.cpp \
90 daemon/table/name-tree-iterator.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080091 daemon/table/name-tree.cpp \
Alexander Afanasyev150c2642015-09-11 01:10:55 -070092 daemon/table/network-region-table.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080093 daemon/table/pit-entry.cpp \
94 daemon/table/pit-face-record.cpp \
95 daemon/table/pit-in-record.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -060096 daemon/table/pit-iterator.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080097 daemon/table/pit-out-record.cpp \
98 daemon/table/pit.cpp \
99 daemon/table/strategy-choice-entry.cpp \
100 daemon/table/strategy-choice.cpp \
101 daemon/table/strategy-info-host.cpp \
102 \
Alexander Afanasyev77a30092016-01-21 19:46:58 -0800103 rib/auto-prefix-propagator.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800104 rib/fib-update.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -0700105 rib/fib-updater.cpp \
Alexander Afanasyev77a30092016-01-21 19:46:58 -0800106 rib/propagated-entry.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800107 rib/rib-entry.cpp \
108 rib/rib-manager.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -0700109 rib/rib-update-batch.cpp \
110 rib/rib-update.cpp \
111 rib/rib.cpp \
Alexander Afanasyeva8d404b2016-11-05 10:07:08 -0600112 rib/route.cpp \
113 rib/service.cpp
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800114LOCAL_SRC_FILES := $(addprefix NFD/,$(NFD_DAEMON_SRC_FILES))
Alexander Afanasyev54732342015-12-02 16:34:25 -0800115LOCAL_CPPFLAGS := \
116 -I$(LOCAL_PATH)/nfd-android \
117 -I$(LOCAL_PATH)/NFD \
118 -I$(LOCAL_PATH)/NFD/core \
119 -I$(LOCAL_PATH)/NFD/daemon \
120 -I$(LOCAL_PATH)/NFD/rib \
121 -I$(LOCAL_PATH)/NFD/websocketpp
Alexander Afanasyev216df012015-02-10 17:35:46 -0800122LOCAL_LDLIBS := -llog
Alexander Afanasyev54732342015-12-02 16:34:25 -0800123LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/nfd-android $(LOCAL_PATH)/NFD
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800124include $(BUILD_SHARED_LIBRARY)