mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-15 16:23:34 +01:00
update curl example
This commit is contained in:
27
curl/build.gradle
Normal file
27
curl/build.gradle
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user