-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathCreateSampleApp.cmd
53 lines (46 loc) · 1.17 KB
/
CreateSampleApp.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@ECHO OFF
:: CreateSampleApp.cmd
:: Created by Wikitude GmbH on 09/02/14.
:: global variables
SET SAMPLE_APP_DIRECTORY=
SET BUILD_iOS=false
SET BUILD_ANDROID=false
SET BUILD_PROGRAM=cordova
SET INSTALLER_DIRECTORY=%CD%
goto argloop
:usage
ECHO Usage: %0 [options]
ECHO.
ECHO Arguments:
ECHO.
ECHO -h, --help
ECHO Display this usage message and exit.
ECHO.
ECHO -d
ECHO Specifies the sample application destination directory (will be created)
ECHO.
ECHO -p
ECHO Specifies which build program will be used. Can be either 'cordova' or 'phonegap'
ECHO.
ECHO -ios
ECHO Specifies if iOS is installed (will not work on windows)
ECHO.
ECHO -android
ECHO Specifies if Android is installed
goto scriptend
:argloop
if -%1-==-- goto argend
if -%2-==-- goto usage
if /i %1==-d SET SAMPLE_APP_DIRECTORY=%2
if /i %1==-ios SET SET BUILD_iOS=%2
if /i %1==-android SET BUILD_ANDROID=%2
if /i %1==-p SET BUILD_PROGRAM=%2
if /i %1==-help goto usage
shift
shift
goto argloop
:argend
cd Scripts
sh WikitudePhoneGapSampleGenerator.sh %SAMPLE_APP_DIRECTORY% com.wikitude.phonegapsamples "Plugin Samples" %BUILD_iOS% %BUILD_ANDROID% %INSTALLER_DIRECTORY%/SampleAppResources %BUILD_PROGRAM%
cd ..
:scriptend