This reverts commit
806b994263369d28941aa1495a0a3b54d5249cd5.
Leaves in place the 64-bit code changes, but removes the 64-bit
target from builds for now due to a significant increase in
verification times.
Change-Id: Ib86c35c2a80b9d11621b05fcf16e050f3d6d48b6
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2237
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
def ndkBuild = new File(System.env.ANDROID_NDK_HOME, 'ndk-build.cmd')
4.Build scons for android and your targeted architecture (This will also build Android API):
- a.scons TARGET_OS=android TARGET_ARCH=<target arch> TARGET_TRANSPORT=<target transport> RELEASE=1
- where <target arch> can be armeabi, armeabi-v7a, x86, x86_64.
+ a.scons TARGET_OS=android TARGET_ARCH=<target arch> TARGET_TRANSPORT=IP RELEASE=1
+ where <target arch> can be armeabi, armeabi-v7a, x86.
Note: To build in debug mode, use RELEASE=0.
Note: The minimum SDK version supported is 21.
+ Note: Only TARGET_TRANSPORT currently supported is IP
b.If the project is setup correctly, you should see a BUILD SUCCESSFUL message on the terminal
c.You should see the .aar files generated inside of '<iotivity>/android/android_api/base/build/outputs/aar' directory. The .aar files contain jni directory and also a .jar file
scons TARGET_OS=android TARGET_ARCH=x86 RELEASE=$1 TARGET_TRANSPORT=BT $2
scons TARGET_OS=android TARGET_ARCH=x86 RELEASE=$1 TARGET_TRANSPORT=BLE $2
- echo "*********** Build for android x86_64 *************"
- scons TARGET_OS=android TARGET_ARCH=x86_64 RELEASE=$1 TARGET_TRANSPORT=IP $2
- scons TARGET_OS=android TARGET_ARCH=x86_64 RELEASE=$1 TARGET_TRANSPORT=BT $2
- scons TARGET_OS=android TARGET_ARCH=x86_64 RELEASE=$1 TARGET_TRANSPORT=BLE $2
-
echo "*********** Build for android armeabi *************"
scons TARGET_OS=android TARGET_ARCH=armeabi RELEASE=$1 TARGET_TRANSPORT=IP $2
scons TARGET_OS=android TARGET_ARCH=armeabi RELEASE=$1 TARGET_TRANSPORT=BT $2
if target_arch == 'armeabi-v7a-hard':
target_arch = 'armeabi-v7a'
- if target_arch not in ['x86', 'x86_64','armeabi', 'armeabi-v7a']:
+ if target_arch not in ['x86', 'armeabi', 'armeabi-v7a']:
if not env.GetOption('help') and not env.GetOption('clean'):
print '''
*********************************** Warning ***********************************
-* current only x86, x86_64, armeabi, armeabi-v7a libraries are provided! *
+* current only x86, armeabi, armeabi-v7a libraries are provided! *
*******************************************************************************
'''
else:
if target_arch == 'armeabi-v7a-hard':
target_arch = 'armeabi-v7a'
- if target_arch not in ['x86', 'x86_64','armeabi', 'armeabi-v7a']:
+ if target_arch not in ['x86', 'armeabi', 'armeabi-v7a']:
if not env.GetOption('help') and not env.GetOption('clean'):
print '''
*********************************** Warning ***********************************
-* current only x86, x86_64, armeabi, armeabi-v7a libraries are provided! *
+* current only x86, armeabi, armeabi-v7a libraries are provided! *
*******************************************************************************
'''
else: