android: Remove/filter header files from LOCAL_SRC_FILES
authorTobias Brunner <tobias@strongswan.org>
Fri, 8 Mar 2013 15:48:11 +0000 (16:48 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 20 Mar 2013 14:24:26 +0000 (15:24 +0100)
This avoids huge warnings when building the native code.

src/frontends/android/jni/libandroidbridge/Android.mk
src/libcharon/Android.mk
src/libhydra/Android.mk
src/libipsec/Android.mk
src/libtnccs/Android.mk
src/libtncif/Android.mk
src/scepclient/Android.mk
src/starter/Android.mk
src/stroke/Android.mk

index b1fa4d1..fbb8612 100644 (file)
@@ -3,16 +3,16 @@ include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am
 LOCAL_SRC_FILES := \
-android_jni.c android_jni.h \
-backend/android_attr.c backend/android_attr.h \
-backend/android_creds.c backend/android_creds.h \
-backend/android_private_key.c backend/android_private_key.h \
-backend/android_service.c backend/android_service.h \
-charonservice.c charonservice.h \
-kernel/android_ipsec.c kernel/android_ipsec.h \
-kernel/android_net.c kernel/android_net.h \
-kernel/network_manager.c kernel/network_manager.h \
-vpnservice_builder.c vpnservice_builder.h
+android_jni.c \
+backend/android_attr.c \
+backend/android_creds.c \
+backend/android_private_key.c \
+backend/android_service.c \
+charonservice.c \
+kernel/android_ipsec.c \
+kernel/android_net.c \
+kernel/network_manager.c \
+vpnservice_builder.c
 
 # build libandroidbridge -------------------------------------------------------
 
index a931908..66606f9 100644 (file)
@@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am
-LOCAL_SRC_FILES := \
+libcharon_la_SOURCES := \
 bus/bus.c bus/bus.h \
 bus/listeners/listener.h \
 bus/listeners/logger.h \
@@ -77,7 +77,7 @@ sa/shunt_manager.c sa/shunt_manager.h \
 sa/trap_manager.c sa/trap_manager.h \
 sa/task.c sa/task.h
 
-LOCAL_SRC_FILES += \
+libcharon_la_SOURCES += \
 sa/ikev2/keymat_v2.c sa/ikev2/keymat_v2.h \
 sa/ikev2/task_manager_v2.c sa/ikev2/task_manager_v2.h \
 sa/ikev2/authenticators/eap_authenticator.c sa/ikev2/authenticators/eap_authenticator.h \
@@ -100,7 +100,7 @@ sa/ikev2/tasks/ike_reauth.c sa/ikev2/tasks/ike_reauth.h \
 sa/ikev2/tasks/ike_auth_lifetime.c sa/ikev2/tasks/ike_auth_lifetime.h \
 sa/ikev2/tasks/ike_vendor.c sa/ikev2/tasks/ike_vendor.h
 
-LOCAL_SRC_FILES += \
+libcharon_la_SOURCES += \
 sa/ikev1/keymat_v1.c sa/ikev1/keymat_v1.h \
 sa/ikev1/task_manager_v1.c sa/ikev1/task_manager_v1.h \
 sa/ikev1/authenticators/psk_v1_authenticator.c sa/ikev1/authenticators/psk_v1_authenticator.h \
@@ -123,6 +123,8 @@ sa/ikev1/tasks/mode_config.c sa/ikev1/tasks/mode_config.h \
 processing/jobs/dpd_timeout_job.c processing/jobs/dpd_timeout_job.h \
 processing/jobs/adopt_children_job.c processing/jobs/adopt_children_job.h
 
+LOCAL_SRC_FILES := $(filter %.c,$(libcharon_la_SOURCES))
+
 # adding the plugin source files
 
 LOCAL_SRC_FILES += $(call add_plugin, android-dns)
index 075f8db..429feed 100644 (file)
@@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am
-LOCAL_SRC_FILES := \
+libhydra_la_SOURCES := \
 hydra.c hydra.h \
 attributes/attributes.c attributes/attributes.h \
 attributes/attribute_provider.h attributes/attribute_handler.h \
@@ -13,6 +13,8 @@ kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
 kernel/kernel_net.c kernel/kernel_net.h \
 kernel/kernel_listener.h
 
+LOCAL_SRC_FILES := $(filter %.c,$(libhydra_la_SOURCES))
+
 # adding the plugin source files
 
 LOCAL_SRC_FILES += $(call add_plugin, attr)
index 81f4632..37f400f 100644 (file)
@@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am
-LOCAL_SRC_FILES := \
+libipsec_la_SOURCES := \
 ipsec.c ipsec.h \
 esp_context.c esp_context.h \
 esp_packet.c esp_packet.h \
@@ -15,6 +15,8 @@ ipsec_processor.c ipsec_processor.h \
 ipsec_sa.c ipsec_sa.h \
 ipsec_sa_mgr.c ipsec_sa_mgr.h
 
+LOCAL_SRC_FILES := $(filter %.c,$(libipsec_la_SOURCES))
+
 # build libipsec ---------------------------------------------------------------
 
 LOCAL_C_INCLUDES += \
index a4bbc13..c8724dc 100644 (file)
@@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am
-LOCAL_SRC_FILES := \
+libtnccs_la_SOURCES := \
 tnc/tnc.h tnc/tnc.c \
 tnc/imc/imc.h tnc/imc/imc_manager.h \
 tnc/imv/imv.h tnc/imv/imv_manager.h \
@@ -10,6 +10,8 @@ tnc/imv/imv_recommendations.h tnc/imv/imv_recommendations.c \
 tnc/tnccs/tnccs.h tnc/tnccs/tnccs.c \
 tnc/tnccs/tnccs_manager.h tnc/tnccs/tnccs_manager.c
 
+LOCAL_SRC_FILES := $(filter %.c,$(libtnccs_la_SOURCES))
+
 # build libtncif ---------------------------------------------------------------
 
 LOCAL_C_INCLUDES += \
index a337a0d..9a9bfa9 100644 (file)
@@ -2,11 +2,13 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am
-LOCAL_SRC_FILES := \
+libtncif_la_SOURCES := \
 tncif.h tncifimc.h tncifimv.h tncif_names.h tncif_names.c \
 tncif_identity.h tncif_identity.c \
 tncif_pa_subtypes.h tncif_pa_subtypes.c
 
+LOCAL_SRC_FILES := $(filter %.c,$(libtncif_la_SOURCES))
+
 # build libtncif ---------------------------------------------------------------
 
 LOCAL_C_INCLUDES += \
index ea637e7..6941389 100644 (file)
@@ -2,9 +2,11 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am
-LOCAL_SRC_FILES := \
+scepclient_SOURCES := \
 scepclient.c scep.c scep.h
 
+LOCAL_SRC_FILES := $(filter %.c,$(scepclient_SOURCES))
+
 # build scepclient -------------------------------------------------------------
 
 LOCAL_C_INCLUDES += \
index c7e81d2..91575c9 100644 (file)
@@ -2,13 +2,15 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am (update for LEX/YACC)
-LOCAL_SRC_FILES := \
+starter_SOURCES := \
 parser.c lexer.c ipsec-parser.h netkey.c args.h netkey.h \
 starterstroke.c confread.c \
 starterstroke.h confread.h args.c \
 keywords.c files.h keywords.h cmp.c starter.c cmp.h invokecharon.c \
 invokecharon.h klips.c klips.h
 
+LOCAL_SRC_FILES := $(filter %.c,$(starter_SOURCES))
+
 # build starter ----------------------------------------------------------------
 
 LOCAL_C_INCLUDES += \
index 69b3e54..320314c 100644 (file)
@@ -2,9 +2,11 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am
-LOCAL_SRC_FILES := \
+stroke_SOURCES := \
 stroke.c stroke_msg.h stroke_keywords.c stroke_keywords.h
 
+LOCAL_SRC_FILES := $(filter %.c,$(stroke_SOURCES))
+
 # build stroke -----------------------------------------------------------------
 
 LOCAL_C_INCLUDES += \