Moved compiler to subproject

This commit is contained in:
Chad Retz 2017-04-24 18:49:54 -05:00
parent 5430e19a2b
commit d94b5ce898
81 changed files with 28 additions and 20 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/.idea /.idea
/build /build
/gradle /gradle
/compiler/build

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "src/test/resources/spec"] [submodule "compiler/src/test/resources/spec"]
path = src/test/resources/spec path = compiler/src/test/resources/spec
url = https://github.com/WebAssembly/spec.git url = https://github.com/WebAssembly/spec.git

View File

@ -13,25 +13,31 @@ buildscript {
} }
} }
apply plugin: 'java' allprojects {
apply plugin: 'kotlin' apply plugin: 'java'
apply plugin: 'application'
mainClassName = "asmble.cli.MainKt" repositories {
mavenCentral()
repositories { }
mavenCentral()
} }
distTar.archiveName = 'asmble.tar' project(':compiler') {
distZip.archiveName = 'asmble.zip' apply plugin: 'kotlin'
apply plugin: 'application'
dependencies { applicationName = "asmble"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" mainClassName = "asmble.cli.MainKt"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.ow2.asm:asm-tree:$asm_version" distTar.archiveName = 'asmble.tar'
compile "org.ow2.asm:asm-util:$asm_version" distZip.archiveName = 'asmble.zip'
testCompile 'junit:junit:4.12'
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" dependencies {
testCompile "org.ow2.asm:asm-debug-all:$asm_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.ow2.asm:asm-tree:$asm_version"
compile "org.ow2.asm:asm-util:$asm_version"
testCompile 'junit:junit:4.12'
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testCompile "org.ow2.asm:asm-debug-all:$asm_version"
}
} }

View File

@ -1 +1,2 @@
rootProject.name = 'asmble' rootProject.name = 'asmble'
include 'compiler'