Chaitanya Pratapa | b367a24 | 2019-11-26 11:11:48 -0800 | [diff] [blame] | 1 | |
| 2 | cc_binary { |
| 3 | name: "ipacm", |
| 4 | |
| 5 | local_include_dirs: ["src"] + ["inc"], |
Michael Adisumarta | abc9dd3 | 2021-12-15 16:32:23 -0800 | [diff] [blame] | 6 | header_libs: ["device_kernel_headers"]+["qti_kernel_headers", |
| 7 | "libutils_headers", "libcutils_headers"], |
Chaitanya Pratapa | b367a24 | 2019-11-26 11:11:48 -0800 | [diff] [blame] | 8 | |
Luca Stefani | 84918fa | 2017-07-18 18:23:59 +0200 | [diff] [blame] | 9 | cflags: ["-DFEATURE_IPA_ANDROID"] + ["-DFEATURE_IPACM_RESTART"] + [ |
Chaitanya Pratapa | b367a24 | 2019-11-26 11:11:48 -0800 | [diff] [blame] | 10 | "-DFEATURE_IPACM_HAL", |
Chaitanya Pratapa | f56cda8 | 2020-04-28 17:39:20 -0700 | [diff] [blame] | 11 | "-DDEBUG", |
Chaitanya Pratapa | b367a24 | 2019-11-26 11:11:48 -0800 | [diff] [blame] | 12 | "-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 Wear | 82b8666 | 2021-04-29 15:25:12 -0700 | [diff] [blame] | 61 | "android.hardware.tetheroffload.control@1.1", |
Chaitanya Pratapa | b367a24 | 2019-11-26 11:11:48 -0800 | [diff] [blame] | 62 | ], |
| 63 | } |
| 64 | |
| 65 | //############################################################################### |
| 66 | |
| 67 | prebuilt_etc { |
| 68 | name: "IPACM_cfg.xml", |
| 69 | |
| 70 | vendor: true, |
| 71 | owner: "ipacm", |
| 72 | src: "src/IPACM_cfg.xml", |
| 73 | |
| 74 | } |
Chaitanya Pratapa | 5382a1e | 2021-03-02 23:39:52 -0800 | [diff] [blame] | 75 | |
| 76 | prebuilt_etc { |
| 77 | name: "IPACM_Filter_cfg.xml", |
| 78 | |
| 79 | vendor: true, |
| 80 | owner: "ipacm", |
| 81 | src: "src/IPACM_Filter_cfg.xml", |
| 82 | |
| 83 | } |