blob: c185955e338c5a69ee72162ee2b45376cbfd321f [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 Afanasyevf3812562016-01-21 16:28:33 -08009LOCAL_SHARED_LIBRARIES := cryptopp_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 \
14 core/network-interface.cpp \
15 core/network.cpp \
16 core/privilege-helper.cpp \
17 core/random.cpp \
Alexander Afanasyev54732342015-12-02 16:34:25 -080018 core/scheduler.cpp \
19 ../nfd-android/custom-logger.cpp \
20 ../nfd-android/custom-logger-factory.cpp \
21 \
Alexander Afanasyev216df012015-02-10 17:35:46 -080022 daemon/face/channel.cpp \
23 daemon/face/face.cpp \
Alexander Afanasyev150c2642015-09-11 01:10:55 -070024 daemon/face/internal-client-face.cpp \
25 daemon/face/internal-face.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080026 daemon/face/multicast-udp-face.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070027 daemon/face/ndnlp-data.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080028 daemon/face/ndnlp-partial-message-store.cpp \
29 daemon/face/ndnlp-sequence-generator.cpp \
30 daemon/face/ndnlp-slicer.cpp \
31 daemon/face/null-face.cpp \
32 daemon/face/tcp-channel.cpp \
33 daemon/face/tcp-face.cpp \
34 daemon/face/tcp-factory.cpp \
35 daemon/face/udp-channel.cpp \
36 daemon/face/udp-face.cpp \
37 daemon/face/udp-factory.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070038 daemon/face/websocket-channel.cpp \
39 daemon/face/websocket-face.cpp \
40 daemon/face/websocket-factory.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080041 daemon/fw/access-strategy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080042 daemon/fw/best-route-strategy.cpp \
43 daemon/fw/best-route-strategy2.cpp \
44 daemon/fw/broadcast-strategy.cpp \
45 daemon/fw/client-control-strategy.cpp \
46 daemon/fw/face-table.cpp \
47 daemon/fw/forwarder.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070048 daemon/fw/multicast-strategy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080049 daemon/fw/ncc-strategy.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070050 daemon/fw/retx-suppression-exponential.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070051 daemon/fw/retx-suppression-fixed.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070052 daemon/fw/retx-suppression.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080053 daemon/fw/rtt-estimator.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070054 daemon/fw/strategy-registry.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070055 daemon/fw/strategy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080056 daemon/mgmt/command-validator.cpp \
57 daemon/mgmt/face-manager.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080058 daemon/mgmt/fib-manager.cpp \
Alexander Afanasyev150c2642015-09-11 01:10:55 -070059 daemon/mgmt/forwarder-status-manager.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080060 daemon/mgmt/general-config-section.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080061 daemon/mgmt/manager-base.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080062 daemon/mgmt/strategy-choice-manager.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080063 daemon/mgmt/tables-config-section.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070064 daemon/nfd.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080065 daemon/table/cs-entry-impl.cpp \
66 daemon/table/cs-entry.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070067 daemon/table/cs-policy-lru.cpp \
68 daemon/table/cs-policy-priority-fifo.cpp \
69 daemon/table/cs-policy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080070 daemon/table/cs.cpp \
71 daemon/table/dead-nonce-list.cpp \
72 daemon/table/fib-entry.cpp \
73 daemon/table/fib-nexthop.cpp \
74 daemon/table/fib.cpp \
75 daemon/table/measurements-accessor.cpp \
76 daemon/table/measurements-entry.cpp \
77 daemon/table/measurements.cpp \
78 daemon/table/name-tree-entry.cpp \
79 daemon/table/name-tree.cpp \
Alexander Afanasyev150c2642015-09-11 01:10:55 -070080 daemon/table/network-region-table.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080081 daemon/table/pit-entry.cpp \
82 daemon/table/pit-face-record.cpp \
83 daemon/table/pit-in-record.cpp \
84 daemon/table/pit-out-record.cpp \
85 daemon/table/pit.cpp \
86 daemon/table/strategy-choice-entry.cpp \
87 daemon/table/strategy-choice.cpp \
88 daemon/table/strategy-info-host.cpp \
89 \
90 rib/fib-update.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070091 rib/fib-updater.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080092 rib/nrd.cpp \
93 rib/remote-registrator.cpp \
94 rib/rib-entry.cpp \
95 rib/rib-manager.cpp \
96 rib/rib-status-publisher.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070097 rib/rib-update-batch.cpp \
98 rib/rib-update.cpp \
99 rib/rib.cpp \
100 rib/route.cpp
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800101LOCAL_SRC_FILES := $(addprefix NFD/,$(NFD_DAEMON_SRC_FILES))
Alexander Afanasyev54732342015-12-02 16:34:25 -0800102LOCAL_CPPFLAGS := \
103 -I$(LOCAL_PATH)/nfd-android \
104 -I$(LOCAL_PATH)/NFD \
105 -I$(LOCAL_PATH)/NFD/core \
106 -I$(LOCAL_PATH)/NFD/daemon \
107 -I$(LOCAL_PATH)/NFD/rib \
108 -I$(LOCAL_PATH)/NFD/websocketpp
Alexander Afanasyev216df012015-02-10 17:35:46 -0800109LOCAL_LDLIBS := -llog
Alexander Afanasyev54732342015-12-02 16:34:25 -0800110LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/nfd-android $(LOCAL_PATH)/NFD
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800111include $(BUILD_SHARED_LIBRARY)