From b8624c72d91668b006717707247d50849af71cdf Mon Sep 17 00:00:00 2001 From: Ferenc Boldog Date: Tue, 29 Jan 2019 12:11:47 +0100 Subject: [PATCH] generate p8compiler and p8vm scripts --- compiler/build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/compiler/build.gradle b/compiler/build.gradle index 91641c8b5..d95f48249 100644 --- a/compiler/build.gradle +++ b/compiler/build.gradle @@ -1,5 +1,6 @@ plugins { id "org.jetbrains.kotlin.jvm" version "1.3.20" + id 'application' } repositories { @@ -35,4 +36,22 @@ sourceSets { } } } + + + +application { + mainClassName = 'prog8.CompilerMainKt' + applicationName = 'p8compile' +} + +task p8vmScript(type: CreateStartScripts) { + mainClassName = "prog8.StackVmMainKt" + applicationName = "p8vm" + outputDir = new File(project.buildDir, 'scripts') + classpath = jar.outputs.files + project.configurations.runtime +} + +applicationDistribution.into("bin") { + from(p8vmScript) + fileMode = 0755 }