blob: 10fccf29b7c33111b5b202438f2c20b536d8c8cf [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"],
Chaitanya Pratapab367a242019-11-26 11:11:48 -080042 vendor: true,
43
44 shared_libs: [
45 "liboffloadhal",
46 "libipanat",
47 "libxml2",
48 "libnfnetlink",
49 "libnetfilter_conntrack",
50 "libhidlbase",
51 "liblog",
52 "libcutils",
53 "libdl",
54 "libbase",
55 "libutils",
56 "libhardware_legacy",
57 "libhardware",
58 "android.hardware.tetheroffload.config@1.0",
59 "android.hardware.tetheroffload.control@1.0",
Tyler Wear82b86662021-04-29 15:25:12 -070060 "android.hardware.tetheroffload.control@1.1",
Chaitanya Pratapab367a242019-11-26 11:11:48 -080061 ],
62}
63
64//###############################################################################
65
66prebuilt_etc {
67 name: "IPACM_cfg.xml",
68
69 vendor: true,
70 owner: "ipacm",
71 src: "src/IPACM_cfg.xml",
72
73}
Chaitanya Pratapa5382a1e2021-03-02 23:39:52 -080074
75prebuilt_etc {
76 name: "IPACM_Filter_cfg.xml",
77
78 vendor: true,
79 owner: "ipacm",
80 src: "src/IPACM_Filter_cfg.xml",
81
82}