mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2395 from ethereum/json-license
Include license text in emscripten output
This commit is contained in:
commit
5609d2b4a8
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
static char const licenseText[] = {
|
static char const licenseText[] = {
|
||||||
@LICENSE_TEXT@
|
@LICENSE_TEXT@, 0
|
||||||
};
|
};
|
||||||
|
@ -41,6 +41,8 @@
|
|||||||
#include <libsolidity/ast/ASTJsonConverter.h>
|
#include <libsolidity/ast/ASTJsonConverter.h>
|
||||||
#include <libsolidity/interface/Version.h>
|
#include <libsolidity/interface/Version.h>
|
||||||
|
|
||||||
|
#include "license.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace dev;
|
using namespace dev;
|
||||||
using namespace solidity;
|
using namespace solidity;
|
||||||
@ -305,6 +307,11 @@ static string s_outputBuffer;
|
|||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
extern char const* license()
|
||||||
|
{
|
||||||
|
/// TOOD: include the copyright information on the top.
|
||||||
|
return licenseText;
|
||||||
|
}
|
||||||
extern char const* version()
|
extern char const* version()
|
||||||
{
|
{
|
||||||
return VersionString.c_str();
|
return VersionString.c_str();
|
||||||
|
Loading…
Reference in New Issue
Block a user