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>
# - 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