project-format: add outputType property (beta-3.0)#483
Merged
Conversation
Most of these should be identical to Identifier now, so this adds a default implemention of ProjectGroup, and removes redundant implementations.
Update some strings related to the lowerCamelCase refactoring.
This adds a new, optional, "outputType" property to specify what kind
of project it is, supporting the following values initially:
app, library, test
* "uno build" will report a warning if attempting to build a test-
project, which should be built using "uno test" instead.
* "uno doctor" will check this property when searching for projects, and
skip projects that are not "library" or undefined. Will report a
warning if "outputType" is missing.
* "uno test" will check this property when searching for projects, and
skip projects that are not "test" or have a name ending in "Test"
(1.x and 2.x-compatible). Will report a warning if "outputType" is
missing.
Backends will know what to build based on "outputType" so passing e.g.
-DLIBRARY to "uno build" is no longer necessary.
This updates project files (leftovers) to latest project format.
* Add appropriate "outputType" to relevant projects * Remove redundant -DLIBRARY arguments
mortend
added a commit
to mortend/uno
that referenced
this pull request
May 29, 2023
Don't get false errors about missing main class in libraries. Regressed in 6d6577e (fuse-open#483)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
update project files (again)
update project files
This updates project files (leftovers) to latest project format.
project-format: add outputType property
This adds a new, optional, "outputType" property to specify what kind
of project it is, supporting the following values initially:
"uno build" will report a warning if attempting to build a test-
project, which should be built using "uno test" instead.
"uno doctor" will check this property when searching for projects, and
skip projects that are not "library" or undefined. Will report a
warning if "outputType" is missing.
"uno test" will check this property when searching for projects, and
skip projects that are not "test" or have a name ending in "Test"
(1.x and 2.x-compatible). Will report a warning if "outputType" is
missing.
Backends will know what to build based on "outputType" so passing e.g.
-DLIBRARY to "uno build" is no longer necessary.
engine: update strings
Update some strings related to the lowerCamelCase refactoring.
engine: update ProjectGroup
Most of these should be identical to Identifier now, so this adds a
default implemention of ProjectGroup, and removes redundant
implementations.