This commit is contained in:
Rodrigo B. de Oliveira 2013-02-01 17:30:57 -02:00
Родитель 011d930a7c
Коммит 045b38b082
4 изменённых файлов: 106 добавлений и 106 удалений

Просмотреть файл

@ -13,7 +13,7 @@ buildscript {
}
repositories {
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
}
version = '7.1.4532.2'
@ -43,70 +43,70 @@ task extractLatest(type: Copy, dependsOn: downloadLatest) {
}
allprojects {
apply plugin: 'base'
group = rootProject.name
apply plugin: 'base'
group = rootProject.name
}
subprojects {
version = rootProject.version
version = rootProject.version
task zip(type: Zip) {
from ikvmDir
include "${project.name}.dll"
include "${project.name}.exe"
}
task zip(type: Zip) {
from ikvmDir
include "${project.name}.dll"
include "${project.name}.exe"
}
uploadDefault {
repositories {
ivy { url repositoryForPublishing }
}
}
uploadDefault {
repositories {
ivy { url repositoryForPublishing }
}
}
artifacts {
'default' zip
}
artifacts {
'default' zip
}
}
task publish {
dependsOn extractLatest
dependsOn allprojects*.tasks.uploadDefault
dependsOn extractLatest
dependsOn allprojects*.tasks.uploadDefault
}
configurations {
boo {
visible = false
}
boo {
visible = false
}
}
dependencies {
boo 'boo:boo:0.9.5.6'
boo 'boo:boo:0.9.5.6'
}
apply plugin: 'kaizen-lib-client' // provides update$config tasks
def assemblyDependenciesFile = file('assemblyDependencies.gradle')
task updateAssemblyDependencies {
dependsOn extractLatest
dependsOn updateBoo
inputs.source fileTree(dir: ikvmDir, include: 'IKVM*.dll')
inputs.source "$ikvmDir/ikvmc.exe"
inputs.source "$ikvmDir/ikvm.exe"
inputs.source "$ikvmDir/ikvmstub.exe"
outputs.file assemblyDependenciesFile
dependsOn extractLatest
dependsOn updateBoo
inputs.source fileTree(dir: ikvmDir, include: 'IKVM*.dll')
inputs.source "$ikvmDir/ikvmc.exe"
inputs.source "$ikvmDir/ikvm.exe"
inputs.source "$ikvmDir/ikvmstub.exe"
outputs.file assemblyDependenciesFile
doFirst {
assemblyDependenciesFile.withOutputStream { stdout ->
exec {
executable 'mono'
args '--debug'
args 'lib/Boo/booi.exe'
args 'printAssemblyDependencies.boo'
args inputs.files
doFirst {
assemblyDependenciesFile.withOutputStream { stdout ->
exec {
executable 'mono'
args '--debug'
args 'lib/Boo/booi.exe'
args 'printAssemblyDependencies.boo'
args inputs.files
standardOutput = stdout
}
}
}
standardOutput = stdout
}
}
}
}
apply from: assemblyDependenciesFile
@ -114,8 +114,8 @@ apply from: assemblyDependenciesFile
// additional runtime dependencies not captured
// as assembly references
project(':ikvmc') {
dependencies {
'default' project(':IKVM.Runtime')
}
dependencies {
'default' project(':IKVM.Runtime')
}
}

Просмотреть файл

@ -13,14 +13,14 @@ import System.Linq;
import System.IO;
static function Probe() {
LogParenthesizedValue(Path.GetDirectoryName(typeof(UnityEngine.Object).Assembly.Location));
LogParenthesizedValue(Path.GetDirectoryName(typeof(UnityEngine.Object).Assembly.Location));
LogParenthesizedValue(Application.unityVersion);
LogParenthesizedValue(Application.unityVersion);
var editorReferences = typeof(UnityEditor.EditorApplication).Assembly.GetReferencedAssemblies();
//for (var editorRef in editorReferences) Log(editorRef);
var nrefactory = editorReferences.Single(function(assemblyName) { return assemblyName.Name == 'ICSharpCode.NRefactory'; });
LogParenthesizedValue(nrefactory.Version);
var editorReferences = typeof(UnityEditor.EditorApplication).Assembly.GetReferencedAssemblies();
//for (var editorRef in editorReferences) Log(editorRef);
var nrefactory = editorReferences.Single(function(assemblyName) { return assemblyName.Name == 'ICSharpCode.NRefactory'; });
LogParenthesizedValue(nrefactory.Version);
}
static function LogParenthesizedValue(o) {
@ -103,4 +103,4 @@ project(':UnityEditor') {
project(':ICSharpCode.NRefactory') {
version = nrefactoryVersion
}
}

Просмотреть файл

@ -4,23 +4,23 @@ group = 'kaizen'
apply from: '../common.gradle'
buildscript {
dependencies {
classpath 'kaizen:kaizen:0.2.4'
}
repositories {
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
}
dependencies {
classpath 'kaizen:kaizen:0.2.4'
}
repositories {
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
}
}
repositories {
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
}
def ikvmVersion = '7.1.4532.2'
dependencies {
ext {
ikvm = { name -> "IKVM.NET:$name:$ikvmVersion" }
}
ext {
ikvm = { name -> "IKVM.NET:$name:$ikvmVersion" }
}
}
apply plugin: 'base'
@ -28,52 +28,52 @@ apply plugin: 'unity'
apply plugin: 'kaizen-lib-client'
configurations {
ivy
IKVM
ivy
IKVM
}
dependencies {
ivy "org.apache.ivy:ivy:$version"
IKVM "${ikvm('ikvmc')}"
['IKVM.Runtime', 'IKVM.OpenJDK.XML.Parse'].each {
'default' "${ikvm(it)}"
}
ivy "org.apache.ivy:ivy:$version"
IKVM "${ikvm('ikvmc')}"
['IKVM.Runtime', 'IKVM.OpenJDK.XML.Parse'].each {
'default' "${ikvm(it)}"
}
}
repositories {
mavenCentral()
mavenCentral()
}
task downloadJars(type: Copy) {
from configurations.ivy
into project.buildDir
from configurations.ivy
into project.buildDir
}
def outputFileName = "${project.name}.dll"
def outputFile = "${project.buildDir}/${outputFileName}"
task convert(type: Exec, dependsOn: [updateIKVM, downloadJars]) {
inputs.source configurations.ivy
outputs.file outputFile
executable rootProject.unity.mono.cli
args "lib/IKVM/ikvmc.exe"
args "-out:$outputFile"
args "-assembly:${project.name}"
args "-version:$version"
args inputs.files
inputs.source configurations.ivy
outputs.file outputFile
executable rootProject.unity.mono.cli
args "lib/IKVM/ikvmc.exe"
args "-out:$outputFile"
args "-assembly:${project.name}"
args "-version:$version"
args inputs.files
}
task zip(type: Zip, dependsOn: convert) {
from project.buildDir
include outputFileName
from project.buildDir
include outputFileName
}
artifacts {
'default' zip
'default' zip
}
uploadDefault {
repositories {
ivy { url repositoryForPublishing }
}
repositories {
ivy { url repositoryForPublishing }
}
}

Просмотреть файл

@ -1,32 +1,32 @@
buildscript {
dependencies {
classpath 'kaizen:kaizen:0.2.4'
}
repositories {
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
}
dependencies {
classpath 'kaizen:kaizen:0.2.4'
}
repositories {
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
}
}
apply plugin: 'unity'
apply plugin: 'vs2010'
allprojects {
repositories {
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
}
repositories {
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
}
def ikvmVersion = '7.1.4532.2'
dependencies {
ext {
ikvm = { name -> "IKVM.NET:$name:$ikvmVersion" }
}
}
def ikvmVersion = '7.1.4532.2'
dependencies {
ext {
ikvm = { name -> "IKVM.NET:$name:$ikvmVersion" }
}
}
}
vs {
solutions {
"$rootProject.name" {
project(':IvyResolve')
}
}
solutions {
"$rootProject.name" {
project(':IvyResolve')
}
}
}