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

allow configuring the provider via the cmake for the test program.

2 files modified
6 ■■■■■ changed files
client/CMakeLists.txt 4 ●●● patch | view | raw | blame | history
client/test/shell.html 2 ●●● patch | view | raw | blame | history
client/CMakeLists.txt
@@ -6,13 +6,15 @@
include(BoilerPlate)
include(UtilityFunctions)
set(TEST_CLOUD_PROVIDER HumbleBundle CACHE STRING "Cloud provider to bind in the test shell")
configure_file(test/shell.html shell.html @ONLY)
CreateProgram(TestApp
FILES
    test/main.cpp
INCLUDES
    library
COPY_FILES
    test/shell.html
    ../humble_cloud/humble_cloud.js
ASM_FLAG
    NO_EXIT_RUNTIME=1
client/test/shell.html
@@ -1307,7 +1307,7 @@
              sync: [
              ],
              // which provider engine to use.. Looks for a provider in the CLOUD_PROVIDERS object
              provider: 'HumbleBundle',
              provider: '@TEST_CLOUD_PROVIDER@',
              // configuration sent to the provider
              cloud: {
                  applicationtoken: 'deadbeef'