Redefinition of Macro removed
[platform/upstream/iotivity.git] / resource / csdk / connectivity / samples / android / casample / SConscript
1 import os
2 import platform
3 Import('env')
4
5 ANDROID_TARGET_ARCH = env.get('TARGET_ARCH')
6 if env.get('RELEASE'):
7         ANDROID_RELEASE="release"
8 else:
9         ANDROID_RELEASE="debug"
10
11 print '''
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                                     *
15 *                                                                             *
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>                     *
22 *                                                                             *
23 *******************************************************************************
24 '''
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")
28