Skip to content

Tizen #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 36 commits into from
Oct 11, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
da07240
Tizen project
chrisws Sep 9, 2013
738c785
TIZEN new project
chrisws Sep 9, 2013
293d063
TIZEN: port wip
chrisws Sep 12, 2013
ff77711
TIZEN: port wip
chrisws Sep 12, 2013
bcaec06
TIZEN: wip
chrisws Sep 15, 2013
e80e858
TIZEN: port wip
chrisws Sep 16, 2013
4170e8f
TIZEN: port wip
chrisws Sep 17, 2013
750275b
TIZEN: port wip
chrisws Sep 17, 2013
02604aa
TIZEN: port wip
chrisws Sep 18, 2013
47fab33
TIZEN: port wip
chrisws Sep 21, 2013
3018cc1
TIZEN: now runs to startup
chrisws Sep 21, 2013
cbf8d77
TIZEN: now runs to startup
chrisws Sep 21, 2013
0bb98e3
TIZEN: now runs to startup
chrisws Sep 21, 2013
e87dafc
TIZEN: updated display handling
chrisws Sep 22, 2013
6f55241
TIZEN: updated display handling
chrisws Sep 22, 2013
f739b26
TIZEN: updated event handling
chrisws Sep 22, 2013
2a5e47d
TIZEN: refactor system object
chrisws Sep 24, 2013
ba22eb5
TIZEN: custom font handling
chrisws Sep 24, 2013
978b3d7
TIZEN: custom font handling
chrisws Sep 25, 2013
e301869
TIZEN: synchronise drawing
chrisws Sep 27, 2013
24a9f72
TIZEN: synchronise drawing
chrisws Sep 27, 2013
f94d6a2
TIZEN: added menu handling
chrisws Sep 27, 2013
33d2dcd
TIZEN: added key handling
chrisws Sep 27, 2013
42c16fa
TIZEN: updated system menus
chrisws Sep 28, 2013
05d10e9
TIZEN: added net program load
chrisws Sep 28, 2013
a3e794a
TIZEN: updated runmain
chrisws Sep 28, 2013
a8f74b5
TIZEN: updated key handling
chrisws Sep 29, 2013
f0897c4
TIZEN: added icon
chrisws Sep 30, 2013
3ee01c4
TIZEN: fix crash on forced exit
chrisws Sep 30, 2013
fd73efa
TIZEN: fix network loading
chrisws Oct 1, 2013
d94a7fa
TIZEN: updated resize handling
chrisws Oct 2, 2013
10c5841
TIZEN: disable screen rotation for now
chrisws Oct 2, 2013
6753f7a
TIZEN: update for release
chrisws Oct 4, 2013
3a71d9a
Fix building qt and sdl versions
chrisws Oct 6, 2013
e71044c
FLTK: fix get pixel result
chrisws Oct 7, 2013
18f2878
TIZEN: updated for initial release
chrisws Oct 8, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 37 additions & 24 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ AC_ARG_ENABLE(mosync,
[ac_build_mosync="yes"],
[ac_build_mosync="no"])

AC_ARG_ENABLE(tizen,
AS_HELP_STRING([--enable-tizen],[build common library for Tizen(default=no)]),
[ac_build_tizen="yes"],
[ac_build_tizen="no"])

AC_ARG_ENABLE(dist,
AS_HELP_STRING([--enable-dist],[prepare to run make dist(default=no)]),
[ac_build_dist="yes"],
Expand Down Expand Up @@ -99,6 +104,9 @@ function checkPCRE() {
if test x$ac_build_mosync = xyes; then
have_pcre="no"
fi
if test x$ac_build_tizen = xyes; then
have_pcre="no"
fi

if test "${have_pcre}" = "yes" ; then
AC_DEFINE(USE_PCRE, 1, [match.c used with libpcre.])
Expand Down Expand Up @@ -333,28 +341,6 @@ function buildSDL() {
PACKAGE_CFLAGS="${PACKAGE_CFLAGS} -mms-bitfields -mno-cygwin"
PACKAGE_LIBS="${PACKAGE_LIBS} -lwsock32"
;;
*-*-beos*)
SYS_GL_LIBS="-lGL"
;;
*-*-darwin* )
SYS_GL_LIBS="-Wl,-framework,OpenGL"
;;
*-*-aix*)
if test x$ac_cv_c_compiler_gnu = xyes; then
CFLAGS="-mthreads"
fi
;;
*-*-mint*)
AC_PATH_PROG(OSMESA_CONFIG, osmesa-config, no)
if test "x$OSMESA_CONFIG" = "xyes"; then
OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
OSMESA_LIBS=`$OSMESA_CONFIG --libs`
CFLAGS="$CFLAGS $OSMESA_CFLAGS"
SYS_GL_LIBS="$OSMESA_LIBS"
else
SYS_GL_LIBS="-lOSMesa"
fi
;;
*)
MATHLIB="-lm"
SYS_GL_LIBS="-lGL"
Expand All @@ -368,8 +354,8 @@ function buildSDL() {
dnl AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
dnl )

PACKAGE_CFLAGS="${PACKAGE_CFLAGS} ${SDL_CFLAGS}"
PACKAGE_LIBS="${PACKAGE_LIBS} ${SDL_LIBS} ${MATHLIB}"
PACKAGE_CFLAGS="${PACKAGE_CFLAGS} `sdl-config --cflags`"
PACKAGE_LIBS="${PACKAGE_LIBS} `sdl-config --libs` ${MATHLIB}"

dnl Check for OpenGL
AC_MSG_CHECKING(for OpenGL support)
Expand Down Expand Up @@ -525,6 +511,30 @@ function buildMosync() {
AC_SUBST(BUILD_SUBDIRS)
}

function buildTizen() {
TARGET="Building common library for Tizen."

defaultConditionals

AC_DEFINE(_UnixOS, 1, [Building under Unix like systems.])
AC_DEFINE(_TIZEN, 1, [Defined for Tizen build.])
AC_DEFINE(IMPL_DEV_READ, 1, [Implement dev_read()])
AC_DEFINE(HAVE_SEARCH_H, 1, [Found GNU search.h])
AC_DEFINE(HAVE_TDESTROY, 1, [Found GNU search.h])
AC_DEFINE(DEV_EVENTS_OSD, 1, [dev_events() implemented using osd_events().])
AC_DEFINE(IMPL_DEV_GETS, 1, [Driver implements dev_gets()])
AC_DEFINE(IMPL_DEV_DELAY, 1, [Driver implements dev_delay()])
AC_DEFINE(IMPL_IMAGE, 1, [Driver implements image commands])
AC_DEFINE(HAVE_MALLOC_USABLE_SIZE, 0, [Newlib version causes mosync stack panic])
AC_DEFINE(CPU_BIGENDIAN, 1, [Tizen uses big-endian])
AC_DEFINE(NO_SCAN_ERROR_PROMPT, 1, [No prompt for detailed scan report])
AC_DEFINE(IMPL_LOG_WRITE, 1, [Driver implements lwrite()])
AC_DEFINE(USE_TERM_IO, 0, [Does not use terminal-io functions.])

BUILD_SUBDIRS="src/platform/tizen/common"
AC_SUBST(BUILD_SUBDIRS)
}

function buildConsole() {
win32=no
case "${host_os}" in
Expand Down Expand Up @@ -618,6 +628,8 @@ elif test x$ac_build_qt = xyes; then
buildQT
elif test x$ac_build_mosync = xyes; then
buildMosync
elif test x$ac_build_tizen = xyes; then
buildTizen
else
buildConsole
fi
Expand All @@ -642,6 +654,7 @@ src/platform/cygwin/Makefile
src/platform/mingw/Makefile
src/platform/unix/Makefile
src/platform/mosync/common/Makefile
src/platform/tizen/common/Makefile
])
AC_OUTPUT

Expand Down
487 changes: 487 additions & 0 deletions ide/tizen/.cproject

Large diffs are not rendered by default.

115 changes: 115 additions & 0 deletions ide/tizen/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SmallBASIC</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<arguments>
<dictionary>
<key>?children?</key>
<value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|\||</value>
</dictionary>
<dictionary>
<key>?name?</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.append_environment</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
<value>all</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildArguments</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildCommand</key>
<value>sbi-make</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildLocation</key>
<value>${workspace_loc:/SmallBASIC/Debug}</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
<value>clean</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.contents</key>
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
<value>all</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.stopOnError</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
<value>true</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.tizen.nativecpp.apichecker.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
<nature>org.tizen.nativecpp.apichecker.core.tizenCppNature</nature>
</natures>
<linkedResources>
<link>
<name>common</name>
<type>2</type>
<locationURI>WORKSPACE_LOC/src/platform/common</locationURI>
</link>
<link>
<name>tizen</name>
<type>2</type>
<locationURI>WORKSPACE_LOC/src/platform/tizen</locationURI>
</link>
</linkedResources>
<filteredResources>
<filter>
<id>1378759337103</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-projectRelativePath-matches-false-false-*/.tpk</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
25 changes: 25 additions & 0 deletions ide/tizen/manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
<Id>Ya8TxGlMB1</Id>
<Version>1.0.0</Version>
<Type>C++App</Type>
<Requirements>
<Feature Name="http://tizen.org/feature/platform.core.cpu.arch.armv7">true</Feature>
<Feature Name="http://tizen.org/feature/platform.core.fpu.arch.vfpv3">true</Feature>
<Feature Name="http://tizen.org/feature/screen.size.normal">true</Feature>
</Requirements>
<Apps>
<ApiVersion>2.2</ApiVersion>
<UiApp HwAcceleration="On" LaunchingHistoryVisible="True" Main="True" MenuIconVisible="True" Name="SmallBASIC">
<UiScalability BaseScreenSize="Normal" CoordinateSystem="Logical" LogicalCoordinate="720"/>
<UiTheme SystemTheme="White"/>
<DisplayNames>
<DisplayName Locale="eng-GB">SmallBASIC</DisplayName>
</DisplayNames>
<Icons>
<Icon Section="MainMenu">mainmenu.png</Icon>
</Icons>
<LaunchConditions/>
</UiApp>
</Apps>
</Manifest>
Loading