Fixed samples for the latest changes in Gradle plugin.
- Smaller gradle scripts. - More structure in sample projects. - Simplified build/run. - Added gradle to the rest two samples. - Almost removed all sh scripts. - Gradle now works only inside of build directory. - Fixed READMEs according to the new changes.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
f1fa5327f3
commit
bc941269f0
@@ -2,31 +2,13 @@ apply plugin: 'konan'
|
||||
|
||||
konanInterop {
|
||||
libcurl {
|
||||
defFile 'libcurl.def'
|
||||
includeDirs '/usr/include', '/opt/local/include', '/usr/local/opt/curl/include', '.'
|
||||
}
|
||||
}
|
||||
|
||||
konanArtifacts {
|
||||
Curl {
|
||||
inputFiles project.fileTree('src')
|
||||
useInterop 'libcurl'
|
||||
linkerOpts "-L/opt/local/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/opt/curl/lib -lcurl"
|
||||
}
|
||||
}
|
||||
|
||||
build {
|
||||
project.ext { outputFile = "${projectDir.canonicalPath}/${file(compileKonanCurl.artifactPath).name}" }
|
||||
doLast {
|
||||
copy {
|
||||
from compileKonanCurl.artifactPath
|
||||
into projectDir.canonicalPath
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clean {
|
||||
doLast {
|
||||
delete outputFile
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user