model {
	components {
		DataODBC(NativeLibrarySpec) {
			sources {
				rc {
					source {
						srcDir '../..'
						include 'DLLVersion.rc'
					}
				}
				cpp {
					source {
						srcDir 'src'
						include '**/*.cpp'
						exclude 'Unicode_WIN32.cpp'
						exclude 'Unicode_UNIXODBC.cpp'
					}
					exportedHeaders {
						srcDir 'include'
					}
					lib project: ':Data', library: 'Data'
					lib project: ':Foundation', library: 'Foundation'
				}
			}
		}
	}
	binaries {
		all {
			if (toolChain in VisualCpp) {
				cppCompiler.define	"THREADSAFE=1"
			}
		}
		withType(SharedLibraryBinarySpec) {
			if (toolChain in VisualCpp) {
				cppCompiler.define	"ODBC_EXPORTS"
				linker.args 'odbc32.lib'
				linker.args 'odbccp32.lib'
			}
		}
		withType(StaticLibraryBinarySpec) {
		}
	}
}
task poco { dependsOn "assemble" }


