summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index e716439ca2..5f148d892c 100755
--- a/tools/configure
+++ b/tools/configure
@@ -56,7 +56,7 @@ app_get_platform() {
if [ -z "$ARG_PLATFORM" ]; then
choice=`input`
else
- choice="$APP_PLATFORM"
+ choice="$ARG_PLATFORM"
fi
case $choice in
@@ -69,7 +69,7 @@ app_get_platform() {
if [ -z "$ARG_LCDWIDTH" ]; then
app_lcd_width=`input`
else
- app_lcd_width=`$ARG_LCDWIDTH`
+ app_lcd_width="$ARG_LCDWIDTH"
fi
if [ -z "$app_lcd_width" ]; then app_lcd_width="320"; fi
echo "Enter the LCD height (default: 480)"
@@ -80,6 +80,8 @@ app_get_platform() {
fi
if [ -z "$app_lcd_height" ]; then app_lcd_height="480"; fi
echo "Selected $app_lcd_width x $app_lcd_height resolution"
+ ARG_LCDWIDTH=$app_lcd_width
+ ARG_LCDHEIGHT=$app_lcd_height
app_lcd_width="#define LCD_WIDTH $app_lcd_width"
app_lcd_height="#define LCD_HEIGHT $app_lcd_height"
@@ -3227,6 +3229,14 @@ fi
if [ "$ARG_ARM_EABI" = "1" ]; then
cmdline="$cmdline--eabi "
fi
+if [ "$app_platform" = "sdl" ]; then
+ cmdline="$cmdline--platform=S "
+elif [ "$app_platform" = "android" ]; then
+ cmdline="$cmdline--platform=A "
+fi
+if [ "$modelname" = "application" ]; then
+ cmdline="$cmdline--lcdwidth=$ARG_LCDWIDTH --lcdheight=$ARG_LCDHEIGHT "
+fi
cmdline="$cmdline--target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype$advopts --prefix=\$(PREFIX)"
### end of cmdline