-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change format of
qbs-configurations.json
file
... that allows to specify an additional common build properties for any build configuration.
- Loading branch information
1 parent
f03c604
commit 5f9d7b6
Showing
8 changed files
with
254 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
/** Qbs configuration data, obtained from the `qbs-configurations.json` file. */ | ||
export class QbsBuildConfigurationData { | ||
|
||
export class QbsSpecificBuildConfigurationData { | ||
public constructor( | ||
public readonly name: string, | ||
public readonly displayName?: string, | ||
public readonly description?: string, | ||
public readonly properties?: { [key: string]: string }) { } | ||
} | ||
|
||
export class QbsAllBuildConfigurationData { | ||
public constructor( | ||
public readonly version: string, | ||
public readonly configurations: QbsSpecificBuildConfigurationData[], | ||
public readonly properties?: { [key: string]: string }, | ||
) { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
/** Helper enumeration for wrapping the data keys from the `qbs-configurations.json` file. */ | ||
export enum QbsBuildConfigurationKey { | ||
Configurations = 'configurations', | ||
Description = 'description', | ||
DisplayName = 'displayName', | ||
Name = 'name', | ||
Properties = 'properties', | ||
Version = 'version', | ||
} |
Oops, something went wrong.