Switch to CMake

This commit is contained in:
Erik Zandvliet 2015-03-16 17:17:46 +01:00
parent dff9c193d3
commit 9b6312ca01
10 changed files with 486 additions and 15 deletions

View file

@ -365,7 +365,7 @@ namespace Mist {
response = json_resp.toString();
}
if (rURL.substr(0, 7) == "/embed_" && !json_resp.isMember("error")){
#include "../embed.js.h"
#include "embed.js.h"
response.append("\n(");
if (embed_js[embed_js_len - 2] == ';'){//check if we have a trailing ;\n or just \n
response.append((char*)embed_js, (size_t)embed_js_len - 2); //remove trailing ";\n" from xxd conversion