Movatterモバイル変換


[0]ホーム

URL:


CppApplication

API Documentation:CppApplication

Configuration for a C++ application, defining the source files that make up the application plus other settings.

An instance of this type is added as a project extension by the C++ Application Plugin.

Properties

PropertyDescription
baseName

Specifies the base name for this component. This name is used to calculate various output file names. The default value is calculated from the project name.

binaries

The binaries of this component.

developmentBinary

The binary of the component to use as the default for development.

privateHeaders

Defines the private header file directories of this library.

source

Defines the source files or directories of this component. You can add files or directories to this collection. When a directory is added, all source files are included for compilation.

targetMachines

Specifies the target machines this component should be built for. The "machines" extension property (seeTargetMachineFactory) can be used to construct common operating system and architecture combinations.

Methods

MethodDescription
privateHeaders(action)

Configures the private header directories for this component.

source(action)

Configures the source files or directories for this component.

Script blocks

No script blocks

Property details

Property<String>baseName

Specifies the base name for this component. This name is used to calculate various output file names. The default value is calculated from the project name.

BinaryCollection<? extendsSoftwareComponent>binaries (read-only)

The binaries of this component.

Provider<? extendsCppBinary>developmentBinary

The binary of the component to use as the default for development.

ConfigurableFileCollectionprivateHeaders (read-only)

Defines the private header file directories of this library.

When this collection is empty, the directorysrc/main/headers is used by default.

ConfigurableFileCollectionsource (read-only)

Defines the source files or directories of this component. You can add files or directories to this collection. When a directory is added, all source files are included for compilation.

When this collection is empty, the directorysrc/main/cpp is used by default.

SetProperty<TargetMachine>targetMachines

Specifies the target machines this component should be built for. The "machines" extension property (seeTargetMachineFactory) can be used to construct common operating system and architecture combinations.

For example:

targetMachines = [machines.linux.x86_64, machines.windows.x86_64]

Method details

voidprivateHeaders(Action<? superConfigurableFileCollection> action)

Configures the private header directories for this component.

voidsource(Action<? superConfigurableFileCollection> action)

Configures the source files or directories for this component.

©Gradle Inc. All rights reserved.
gradle
Careers |Privacy |Terms of Service |Contact

[8]ページ先頭

©2009-2025 Movatter.jp