blob: 1b8ea60049cfb339c2a95c149fa169cfee7b11d4 [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
6# core
7include $(CLEAR_VARS)
8LOCAL_MODULE := nfd-core
9LOCAL_SHARED_LIBRARIES := cryptopp ndn-cxx $(addsuffix _shared,$(addprefix boost_,$(NFD_BOOST_LIBS)))
Alexander Afanasyev216df012015-02-10 17:35:46 -080010NFD_CORE_SRC_FILES := \
11 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 \
18 core/scheduler.cpp
19LOCAL_SRC_FILES := $(addprefix NFD/,$(NFD_CORE_SRC_FILES)) \
20 nfd-android/custom-logger.cpp \
21 nfd-android/custom-logger-factory.cpp
Alexander Afanasyev087c7c12015-02-02 00:21:21 -080022LOCAL_CPPFLAGS := -I$(LOCAL_PATH)/nfd-android -I$(LOCAL_PATH)/NFD -I$(LOCAL_PATH)/NFD/core
23LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/nfd-android $(LOCAL_PATH)/NFD $(LOCAL_PATH)/NFD/core
24include $(BUILD_STATIC_LIBRARY)
25
26# nfd itself
27include $(CLEAR_VARS)
28LOCAL_MODULE := nfd-daemon
29LOCAL_SHARED_LIBRARIES := cryptopp ndn-cxx $(addsuffix _shared,$(addprefix boost_,$(NFD_BOOST_LIBS)))
30LOCAL_STATIC_LIBRARIES := nfd-core
Alexander Afanasyev216df012015-02-10 17:35:46 -080031NFD_DAEMON_SRC_FILES := \
32 daemon/face/channel.cpp \
33 daemon/face/face.cpp \
34 daemon/face/multicast-udp-face.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070035 daemon/face/ndnlp-data.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080036 daemon/face/ndnlp-partial-message-store.cpp \
37 daemon/face/ndnlp-sequence-generator.cpp \
38 daemon/face/ndnlp-slicer.cpp \
39 daemon/face/null-face.cpp \
40 daemon/face/tcp-channel.cpp \
41 daemon/face/tcp-face.cpp \
42 daemon/face/tcp-factory.cpp \
43 daemon/face/udp-channel.cpp \
44 daemon/face/udp-face.cpp \
45 daemon/face/udp-factory.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070046 daemon/face/websocket-channel.cpp \
47 daemon/face/websocket-face.cpp \
48 daemon/face/websocket-factory.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080049 daemon/fw/access-strategy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080050 daemon/fw/best-route-strategy.cpp \
51 daemon/fw/best-route-strategy2.cpp \
52 daemon/fw/broadcast-strategy.cpp \
53 daemon/fw/client-control-strategy.cpp \
54 daemon/fw/face-table.cpp \
55 daemon/fw/forwarder.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070056 daemon/fw/multicast-strategy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080057 daemon/fw/ncc-strategy.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070058 daemon/fw/retx-suppression-exponential.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070059 daemon/fw/retx-suppression-fixed.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070060 daemon/fw/retx-suppression.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080061 daemon/fw/rtt-estimator.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -070062 daemon/fw/strategy-registry.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070063 daemon/fw/strategy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080064 daemon/mgmt/channel-status-publisher.cpp \
65 daemon/mgmt/command-validator.cpp \
66 daemon/mgmt/face-manager.cpp \
67 daemon/mgmt/face-query-status-publisher.cpp \
68 daemon/mgmt/face-status-publisher.cpp \
69 daemon/mgmt/fib-enumeration-publisher.cpp \
70 daemon/mgmt/fib-manager.cpp \
71 daemon/mgmt/general-config-section.cpp \
72 daemon/mgmt/internal-face.cpp \
73 daemon/mgmt/manager-base.cpp \
74 daemon/mgmt/status-server.cpp \
75 daemon/mgmt/strategy-choice-manager.cpp \
76 daemon/mgmt/strategy-choice-publisher.cpp \
77 daemon/mgmt/tables-config-section.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070078 daemon/nfd.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080079 daemon/table/cs-entry-impl.cpp \
80 daemon/table/cs-entry.cpp \
Alexander Afanasyevaacd65b2015-09-04 14:07:07 -070081 daemon/table/cs-policy-lru.cpp \
82 daemon/table/cs-policy-priority-fifo.cpp \
83 daemon/table/cs-policy.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -080084 daemon/table/cs.cpp \
85 daemon/table/dead-nonce-list.cpp \
86 daemon/table/fib-entry.cpp \
87 daemon/table/fib-nexthop.cpp \
88 daemon/table/fib.cpp \
89 daemon/table/measurements-accessor.cpp \
90 daemon/table/measurements-entry.cpp \
91 daemon/table/measurements.cpp \
92 daemon/table/name-tree-entry.cpp \
93 daemon/table/name-tree.cpp \
94 daemon/table/pit-entry.cpp \
95 daemon/table/pit-face-record.cpp \
96 daemon/table/pit-in-record.cpp \
97 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 \
103 rib/fib-update.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -0700104 rib/fib-updater.cpp \
Alexander Afanasyev216df012015-02-10 17:35:46 -0800105 rib/nrd.cpp \
106 rib/remote-registrator.cpp \
107 rib/rib-entry.cpp \
108 rib/rib-manager.cpp \
109 rib/rib-status-publisher.cpp \
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -0700110 rib/rib-update-batch.cpp \
111 rib/rib-update.cpp \
112 rib/rib.cpp \
113 rib/route.cpp
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800114LOCAL_SRC_FILES := $(addprefix NFD/,$(NFD_DAEMON_SRC_FILES))
Alexander Afanasyevedf1e2b2015-04-19 19:31:17 -0700115LOCAL_CPPFLAGS := -I$(LOCAL_PATH)/NFD/daemon -I$(LOCAL_PATH)/NFD/rib -I$(LOCAL_PATH)/NFD/websocketpp
Alexander Afanasyev216df012015-02-10 17:35:46 -0800116LOCAL_LDLIBS := -llog
Alexander Afanasyev087c7c12015-02-02 00:21:21 -0800117include $(BUILD_SHARED_LIBRARY)