Skip to content

Commit 886402b

Browse files
committed
Merge pull request #13 from chrisws/android
Android
2 parents 155bedc + 0808ff2 commit 886402b

34 files changed

+523
-408
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2014-08-09
2+
Renamed command "#UNIT-PATH:" to "UNITPATH"
3+
Renamed command "#INC:" to "INCLUDE"
4+
Fixed/implemented INCLUDE command
5+
Refactored comp_pass_1 function is scan.c breaking into
6+
smaller helper functions
7+
18
2014-07-07
29
Update SDL to use SDL2 and common widget
310

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ deb:
6363
fakeroot dpkg-buildpackage
6464

6565
test:
66-
(cd $(SUBDIRS) && make test)
66+
(cd @TEST_DIR@ && make test)
6767

6868
release:
6969
(cd $(SUBDIRS) && make release)

configure.ac

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dnl This program is distributed under the terms of the GPL v2.0
77
dnl Download the GNU Public License (GPL) from www.gnu.org
88
dnl
99

10-
AC_INIT([smallbasic], [0.11.11])
10+
AC_INIT([smallbasic], [0.11.12])
1111
AC_CONFIG_SRCDIR([configure.ac])
1212

1313
AC_CANONICAL_TARGET
@@ -88,12 +88,12 @@ function checkDebugMode() {
8888
AC_MSG_RESULT([$with_debug])
8989
if test "$with_debug" = "yes" || test "$with_debug" = "full"
9090
then
91-
CFLAGS="-g -O0"
92-
CXXFLAGS="-g -O0"
91+
CFLAGS="${CFLAGS} -g -O0"
92+
CXXFLAGS="${CXXFLAGS} -g -O0"
9393
AC_DEFINE(_DEBUG, 1, [debugging build enabled])
9494
else
95-
CFLAGS="-O3 -Os"
96-
CXXFLAGS="-O3 -Os"
95+
CFLAGS="${CFLAGS} -O3 -Os"
96+
CXXFLAGS="${CXXFLAGS} -O3 -Os"
9797
fi
9898
AC_SUBST(CFLAGS)
9999
}
@@ -522,6 +522,9 @@ function buildAndroid() {
522522

523523
BUILD_SUBDIRS="src/platform/android"
524524
AC_SUBST(BUILD_SUBDIRS)
525+
526+
TEST_DIR="src/platform/android"
527+
AC_SUBST(TEST_DIR)
525528
}
526529

527530
function buildConsole() {
@@ -582,6 +585,8 @@ function buildConsole() {
582585
AC_CHECK_HEADER(readline/readline.h, [], [AC_MSG_ERROR("install libreadline-dev")])
583586
PACKAGE_LIBS="${PACKAGE_LIBS} -lm -ldl -lpthread -lncurses -lreadline"
584587
BUILD_SUBDIRS="src/common src/platform/unix"
588+
TEST_DIR="src/platform/unix"
589+
AC_SUBST(TEST_DIR)
585590
fi
586591

587592
AC_SUBST(BUILD_SUBDIRS)

ide/android/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="net.sourceforge.smallbasic"
44
android:installLocation="preferExternal"
5-
android:versionCode="13"
6-
android:versionName="0.11.11">
5+
android:versionCode="14"
6+
android:versionName="0.11.12">
77
<!-- This is the platform API where NativeActivity was introduced. -->
88
<uses-sdk android:minSdkVersion="9"/>
99

ide/android/assets/main.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sub about()
3030
print "(_ ._ _ _.|||_) /\ (_ |/ "
3131
print "__)| | |(_||||_)/--\__)|\_"
3232
print
33-
print "Version 0.11.11"
33+
print "Version 0.11.12"
3434
print
3535
print "Copyright (c) 2002-2014 Chris Warren-Smith"
3636
print "Copyright (c) 2000-2006 Nic Christopoulos" + chr(10)

ide/android/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# project structure.
99
#
1010
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11-
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
11+
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
1212

1313
# Project target.
1414
target=android-15
File renamed without changes.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/sbasic
2-
#inc:"metac.bas"
3-
1+
INCLUDE "metac.bas"
42
? "Module: Meta-A"
53

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
? "Module: Meta-B"
32

43

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TEST: Arrays, unound, lbound

0 commit comments

Comments
 (0)