blob: c3273f2ca5b1a4e983f0b917cf1640712c17bf4b [file] [log] [blame]
Chaitanya Pratapab367a242019-11-26 11:11:48 -08001
2cc_binary {
3 name: "ipacm",
4
5 local_include_dirs: ["src"] + ["inc"],
Michael Adisumartaabc9dd32021-12-15 16:32:23 -08006 header_libs: ["device_kernel_headers"]+["qti_kernel_headers",
7 "libutils_headers", "libcutils_headers"],
Chaitanya Pratapab367a242019-11-26 11:11:48 -08008
Luca Stefani84918fa2017-07-18 18:23:59 +02009 cflags: ["-DFEATURE_IPA_ANDROID"] + ["-DFEATURE_IPACM_RESTART"] + [
Chaitanya Pratapab367a242019-11-26 11:11:48 -080010 "-DFEATURE_IPACM_HAL",
Chaitanya Pratapaf56cda82020-04-28 17:39:20 -070011 "-DDEBUG",
Chaitanya Pratapab367a242019-11-26 11:11:48 -080012 "-Wall",
13 "-Werror",
14 "-Wno-error=macro-redefined",
15 ],
16
17 srcs: [
18 "src/IPACM_Main.cpp",
19 "src/IPACM_EvtDispatcher.cpp",
20 "src/IPACM_Config.cpp",
21 "src/IPACM_CmdQueue.cpp",
22 "src/IPACM_Filtering.cpp",
23 "src/IPACM_Routing.cpp",
24 "src/IPACM_Header.cpp",
25 "src/IPACM_Lan.cpp",
26 "src/IPACM_Iface.cpp",
27 "src/IPACM_Wlan.cpp",
28 "src/IPACM_Wan.cpp",
29 "src/IPACM_IfaceManager.cpp",
30 "src/IPACM_Neighbor.cpp",
31 "src/IPACM_Netlink.cpp",
32 "src/IPACM_Xml.cpp",
33 "src/IPACM_Conntrack_NATApp.cpp",
34 "src/IPACM_ConntrackClient.cpp",
35 "src/IPACM_ConntrackListener.cpp",
36 "src/IPACM_Log.cpp",
37 "src/IPACM_OffloadManager.cpp",
38 "src/IPACM_LanToLan.cpp",
39 ],
40
41 init_rc: ["src/ipacm.rc"],
42 clang: true,
43 vendor: true,
44
45 shared_libs: [
46 "liboffloadhal",
47 "libipanat",
48 "libxml2",
49 "libnfnetlink",
50 "libnetfilter_conntrack",
51 "libhidlbase",
52 "liblog",
53 "libcutils",
54 "libdl",
55 "libbase",
56 "libutils",
57 "libhardware_legacy",
58 "libhardware",
59 "android.hardware.tetheroffload.config@1.0",
60 "android.hardware.tetheroffload.control@1.0",
Tyler Wear82b86662021-04-29 15:25:12 -070061 "android.hardware.tetheroffload.control@1.1",
Chaitanya Pratapab367a242019-11-26 11:11:48 -080062 ],
63}
64
65//###############################################################################
66
67prebuilt_etc {
68 name: "IPACM_cfg.xml",
69
70 vendor: true,
71 owner: "ipacm",
72 src: "src/IPACM_cfg.xml",
73
74}
Chaitanya Pratapa5382a1e2021-03-02 23:39:52 -080075
76prebuilt_etc {
77 name: "IPACM_Filter_cfg.xml",
78
79 vendor: true,
80 owner: "ipacm",
81 src: "src/IPACM_Filter_cfg.xml",
82
83}