Skip to content

project-format: add outputType property (beta-3.0)#483

Merged
mortend merged 5 commits into
fuse-open:beta-3.0from
mortend:output-type
May 27, 2023
Merged

project-format: add outputType property (beta-3.0)#483
mortend merged 5 commits into
fuse-open:beta-3.0from
mortend:output-type

Conversation

@mortend

@mortend mortend commented May 26, 2023

Copy link
Copy Markdown
Member

update project files (again)

  • Add appropriate "outputType" to relevant projects
  • Remove redundant -DLIBRARY arguments

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:

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.

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.

mortend added 2 commits May 26, 2023 23:19
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.
@mortend mortend changed the title project-format: add outputType property project-format: add outputType property (beta-3.0) May 26, 2023
mortend added 2 commits May 26, 2023 23:57
This updates project files (leftovers) to latest project format.
* Add appropriate "outputType" to relevant projects
* Remove redundant -DLIBRARY arguments
@mortend mortend merged commit 8a43a4f into fuse-open:beta-3.0 May 27, 2023
@mortend mortend deleted the output-type branch May 27, 2023 07:33
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant