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,20 +13,25 @@ buildscript {
} }
} }
apply plugin: 'java' allprojects {
apply plugin: 'kotlin' apply plugin: 'java'
apply plugin: 'application'
mainClassName = "asmble.cli.MainKt" repositories {
repositories {
mavenCentral() mavenCentral()
}
} }
distTar.archiveName = 'asmble.tar' project(':compiler') {
distZip.archiveName = 'asmble.zip' apply plugin: 'kotlin'
apply plugin: 'application'
dependencies { 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-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.ow2.asm:asm-tree:$asm_version" compile "org.ow2.asm:asm-tree:$asm_version"
@ -34,4 +39,5 @@ dependencies {
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testCompile "org.ow2.asm:asm-debug-all:$asm_version" testCompile "org.ow2.asm:asm-debug-all:$asm_version"
}
} }

View File

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