Merge pull request #2395 from ethereum/json-license

Include license text in emscripten output
This commit is contained in:
Alex Beregszaszi 2017-06-14 15:57:18 +01:00 committed by GitHub
commit 5609d2b4a8
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#pragma once
static char const licenseText[] = {
@LICENSE_TEXT@
@LICENSE_TEXT@, 0
};

View File

@ -41,6 +41,8 @@
#include <libsolidity/ast/ASTJsonConverter.h>
#include <libsolidity/interface/Version.h>
#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();