From 412802a6c151437c07ef47b2b499e863ee81e1ea Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 13 Jun 2017 21:47:33 +0100 Subject: Include license text in emscripten output --- solc/jsonCompiler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp index 1505a43d..353258a6 100644 --- a/solc/jsonCompiler.cpp +++ b/solc/jsonCompiler.cpp @@ -41,6 +41,8 @@ #include #include +#include "license.h" + using namespace std; using namespace dev; using namespace solidity; @@ -305,6 +307,11 @@ static string s_outputBuffer; extern "C" { +extern char const* license() +{ + /// TOOD: include the copyright information on the top. + return licenseText; +} extern char const* version() { return VersionString.c_str(); -- cgit From e6a36e01210cea7f35b39366b39e3dd59348447e Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 14 Jun 2017 14:14:52 +0100 Subject: Include trailing zero in license --- cmake/templates/license.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/templates/license.h.in b/cmake/templates/license.h.in index ccc61c99..6cdbc38d 100644 --- a/cmake/templates/license.h.in +++ b/cmake/templates/license.h.in @@ -1,5 +1,5 @@ #pragma once static char const licenseText[] = { - @LICENSE_TEXT@ + @LICENSE_TEXT@, 0 }; -- cgit