diff options
author | Mitchell Wills <mwills@google.com> | 2016-02-22 13:40:44 -0800 |
---|---|---|
committer | Mitchell Wills <mwills@google.com> | 2016-03-24 20:08:18 +0000 |
commit | 2977ce6833c307ce5a597c56060567da4707f8bb (patch) | |
tree | ec02051eaf9ae690f52da3ea077019416c115cb2 /tests | |
parent | 0e67c341974310405230e2fd761395296f15d5c1 (diff) |
Cleanup Wifi tests makefile
Cleanup the makefile so that it only specifies libraries once instead of
as both non-static and static deps if possible. Also add some comments
for some of the more confusing parts.
Change-Id: I1733a9685ad0582d01679e235e7a7181f5a6449a
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/Android.mk | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tests/wifitests/Android.mk b/tests/wifitests/Android.mk index 32ae15938..d968460d3 100644 --- a/tests/wifitests/Android.mk +++ b/tests/wifitests/Android.mk @@ -100,18 +100,24 @@ LOCAL_JACK_FLAGS := \ -D jack.coverage.jacoco.include=$(jacoco_include) \ -D jack.coverage.jacoco.exclude=$(jacoco_exclude) +# wifi-service and services must be included here so that the latest changes +# will be used when tests. Otherwise the tests would run against the installed +# system. +# TODO figure out if this is the correct thing to do, this seems to not be right +# since neither is declared a static java library. LOCAL_STATIC_JAVA_LIBRARIES := \ - mockito-target \ android-support-test \ + mockito-target \ + services \ wifi-service \ - services -LOCAL_JAVA_LIBRARIES := android.test.runner \ - mockito-target \ - android-support-test \ +LOCAL_JAVA_LIBRARIES := \ + android.test.runner \ wifi-service \ - services + services \ +# These must be explicitly included because they are not normally accessible +# from apps. LOCAL_JNI_SHARED_LIBRARIES := \ libwifi-service \ libc++ \ @@ -129,8 +135,7 @@ LOCAL_JNI_SHARED_LIBRARIES := \ liblzma \ ifdef WPA_SUPPLICANT_VERSION -LOCAL_JNI_SHARED_LIBRARIES := $(LOCAL_JNI_SHARED_LIBRARIES) \ - libwpa_client +LOCAL_JNI_SHARED_LIBRARIES += libwpa_client endif LOCAL_PACKAGE_NAME := FrameworksWifiTests |