Gabriel Ozouf
f66bde6d31
[ion/clipboard] Rework clipboard handling
...
Change the way the clipboard is fetched, so as to preserve the
Poincare/Python translation feature, and remove the cap on the length of
text being imported into the simulator.
Change-Id: I0f3e83c0c8aa4b64eb08d882aa6891b31f191e22
2020-11-04 15:58:35 +01:00
Gabriel Ozouf
010b474f77
[ion/clipboard] Add support for web simulator
...
Wrote methods for accessing the system clipboard from the web
simulator, as the methods in SDL_Clipboard do not work when the video
device uses emscripten.
Change-Id: Ib2e66530a6b013eca0cf69fb52372e9e3a21c8bb
2020-11-04 15:58:35 +01:00
Émilie Feral
d950e37b22
[build] Emscripten toolchain: do not use a memory-init-file
2020-03-25 14:35:35 +01:00
Romain Goyet
62324b9cac
[build/emscripten] Don't use memory init files anymore
...
Those provide a really small size gain and are painful to deploy
2020-03-24 15:02:10 +01:00
Romain Goyet
ca89c06ffe
[build/emscripten] We now use the newer #canvas convention
2020-03-24 15:02:10 +01:00
Romain Goyet
edbd879b4b
[ion] Modularize the HTML simulator
2020-03-24 15:02:10 +01:00
Émilie Feral
1e81a944e3
[build] Web: enable to build target simulator.official.zip and
...
epsilon.official.js
2020-02-25 17:37:29 -05:00
Léa Saviot
16a832507e
[emscripten/whitelist] Whitelist some methods
2020-02-12 15:13:25 +01:00
Émilie Feral
fdb1417a02
[buil] emscripten toolchain: fix build with emmc version >= 1.39.5
2020-02-12 15:13:24 +01:00
Léa Saviot
244c7b31eb
[ion/web] Fix screenshots
2020-02-12 15:13:23 +01:00
Émilie Feral
5d283a3a3c
[build] Add missing EMSCRIPTEN_ASYNC_SYMBOLS
2019-11-13 14:26:13 +01:00
Romain Goyet
e81426f93b
[build] Clean the different targets
2019-10-01 15:38:27 +02:00
Romain Goyet
30e8b9a0a6
[ion/simulator/web] Update the HTML file
2019-09-27 17:57:05 +02:00
Romain Goyet
b437d7910c
[emscripten] Use UTF8ToString instead of Pointer_stringify
...
To match the upstream change in emscripten
2019-09-19 14:11:50 +02:00
Romain Goyet
d70bad84f3
Rename the scripts folder to build
...
And the build folder to output
2019-09-18 17:46:38 +02:00
Romain Goyet
2af792cf88
[build] Rename the build folder to scripts
2019-03-06 15:00:59 +01:00
Léa Saviot
de6646a0ae
[build/emscripten] Add turtle symbols to the whitelist
2018-12-18 12:05:51 +01:00
Léa Saviot
ed19d19070
Merge branch 'master' into python_turtle
2018-12-17 15:49:46 +01:00
Léa Saviot
49e8a501e7
[python] Fix micropython_port_interruptible_msleep
...
It now gets interrupted. Turtle drawing can now be interrupted too.
2018-12-05 17:41:16 +01:00
Émilie Feral
7e52483eec
[build] emscripten: add 'Pointer_stringify' as EXTRA_EXPORTED_RUNTIME_METHODS
2018-11-23 12:03:35 +01:00
Léa Saviot
6de650064e
[build] Disable WebAssembly on emscripten
2018-11-23 11:57:44 +01:00
Romain Goyet
253c183963
[python] Clean the time module
...
- Export micropython_port_should_interrupt and
micropython_port_interruptible_msleep in Emscripten
- Make micropython_port_interruptible_msleep available in a helper
2018-11-16 09:40:53 +01:00
Romain Goyet
8fa1558fc4
[python] Small cleanup
2018-11-15 15:12:17 +01:00
Romain Goyet
e73033b19c
Merge branch 'master' into utime_module
2018-11-15 14:37:11 +01:00
Romain Goyet
5dfefb477a
[python] Rename micropython_port_should_interrupt to micropython_port_vm_hook_loop
2018-11-13 10:06:23 +01:00
Damien Nicolet
24630011b1
[code] keep only CPython equivalent functions in utime module
2018-11-10 00:00:03 +01:00
Damien Nicolet
9b818bd963
[ion] fix sleep functions in emscripten build
2018-11-09 01:36:38 +01:00
Romain Goyet
9825c73238
[ion/emscripten] Actual implementation of Ion::Keyboard::scan
...
This allows interrupting Python scripts on the Emscripten port
2018-11-08 17:11:17 +01:00
Romain Goyet
b26f0abe81
[emscripten] Update a symbol name in the whitelist
2018-11-08 17:11:17 +01:00
Romain Goyet
0634e9ea7d
[emscripten] Expose IonSoftwareVersion and IonPatchLevel
2018-06-26 14:13:31 +02:00
Léa Saviot
b8fbc35793
[emscripten] Fix float rouding errors when computing grid axis labels
...
Emscripten converts C++ floats to doubles, which produces rounding
errors. In the Graph application, when displaying y=sin(x), the ordinate
'1' displayed "10" instead, because the exponent of 1000f was wrongly
computed.
To prevent this, we add the -s PRECISE_F32=1 flag, which uses 32-bits
floating point values for floats.
See https://kripken.github.io/emscripten-site/docs/getting_started/FAQ.html#why-do-i-get-odd-rounding-errors-when-using-float-variables
2018-06-18 16:33:44 +02:00
Ecco
e304da5ee1
[emscripten] Removing trailing comma hack more obvious
2018-06-13 10:02:47 +02:00
Ecco
3d9748d172
[emscripten] Remove empty line
2018-06-13 10:02:47 +02:00
Claire Savinas
208f340993
Fix build using emsdk version sdk-1.37.40-64bit
2018-06-13 10:02:47 +02:00
Émilie Feral
f2d096be63
[emscripten] Add WHITELISTED symbols to call 'input()' outside a
...
function in Python
2018-05-22 17:48:48 +02:00
Romain Goyet
8fc32900c2
[emscripten] Sort ASYNC symbols
2018-05-22 15:59:20 +02:00
Romain Goyet
bb10e13aab
[emscripten] Allow "input()" to be called outside of a function
2018-05-22 15:59:20 +02:00
Émilie Feral
c934eab947
[emscripten] Add white-listed symbols
...
When input() is called in a script, it will happen at script
importation and thus requires more white-listed symbols.
2018-04-18 11:20:39 +02:00
Romain Goyet
5744c010a4
[emscripten] Add more debug flags
2018-04-18 10:04:18 +02:00
Émilie Feral
849cbf7b89
[build] emscripten toolchain: add white-listed symbols
2018-03-22 11:58:56 +01:00
Émilie Feral
af877c19bb
[build] Add a flag MODULARIZE when building with
...
emscripten toolchain
2018-03-22 11:58:56 +01:00
Émilie Feral
37ff8dc0a3
[ion] Give the options to ion_app that becomes ion_main
2018-03-22 11:58:56 +01:00
Romain Goyet
c0a9ec1c91
[emscripten] Events can be enqueued
2018-03-21 15:54:17 +01:00
Romain Goyet
e5a7b936bc
[emscripten] Some mor ASYNC symbols
...
Needed when starting a script from the contextual script menu
2018-02-05 16:50:43 +01:00
Romain Goyet
054fffe77d
[emscripten] Use a whitelist of sync symbols that will be interpreted
2018-02-05 16:50:43 +01:00
Romain Goyet
ad261a79aa
Emscripten has no SIZE tool
2018-02-02 14:30:35 +01:00
Romain Goyet
489b26e813
Re-organize and re-prefix the Makefile variables
2018-02-02 14:30:35 +01:00
Romain Goyet
67f082f4e8
[emscripten] Use emterpreter
...
This allows us to control the runloop
2018-02-01 14:10:26 +01:00
Romain Goyet
9a41ee8ad9
Add the ability to package the web simulator
2017-11-06 21:54:18 +01:00
Romain Goyet
70174638df
[ion] Fix sending events to emscripten build
...
Change-Id: I9306554044a0b2fe2ee26769cc66a2684a05bebe
2017-07-21 15:12:38 +02:00