Remove project spec

This commit is contained in:
Francis ANDRE 2018-09-25 08:42:10 +02:00
parent 1b6941762d
commit db76f4e970
2 changed files with 21 additions and 38 deletions

View File

@ -1,29 +1,28 @@
project(":PageCompiler:File2Page") {
model {
components {
File2page(NativeExecutableSpec) {
baseName 'f2pc'
sources {
cpp {
source {
srcDir 'src'
include '**/*.cpp'
}
exportedHeaders {
srcDir 'include'
}
lib project: ':Net', library: 'Net'
lib project: ':Util', library: 'Util'
lib project: ':Foundation', library: 'Foundation'
model {
components {
File2page(NativeExecutableSpec) {
baseName 'f2pc'
sources {
cpp {
source {
srcDir 'src'
include '**/*.cpp'
}
exportedHeaders {
srcDir 'include'
}
lib project: ':Net', library: 'Net'
lib project: ':Util', library: 'Util'
lib project: ':Foundation', library: 'Foundation'
}
binaries.withType(NativeExecutableSpec) {
lib project: ':Net', library: 'Net', linkage: 'shared'
lib project: ':Util', library: 'Util', linkage: 'shared'
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
}
}
binaries.withType(NativeExecutableSpec) {
lib project: ':Net', library: 'Net', linkage: 'shared'
lib project: ':Util', library: 'Util', linkage: 'shared'
lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
}
}
}
}

View File

@ -18,22 +18,6 @@ model {
}
}
binaries {
withType(NativeExecutableBinarySpec) {
if (toolChain in VisualCpp) {
if (buildType == buildTypes.debug) {
cCompiler.args "/MDd"
cppCompiler.args "/MDd"
} else
if (buildType == buildTypes.release) {
cCompiler.args "/MD"
cppCompiler.args "/MD"
} else {
throw new GradleException("Unknown buildType" + buildType)
}
}
if (toolChain in Gcc) {
}
}
}
}
task poco { dependsOn "assemble" }