mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-28 11:31:53 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			86 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| model {
 | |
| 	components {
 | |
| 		DataSQLite(NativeLibrarySpec) {
 | |
| 			sources {
 | |
| 				rc {
 | |
| 					source {
 | |
| 						srcDir '../..'
 | |
| 						include 'DLLVersion.rc'
 | |
| 					}
 | |
| 				}
 | |
| 				c {
 | |
| 					source {
 | |
| 						srcDir 'src'
 | |
| 						include '**/*.c'
 | |
| 					}
 | |
| 					exportedHeaders {
 | |
| 						srcDir 'include'
 | |
| 					}
 | |
| 					lib project: ':Data', library: 'Data'
 | |
| 					lib project: ':Foundation', library: 'Foundation'
 | |
| 				}
 | |
| 				cpp {
 | |
| 					source {
 | |
| 						srcDir 'src'
 | |
| 						include '**/*.cpp'
 | |
| 					}
 | |
| 					exportedHeaders {
 | |
| 						srcDir 'include'
 | |
| 					}
 | |
| 					lib project: ':Data', library: 'Data'
 | |
| 					lib project: ':Foundation', library: 'Foundation'
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| 	binaries {
 | |
| 		all {
 | |
| 			if (toolChain in VisualCpp) {
 | |
| 				cCompiler.define	"SQLITE_THREADSAFE=1"
 | |
| 				cCompiler.define	"SQLITE_ENABLE_FTS3"
 | |
| 				cCompiler.define	"SQLITE_ENABLE_FTS3_PARENTHESIS"
 | |
| 				cCompiler.define	"SQLITE_OMIT_UTF16"
 | |
| 				cCompiler.define	"SQLITE_OMIT_PROGRESS_CALLBACK"
 | |
| 				cCompiler.define	"SQLITE_OMIT_COMPLETE"
 | |
| 				cCompiler.define	"SQLITE_OMIT_TCL_VARIABLE"
 | |
| 				cCompiler.define	"SQLITE_OMIT_DEPRECATED"
 | |
| 				
 | |
| 				cppCompiler.define	"SQLITE_THREADSAFE=1"
 | |
| 				cppCompiler.define	"SQLITE_ENABLE_FTS3"
 | |
| 				cppCompiler.define	"SQLITE_ENABLE_FTS3_PARENTHESIS"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_UTF16"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_PROGRESS_CALLBACK"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_COMPLETE"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_TCL_VARIABLE"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_DEPRECATED"
 | |
| 			} else {
 | |
| 				cCompiler.args	    "-I$projectDir/src"
 | |
| 				cCompiler.define	"SQLITE_THREADSAFE=1"
 | |
| 				cCompiler.define	"SQLITE_DISABLE_LFS"
 | |
| 				cCompiler.define	"SQLITE_OMIT_UTF16"
 | |
| 				cCompiler.define	"SQLITE_OMIT_PROGRESS_CALLBACK"
 | |
| 				cCompiler.define	"SQLITE_OMIT_COMPLETE"
 | |
| 				cCompiler.define	"SQLITE_OMIT_TCL_VARIABLE"
 | |
| 				cCompiler.define	"SQLITE_OMIT_DEPRECATED"
 | |
| 				
 | |
| 				cppCompiler.args	"-I$projectDir/src"
 | |
| 				cppCompiler.define	"SQLITE_THREADSAFE=1"
 | |
| 				cppCompiler.define	"SQLITE_DISABLE_LFS"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_UTF16"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_PROGRESS_CALLBACK"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_COMPLETE"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_TCL_VARIABLE"
 | |
| 				cppCompiler.define	"SQLITE_OMIT_DEPRECATED"
 | |
| 			}
 | |
| 		}
 | |
| 		withType(SharedLibraryBinarySpec) {
 | |
| 			if (toolChain in VisualCpp) {
 | |
| 				cppCompiler.define	"SQLite_EXPORTS"
 | |
| 			}
 | |
| 		}
 | |
| 		withType(StaticLibraryBinarySpec) {
 | |
| 		}
 | |
| 	}
 | |
| }
 | |
| task poco { dependsOn "assemble" }
 | 
