java: Removing redundant configuration
authorPawel Winogrodzki <pawelwi@microsoft.com>
Thu, 6 Jul 2017 23:51:13 +0000 (16:51 -0700)
committerRick Bell <richard.s.bell@intel.com>
Tue, 15 Aug 2017 18:35:56 +0000 (18:35 +0000)
Moving global environment configuration common for all
platforms into build_common/SConscript and removing repeated
lines from java/*.

Bug: https://jira.iotivity.org/browse/IOT-1583
Change-Id: I96966e81f52bd9995eab54afbf63091a4a9f62b2
Signed-off-by: Pawel Winogrodzki <pawelwi@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21869
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
java/jni/SConscript

index 3b1c0d9..31281bc 100644 (file)
@@ -85,7 +85,7 @@ else:
     #    - Disabled due to compiler incorrectly specifying JNI functions as
     #      unreferenced
     jni_env.AppendUnique(CCFLAGS=['/wd4047', '/wd4022', '/wd4505',])
-jni_env.AppendUnique(LIBPATH=[env.get('BUILD_DIR'), '#/exlibs/sqlite3'])
+jni_env.AppendUnique(LIBPATH=['#/exlibs/sqlite3'])
 jni_env.AppendUnique(RPATH=[env.get('BUILD_DIR')])
 # make sure we link with the static oc library. This is important since Windows does not build a shared library for the oc library
 # The oc library can not be imported into the Java on all of the platfroms so must be statically linked to make Java code work on