emscripten Humble Cloud interface
Edward Rudd
2014-09-17 49a91f8b81d9a8783a8b49ff03d28f0cff1c1a70

setup test file data so we can test preload caching

1 files modified
12 ■■■■■ changed files
client/CMakeLists.txt 12 ●●●●● patch | view | raw | blame | history
client/CMakeLists.txt
@@ -9,6 +9,16 @@
set(TEST_CLOUD_PROVIDER CloudFile CACHE STRING "Cloud provider to bind in the test shell")
configure_file(test/shell.html shell.html @ONLY)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/data)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/data/test.txt  "Test file. YEAH!")
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_file.txt  "Test async fetch file!")
EmscriptenCreatePackage(
    test_preload
    data/
    TEST_DATA
)
CreateProgram(TestApp
FILES
    test/main.cpp
@@ -20,6 +30,8 @@
ASM_FLAG
    NO_EXIT_RUNTIME=1
    EXPORTED_FUNCTIONS="['_main','_test_list_files','_test_async_fetch']"
PRE_JS
    ${TEST_DATA}
JS_LIBS
    library/library_cloudfs.js
    library/library_humble.js