Groovy Documentation

org.gradle.language.cpp
[Java] Interface CppSourceSet

org.gradle.language.HeaderExportingSourceSet
  org.gradle.language.cpp.CppSourceSet
      org.gradle.language.DependentSourceSet
          org.gradle.language.base.BuildableModelElement
              org.gradle.language.base.LanguageSourceSet
                  org.gradle.api.Buildable
                      org.gradle.api.Named
All Superinterfaces:
HeaderExportingSourceSet, DependentSourceSet, BuildableModelElement, LanguageSourceSet, Buildable, Named

@Incubating
public interface CppSourceSet
extends DependentSourceSet, HeaderExportingSourceSet, LanguageSourceSet

A set of C++ source files.

A C++ source set contains a set of source files, together with an optional set of exported header files.

 apply plugin: "cpp"

 sources {
     main {
         // Configure an existing CppSourceSet
         cpp {
             source {
                 srcDirs "src/main/cpp", "src/shared/c++"
                 include "**{
literal:
/}*.cpp" } exportedHeaders { srcDirs "src/main/include", "src/shared/include" } } } }


Method Summary
 
Methods inherited from interface HeaderExportingSourceSet
exportedHeaders, getExportedHeaders, getImplicitHeaders
 
Methods inherited from interface DependentSourceSet
dependency, getLibs, lib
 
Methods inherited from interface LanguageSourceSet
generatedBy, getSource, source
 
Methods inherited from interface BuildableModelElement
builtBy, hasBuildDependencies, setLifecycleTask
 
Methods inherited from interface Named
getName
 

Gradle API 1.12