emscripten Humble Cloud interface
Edward Rudd
2014-08-21 fb822dd1cf3a5d6bb8eeb89571c49a40736da08e

simplify cmake further and copy over "humble_cloud.js" cloud provider

1 files modified
1 files added
19 ■■■■■ changed files
client/CMakeLists.txt 11 ●●●● patch | view | raw | blame | history
humble_cloud/humble_cloud.js 8 ●●●●● patch | view | raw | blame | history
client/CMakeLists.txt
@@ -6,19 +6,14 @@
include(BoilerPlate)
include(UtilityFunctions)
add_custom_command(
    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/shell.html
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/test/shell.html ${CMAKE_CURRENT_BINARY_DIR}/shell.html
    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/test/shell.html
    COMMENT "Copy over Shell"
)
CreateProgram(TestApp
FILES
    test/main.cpp
    ${CMAKE_CURRENT_BINARY_DIR}/shell.html
INCLUDES
    library
COPY_FILES
    test/shell.html
    ../humble_cloud/humble_cloud.js
ASM_FLAG
    NO_EXIT_RUNTIME=1
    EXPORTED_FUNCTIONS="['_main','_test_list_files']"
humble_cloud/humble_cloud.js
New file
@@ -0,0 +1,8 @@
(function() {
    var provider = {
        remoteAPIEndpoint: 'http://asmjs.brigadoon.outoforder.cc/cloud'
    };
    // expose out to the page
    window.HUMBLE_CLOUD_PROVIDER = provider;
})();