Simao Gomes Viana | 64e1d06 | 2016-08-20 16:43:22 +0200 | [diff] [blame^] | 1 | ifneq ($(TARGET_HAS_IPA_IN_DEVTREE),true) |
Ravinder Konka | cb36a6c | 2015-03-30 19:25:25 +0530 | [diff] [blame] | 2 | BOARD_PLATFORM_LIST := msm8916 |
| 3 | BOARD_PLATFORM_LIST += msm8909 |
| 4 | ifneq ($(call is-board-platform-in-list,$(BOARD_PLATFORM_LIST)),true) |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 5 | ifneq (,$(filter $(QCOM_BOARD_PLATFORMS),$(TARGET_BOARD_PLATFORM))) |
| 6 | ifneq (, $(filter aarch64 arm arm64, $(TARGET_ARCH))) |
| 7 | |
| 8 | LOCAL_PATH := $(call my-dir) |
| 9 | |
| 10 | include $(CLEAR_VARS) |
| 11 | |
| 12 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src |
| 13 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../inc |
| 14 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../ipanat/inc |
Shruthi Krishna | 8bff703 | 2014-11-03 22:54:51 -0800 | [diff] [blame] | 15 | ifeq ($(call is-platform-sdk-version-at-least,20),true) |
| 16 | LOCAL_C_INCLUDES += external/icu/icu4c/source/common |
| 17 | else |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 18 | LOCAL_C_INCLUDES += external/icu4c/common |
Shruthi Krishna | 8bff703 | 2014-11-03 22:54:51 -0800 | [diff] [blame] | 19 | endif |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 20 | LOCAL_C_INCLUDES += external/dhcpcd |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 21 | LOCAL_C_INCLUDES += external/libxml2/include |
| 22 | LOCAL_C_INCLUDES += external/libnetfilter_conntrack/include |
| 23 | LOCAL_C_INCLUDES += external/libnfnetlink/include |
| 24 | |
| 25 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 26 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 27 | |
| 28 | |
| 29 | LOCAL_CFLAGS := -v |
| 30 | LOCAL_CFLAGS += -DFEATURE_IPA_ANDROID |
Ravinder Konka | 75da2ca | 2015-09-03 18:29:14 +0530 | [diff] [blame] | 31 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 32 | LOCAL_CFLAGS += -DDEBUG |
Ravinder Konka | 75da2ca | 2015-09-03 18:29:14 +0530 | [diff] [blame] | 33 | endif |
Skylar Chang | ff639a2 | 2015-10-14 20:02:01 -0700 | [diff] [blame] | 34 | |
Skylar Chang | ba6fe11 | 2016-04-28 12:50:44 -0700 | [diff] [blame] | 35 | ifeq ($(TARGET_BOARD_PLATFORM),msmcobalt) |
Skylar Chang | ff639a2 | 2015-10-14 20:02:01 -0700 | [diff] [blame] | 36 | LOCAL_CFLAGS += -DFEATURE_IPA_V3 |
| 37 | endif |
| 38 | |
Skylar Chang | 61061e1 | 2015-02-04 17:55:00 -0800 | [diff] [blame] | 39 | filetoadd = bionic/libc/kernel/arch-arm/asm/posix_types.h |
| 40 | LOCAL_CFLAGS += $(shell if [ -a $(filetoadd) ] ; then echo -include $(filetoadd) ; fi ;) |
| 41 | filetoadd = bionic/libc/kernel/arch-arm/asm/byteorder.h |
| 42 | LOCAL_CFLAGS += $(shell if [ -a $(filetoadd) ] ; then echo -include $(filetoadd) ; fi ;) |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 43 | |
| 44 | LOCAL_SRC_FILES := IPACM_Main.cpp \ |
| 45 | IPACM_EvtDispatcher.cpp \ |
| 46 | IPACM_Config.cpp \ |
| 47 | IPACM_CmdQueue.cpp \ |
| 48 | IPACM_Filtering.cpp \ |
| 49 | IPACM_Routing.cpp \ |
| 50 | IPACM_Header.cpp \ |
| 51 | IPACM_Lan.cpp \ |
| 52 | IPACM_Iface.cpp \ |
| 53 | IPACM_Wlan.cpp \ |
| 54 | IPACM_Wan.cpp \ |
| 55 | IPACM_IfaceManager.cpp \ |
| 56 | IPACM_Neighbor.cpp \ |
| 57 | IPACM_Netlink.cpp \ |
| 58 | IPACM_Xml.cpp \ |
| 59 | IPACM_Conntrack_NATApp.cpp\ |
| 60 | IPACM_ConntrackClient.cpp \ |
| 61 | IPACM_ConntrackListener.cpp \ |
| 62 | IPACM_Log.cpp |
| 63 | |
| 64 | LOCAL_MODULE := ipacm |
Aravind Asam | b06d13d | 2015-09-23 16:32:24 -0700 | [diff] [blame] | 65 | LOCAL_CLANG := false |
Skylar Chang | 2912b25 | 2015-02-02 23:28:07 -0800 | [diff] [blame] | 66 | LOCAL_MODULE_TAGS := optional |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 67 | |
| 68 | LOCAL_SHARED_LIBRARIES := libipanat |
| 69 | LOCAL_SHARED_LIBRARIES += libxml2 |
| 70 | LOCAL_SHARED_LIBRARIES += libnfnetlink |
| 71 | LOCAL_SHARED_LIBRARIES += libnetfilter_conntrack |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 72 | LOCAL_SHARED_LIBRARIES += libdhcpcd |
Skylar Chang | 9281509 | 2016-03-13 23:59:26 -0700 | [diff] [blame] | 73 | LOCAL_CLANG := true |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 74 | include $(BUILD_EXECUTABLE) |
| 75 | |
| 76 | ################################################################################ |
| 77 | |
| 78 | define ADD_TEST |
| 79 | |
| 80 | include $(CLEAR_VARS) |
| 81 | LOCAL_MODULE := $1 |
| 82 | LOCAL_SRC_FILES := $1 |
| 83 | LOCAL_MODULE_CLASS := ipacm |
| 84 | LOCAL_MODULE_TAGS := debug |
| 85 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC) |
| 86 | include $(BUILD_PREBUILT) |
| 87 | |
| 88 | endef |
| 89 | |
Skylar Chang | 14ccbc5 | 2015-02-12 23:37:50 -0800 | [diff] [blame] | 90 | include $(CLEAR_VARS) |
| 91 | LOCAL_MODULE := IPACM_cfg.xml |
| 92 | LOCAL_MODULE_CLASS := ETC |
| 93 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC) |
| 94 | LOCAL_MODULE_TAGS := optional |
| 95 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 96 | LOCAL_MODULE_OWNER := ipacm |
| 97 | include $(BUILD_PREBUILT) |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 98 | |
Skylar Chang | a1d886d | 2014-06-23 11:49:56 -0700 | [diff] [blame] | 99 | endif # $(TARGET_ARCH) |
| 100 | endif |
Linux Build Service Account | 5cbcdf9 | 2015-10-02 04:16:28 -0700 | [diff] [blame] | 101 | endif |
Simao Gomes Viana | 64e1d06 | 2016-08-20 16:43:22 +0200 | [diff] [blame^] | 102 | endif # $(TARGET_HAS_IPA_IN_DEVTREE) |