Skip to content

Commit 9e2abcb

Browse files
authored
Add smallpt example notebook running through xeus-cpp-lite (#299)
* Add smallpt example notebook running through xeus-cpp-lite * address reviews
1 parent 3c5328d commit 9e2abcb

File tree

3 files changed

+106
-0
lines changed

3 files changed

+106
-0
lines changed

.github/workflows/deploy-github-page.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
--XeusAddon.prefix=${{ env.PREFIX }} \
7575
--contents README.md \
7676
--contents notebooks/xeus-cpp-lite-demo.ipynb \
77+
--contents notebooks/smallpt.ipynb \
7778
--contents notebooks/images/marie.png \
7879
--contents notebooks/audio/audio.wav \
7980
--output-dir dist

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ if(EMSCRIPTEN)
436436
xeus_wasm_compile_options(xcpp)
437437
xeus_wasm_link_options(xcpp "web,worker")
438438
target_link_options(xcpp
439+
PUBLIC "SHELL: -s USE_SDL=2"
439440
PUBLIC "SHELL: --preload-file ${SYSROOT_PATH}/include@/include"
440441
#PUBLIC "SHELL: --preload-file ${CMAKE_INSTALL_PREFIX}${XEUS_CPP_RESOURCE_DIR}@${XEUS_CPP_RESOURCE_DIR}"
441442
PUBLIC "SHELL: --preload-file ${XEUS_CPP_DATA_DIR}@/share/xeus-cpp"

notebooks/smallpt.ipynb

Lines changed: 104 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)