Android cmake toolchain file is included into OpenCV
This commit is contained in:
11
android/scripts/cmake_android.cmd
Normal file
11
android/scripts/cmake_android.cmd
Normal file
@@ -0,0 +1,11 @@
|
||||
cd %~dp0\..
|
||||
|
||||
::rmdir /S /Q build
|
||||
mkdir build 2>null
|
||||
|
||||
SET ANDROID_NDK=C:\apps\android-ndk-r5b
|
||||
SET CMAKE_EXE=C:\apps\cmake\bin\cmake.exe
|
||||
SET MAKE_EXE=C:\apps\gnuport\make.exe
|
||||
|
||||
cd build
|
||||
%CMAKE_EXE% -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=%MAKE_EXE% ..\..
|
8
android/scripts/cmake_android.sh
Normal file
8
android/scripts/cmake_android.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
cd `dirname $0`/..
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake -C ../CMakeCache.android.initial.cmake -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake ../..
|
||||
|
11
android/scripts/cmake_android_armeabi.cmd
Normal file
11
android/scripts/cmake_android_armeabi.cmd
Normal file
@@ -0,0 +1,11 @@
|
||||
cd %~dp0\..
|
||||
|
||||
::rmdir /S /Q build
|
||||
mkdir build 2>null
|
||||
|
||||
SET ANDROID_NDK=C:\apps\android-ndk-r5b
|
||||
SET CMAKE_EXE=C:\apps\cmake\bin\cmake.exe
|
||||
SET MAKE_EXE=C:\apps\gnuport\make.exe
|
||||
|
||||
cd build
|
||||
%CMAKE_EXE% -G"Unix Makefiles" -DARM_TARGET=armeabi -DCMAKE_TOOLCHAIN_FILE=..\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=%MAKE_EXE% ..\..
|
8
android/scripts/cmake_android_armeabi.sh
Normal file
8
android/scripts/cmake_android_armeabi.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
cd `dirname $0`/..
|
||||
|
||||
mkdir -p build_armeabi
|
||||
cd build_armeabi
|
||||
|
||||
cmake -C ../CMakeCache.android.initial.cmake -DARM_TARGET=armeabi -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake ../..
|
||||
|
11
android/scripts/cmake_android_neon.cmd
Normal file
11
android/scripts/cmake_android_neon.cmd
Normal file
@@ -0,0 +1,11 @@
|
||||
cd %~dp0\..
|
||||
|
||||
::rmdir /S /Q build
|
||||
mkdir build 2>null
|
||||
|
||||
SET ANDROID_NDK=C:\apps\android-ndk-r5b
|
||||
SET CMAKE_EXE=C:\apps\cmake\bin\cmake.exe
|
||||
SET MAKE_EXE=C:\apps\gnuport\make.exe
|
||||
|
||||
cd build
|
||||
%CMAKE_EXE% -G"Unix Makefiles" -DARM_TARGET="armeabi-v7a with NEON" -DCMAKE_TOOLCHAIN_FILE=..\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=%MAKE_EXE% ..\..
|
8
android/scripts/cmake_android_neon.sh
Normal file
8
android/scripts/cmake_android_neon.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
cd `dirname $0`/..
|
||||
|
||||
mkdir -p build_neon
|
||||
cd build_neon
|
||||
|
||||
cmake -C ../CMakeCache.android.initial.cmake -DARM_TARGET="armeabi-v7a with NEON" -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake ../..
|
||||
|
Reference in New Issue
Block a user