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
/build
/gradle
/compiler/build

4
.gitmodules vendored
View File

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

View File

@ -13,25 +13,31 @@ buildscript {
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
allprojects {
apply plugin: 'java'
mainClassName = "asmble.cli.MainKt"
repositories {
mavenCentral()
repositories {
mavenCentral()
}
}
distTar.archiveName = 'asmble.tar'
distZip.archiveName = 'asmble.zip'
project(':compiler') {
apply plugin: 'kotlin'
apply plugin: 'application'
dependencies {
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"
applicationName = "asmble"
mainClassName = "asmble.cli.MainKt"
distTar.archiveName = 'asmble.tar'
distZip.archiveName = 'asmble.zip'
dependencies {
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'