5 ANDROID_TARGET_ARCH = env.get('TARGET_ARCH')
7 ANDROID_RELEASE="release"
9 ANDROID_RELEASE="debug"
12 ***************************************** Info ********************************
13 * NOTE: If you have a problem in downloading the gradle-core-1.1.0.jar file *
14 * please do one time setup as below *
16 * Edit resource/csdk/connectivity/samples/android/casample/gradle.properties *
17 * Add the proxy information as below : *
18 * systemProp.http.proxyPort=<YOUR_PORT_NUMBER> *
19 * systemProp.http.proxyHost=<YOUR_HTTP_PROXY_ADDRESS> *
20 * systemProp.https.proxyPort=<YOUR_PORT_NUMBER> *
21 * systemProp.https.proxyHost=<YOUR_HTTP_PROXY_ADDRESS> *
23 *******************************************************************************
25 jdk_env = Environment(ENV=os.environ)
26 jdk_env['BUILDERS']['Gradle'] = Builder(action = env.get('ANDROID_GRADLE') + ' build -b' + Dir('.').srcnode().abspath + '/build.gradle -PTARGET_ARCH=%s -PRELEASE=%s' %(ANDROID_TARGET_ARCH, ANDROID_RELEASE))
27 jdk_env.Gradle(target="base/objs", source="sampleService/src/main/java/org/iotivity/ca/service/MainActivity.java")