diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2018-07-26 22:09:25 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-26 22:09:25 -0700 |
commit | 0cfb8e2fae6522c09687d1d653acc0be568f053e (patch) | |
tree | 0f4b67e17b9a5dc2edac853b8ed753c01493a85f | |
parent | 819f6c1e0dde75f5c0ace93da4630ddb218dd5c6 (diff) | |
parent | c6b60f7630c1bbebb0e902734de1d4fa1835dd20 (diff) | |
download | ppp-0cfb8e2fae6522c09687d1d653acc0be568f053e.tar.gz |
pppd: Add rules for building the pppol2tp-android plugin am: 7f24faccd0
am: c6b60f7630
Change-Id: I0c2fb547bedfdd5d58f95d01141ae7bd66d585b4
-rw-r--r-- | pppd/Android.mk | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/pppd/Android.mk b/pppd/Android.mk index ba06198..7cb13b0 100644 --- a/pppd/Android.mk +++ b/pppd/Android.mk @@ -1,3 +1,8 @@ +# Flags common to both pppd and plugins +COMMON_CFLAGS := -DCHAPMS=1 -DMPPE=1 -DINET6=1 -DUSE_OPENSSL=1 \ + -Wno-missing-field-initializers -Wno-unused-parameter -Werror \ + -Wno-pointer-sign + LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) @@ -36,15 +41,26 @@ LOCAL_SHARED_LIBRARIES := \ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/include -LOCAL_CFLAGS := -DCHAPMS=1 -DMPPE=1 -DINET6=1 -DUSE_OPENSSL=1 -Wno-unused-parameter -Wno-empty-body -Wno-missing-field-initializers -Wno-attributes -Wno-sign-compare -Wno-pointer-sign -Werror - -# Turn off warnings for now until this is fixed upstream. b/18632512 -LOCAL_CFLAGS += -Wno-unused-variable +LOCAL_CFLAGS := $(COMMON_CFLAGS) +LOCAL_CFLAGS += -Wno-empty-body -Wno-attributes -Wno-sign-compare # Enable plugin support LOCAL_CFLAGS += -DPLUGIN LOCAL_LDFLAGS := -ldl -rdynamic LOCAL_MODULE:= pppd +LOCAL_REQUIRED_MODULES := pppol2tp-android include $(BUILD_EXECUTABLE) + +include $(CLEAR_VARS) +LOCAL_MODULE := pppol2tp-android +LOCAL_SRC_FILES := plugins/pppol2tp-android/pppol2tp-android.c +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH) \ + $(LOCAL_PATH)/include \ + $(LOCAL_PATH)/plugins/pppol2tp-android +LOCAL_CFLAGS := $(COMMON_CFLAGS) +LOCAL_CFLAGS += -Wno-gnu-designator -Wno-format +LOCAL_ALLOW_UNDEFINED_SYMBOLS := true +include $(BUILD_SHARED_LIBRARY) |