added fix_properties scripts for Android samples
authorKirill Kornyakov <no@email>
Mon, 28 May 2012 13:31:44 +0000 (13:31 +0000)
committerKirill Kornyakov <no@email>
Mon, 28 May 2012 13:31:44 +0000 (13:31 +0000)
samples/android/fix_properties.bat [new file with mode: 0644]
samples/android/fix_properties.sh [new file with mode: 0644]

diff --git a/samples/android/fix_properties.bat b/samples/android/fix_properties.bat
new file mode 100644 (file)
index 0000000..1b4842d
--- /dev/null
@@ -0,0 +1,8 @@
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Sample - 15-puzzle"                             --path ./15-puzzle
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Sample - face-detection"                        --path ./face-detection
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Sample - image-manipulations"                   --path ./image-manipulations
+android update project --target android-11                               --name "Tutorial 0 (Basic) - Android Camera"            --path ./tutorial-0-androidcamera
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Tutorial 1 (Basic) - Add OpenCV"                --path ./tutorial-1-addopencv
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Tutorial 2 (Basic) - Use OpenCV Camera"         --path ./tutorial-2-opencvcamera
+android update project --target android-11                               --name "Tutorial 3 (Advanced) - Add Native OpenCV"      --path ./tutorial-3-native
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Tutorial 4 (Advanced) - Mix Java+Native OpenCV" --path ./tutorial-4-mixed
\ No newline at end of file
diff --git a/samples/android/fix_properties.sh b/samples/android/fix_properties.sh
new file mode 100644 (file)
index 0000000..ea11ee5
--- /dev/null
@@ -0,0 +1,19 @@
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Sample - 15-puzzle"                             --path ./15-puzzle
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Sample - face-detection"                        --path ./face-detection
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Sample - image-manipulations"                   --path ./image-manipulations
+android update project --target android-11                               --name "Tutorial 0 (Basic) - Android Camera"            --path ./tutorial-0-androidcamera
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Tutorial 1 (Basic) - Add OpenCV"                --path ./tutorial-1-addopencv
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Tutorial 2 (Basic) - Use OpenCV Camera"         --path ./tutorial-2-opencvcamera
+android update project --target android-11                               --name "Tutorial 3 (Advanced) - Add Native OpenCV"      --path ./tutorial-3-native
+android update project --target android-11 --library ../../OpenCV-2.4.0/ --name "Tutorial 4 (Advanced) - Mix Java+Native OpenCV" --path ./tutorial-4-mixed
+
+exit
+
+rm ./15-puzzle/local.properties
+rm ./face-detection/local.properties
+rm ./image-manipulations/local.properties
+rm ./tutorial-0-androidcamera/local.properties
+rm ./tutorial-1-addopencv/local.properties
+rm ./tutorial-2-opencvcamera/local.properties
+rm ./tutorial-3-native/local.properties
+rm ./tutorial-4-mixed/local.properties
\ No newline at end of file