Closed GoogleCodeExporter closed 9 years ago
Here is a first working version. There are a number of rough edges:
- There is no obvious way to implement the readByte platform call, so it is
empty, so the sample project is not the IPM. It is a simple programs that
prints, waits for an event and prints another line.
- Unfortunately MoSync is IDE centered, so the build is not command line based.
- The make file only builds the sourcecode, since the MoSync IDE makes the
actual build.
- My make skills are not up to the task of convincing the makefile in src/vm/
to build for the mosync platform. So a manual step of changing it is in the
README.
- Quite a few manual steps are required to create the eclipse project in the
MoSync IDE, but they should be described correctly in the README.
But it is a first step, and it does work.
In the future I hope to wrap at least the most used functions in the "maapi",
the low level system calls in MoSync. But I think it is already useful, so I
think it would be good to include it already, so people can try it out and send
some feedback.
Original comment by oscar.li...@gmail.com
on 23 Sep 2010 at 9:54
Attachments:
Here is wrappers for most basic functions in the maapi.
Original comment by oscar.li...@gmail.com
on 28 Sep 2010 at 6:42
Attachments:
r617
- Unzipped the two files from above, put files in src/platform/mosync
- Edited README to add URL to MoSync and make build steps into a list
- Edited Makefile to add ma.py and ma_gen.py to PM_USR_SOURCES
- Added src/platform/mosync to the svn repos
I'm unable to test this new platform. No tests performed.
Mainlined directly.
Original comment by dwhall...@gmail.com
on 29 Sep 2010 at 4:56
New version. Better example, better ma.h. Improved Makefile, removed one manual
step from the readme. Removed ma_gen.h from build, it is only there as a
reference.
The attached file is a svn diff (created with TortoiseSVN).
Original comment by oscar.li...@gmail.com
on 4 Oct 2010 at 8:16
Attachments:
Original comment by dwhall...@gmail.com
on 7 Oct 2010 at 4:18
r641
Second version of MoSync platform.
More advanced example.
More functions supported in ma.h.
Added PLATFORM=mosync in makefile, which removes one manual step from readme
file. Removed ma_gen.h from build, it is only there as a reference.
Also, performs heap_gcPushTempRoot and Pop where it needs to be done in native
functions.
Original comment by oscar.li...@gmail.com
on 9 Oct 2010 at 10:03
r642
- Copied mosync files from trunk to the branch for release 09
Original comment by dwhall...@gmail.com
on 10 Oct 2010 at 1:50
Original issue reported on code.google.com by
dwhall...@gmail.com
on 22 Sep 2010 at 12:10