mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-10-31 10:37:46 +00:00 
			
		
		
		
	 5fa3d6094e
			
		
	
	5fa3d6094e
	
	
	
		
			
			* Backport of feature-gradle Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Replace '/' by '\' to comply with DOS path Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Cleanup Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Put environment setting at the Exec task. Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Use standard release Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Updated mkdoc configuration Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Remove lines guarded by POCO_ENABLE_CPP11 Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Merge remote-tracking branch 'origin/develop' into develop * Fix NuGet & Wix input dependencies file set. Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr> * Remaining fixes for Data2SQL switch. * Use $global:LastExitCode instead of a local LastExitCode
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| import org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec
 | |
| 
 | |
| model {
 | |
| 	components {
 | |
| 		withType(NativeComponentSpec) {
 | |
| 			binaries.withType(NativeBinarySpec) {
 | |
| 				if (buildType == buildTypes.debug) {
 | |
| 					if (it instanceof NativeExecutableBinarySpec) {
 | |
| 						executable.file = toLocalBin(appendDebugSuffix(executable.file), targetPlatform)
 | |
| 					}
 | |
| 				} else
 | |
| 				if (buildType == buildTypes.release) {
 | |
| 					if (it instanceof NativeExecutableBinarySpec) {
 | |
| 						executable.file = toLocalBin(executable.file, targetPlatform)
 | |
| 					} 
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 		TestSuite(NativeLibrarySpec) {
 | |
| 			sources {
 | |
| 				cpp {
 | |
| 					source {
 | |
| 						srcDir 'src'
 | |
| 						include '**/*.cpp'
 | |
| 						exclude '*Driver.cpp'
 | |
| 					}
 | |
| 					exportedHeaders {
 | |
| 						srcDir 'src'
 | |
| 					}
 | |
| 					lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
 | |
| 					lib project: ':SQL:SQLite', library: 'SQLSQLite', linkage: 'shared'
 | |
| 					lib project: ':SQL', library: 'SQL', linkage: 'shared'
 | |
| 					lib project: ':Foundation', library: 'Foundation', linkage: 'shared'
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| 	testSuites {
 | |
| 		SQLiteTestSuite(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteSpec) {
 | |
| 			testing $.components.TestSuite 
 | |
| 		}
 | |
| 	}
 | |
|     binaries {
 | |
|         withType(org.gradle.nativeplatform.test.cppunit.CppUnitTestSuiteBinarySpec) {
 | |
|  			lib project: ':CppUnit', library: 'CppUnit', linkage: 'shared'
 | |
| 			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 testsuite { dependsOn "assemble" }
 | |
| 
 |