Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Description File #523

Merged
merged 17 commits into from
Aug 1, 2022
Merged

Build Description File #523

merged 17 commits into from
Aug 1, 2022

Conversation

flavioBachmann
Copy link
Contributor

@flavioBachmann flavioBachmann commented Jul 25, 2022

Started to implement the build description file mentioned in issue #483

  • The sources to build (Could be globs)
  • The libraries to include/link to
  • Libraries are specified by a path.
  • Anything in the include directory of the library is included.
  • SO files should be located under their target folders in the lib directory
  • The output type (Static/Shared/Executable)
  • The output filename
  • documentation to RuSty
  • The build would be ran for the default target, unless a --target is passed with a target triple.

Copy link
Collaborator

@ghaith ghaith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some things we need to change, but in general looks good 👍

book/src/using_rusty/build_description_files.md Outdated Show resolved Hide resolved
book/src/using_rusty/build_description_files.md Outdated Show resolved Hide resolved
book/src/using_rusty/build_description_files.md Outdated Show resolved Hide resolved
book/src/using_rusty/build_description_files.md Outdated Show resolved Hide resolved
book/src/using_rusty/build_description_files.md Outdated Show resolved Hide resolved
src/build.rs Outdated Show resolved Hide resolved
src/build.rs Outdated Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Jul 26, 2022

Codecov Report

Merging #523 (e1a8c8b) into master (4b5e8ff) will decrease coverage by 0.86%.
The diff coverage is 15.73%.

@@            Coverage Diff             @@
##           master     #523      +/-   ##
==========================================
- Coverage   93.16%   92.30%   -0.87%     
==========================================
  Files          41       42       +1     
  Lines       14857    15024     +167     
==========================================
+ Hits        13842    13868      +26     
- Misses       1015     1156     +141     
Impacted Files Coverage Δ
src/build.rs 0.00% <0.00%> (ø)
src/lib.rs 64.74% <2.58%> (-10.98%) ⬇️
src/cli.rs 97.83% <96.55%> (-0.10%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b5e8ff...e1a8c8b. Read the comment docs.

Copy link
Collaborator

@ghaith ghaith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small comments, we can discuss them / solve them tomorrow in pair

src/build.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
src/cli.rs Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
@ghaith
Copy link
Collaborator

ghaith commented Jul 28, 2022

I'm approving this for now, you can change the typos in the packaging or the followup commit

flavioBachmann added a commit to flavioBachmann/rusty that referenced this pull request Jul 28, 2022
@ghaith ghaith merged commit ac8a601 into PLC-lang:master Aug 1, 2022
ghaith added a commit that referenced this pull request Aug 2, 2022
* validate Pointer incl. tests

* using cargo clippy for coding style as well as cargo fmt

* multi-type declarations incl. tests

* subcommand as well as simple build description file

* improved subcommand

* improved build description file

* adding libraries and parsing them

* documentation and minor improvements

* Pull Request improvements

* package_commands for build description file

* changes after review

* improvements from review

* adding sysroot and target-triple as inline parameters for subcommand

* addingchangable build location

* typos from Build Description File #523

* tests added

* Small review changes

* change relative path to absolut, improved tests

* adapt test for windows

* tests improved

* Made the build work regadless of start location

* make every key optional/default

* typo

* Added lib location to build parameters, made sure default names are calculated from input

Co-authored-by: Ghaith Hachem <[email protected]>
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.

3 participants