update curl example

This commit is contained in:
Juraj Michalek
2014-04-28 10:31:39 +02:00
parent 55b635995c
commit fb2e286af3
2 changed files with 67 additions and 0 deletions

27
curl/build.gradle Normal file
View File

@@ -0,0 +1,27 @@
apply plugin: 'c'
apply plugin: 'visual-studio'
sources {
download {
c {
exportedHeaders {
srcDir "packages/curl.7.30.0.2/build/native/include"
}
}
}
}
executables {
download {
binaries.all {
if (toolChain in VisualCpp) {
cCompiler.args "/MD"
linker.args "/SUBSYSTEM:CONSOLE", "/LIBPATH:../build/lib/", "libcurl.lib"
} else if (toolChain in Gcc) {
linker.args "-lcurl"
}
}
}
}