Skip to content

Reduce dependencies by eliminating unnecessary components#668

Merged
ferdnyc merged 3 commits intoOpenShot:developfrom
ferdnyc:deps-reduction
Apr 29, 2021
Merged

Reduce dependencies by eliminating unnecessary components#668
ferdnyc merged 3 commits intoOpenShot:developfrom
ferdnyc:deps-reduction

Conversation

@ferdnyc
Copy link
Copy Markdown
Contributor

@ferdnyc ferdnyc commented Apr 29, 2021

We don't actually use ImageMagick's MagickWand API at all, ditto for ffmpeg's avdevice, avfilter, or postproc. We also don't use avresample, except when swresample is unavailable. So, this PR pares down the modules we do link with and depend on to just the set we actually use.

Also, when using the bundled jsoncpp, building it as an OBJECT target saves us from having to recompile it for each target it's linked to. (Which will save a lot of time, especially now that each unit test class is a separate target. Number of times jsoncpp is compiled during the build goes down from 26 to just 1.)

ferdnyc added 2 commits April 28, 2021 22:38
- We don't make use of any part of avdevice, avfilter, or postproc, so
  remove all of those from the package COMPONENTS list.
- In addition, the deprecated avresample will only be linked/used if
  swresample is not present on the system.
@ferdnyc ferdnyc added the build Issues related to compiling or installing libopenshot and its dependencies label Apr 29, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 29, 2021

Codecov Report

Merging #668 (1f05c5f) into develop (3d804c4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #668   +/-   ##
========================================
  Coverage    52.42%   52.42%           
========================================
  Files          151      151           
  Lines        12346    12346           
========================================
  Hits          6473     6473           
  Misses        5873     5873           

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 3d804c4...1f05c5f. Read the comment docs.

Avoids having to recompile it for every target.
@ferdnyc ferdnyc merged commit aa57219 into OpenShot:develop Apr 29, 2021
@ferdnyc ferdnyc deleted the deps-reduction branch April 29, 2021 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues related to compiling or installing libopenshot and its dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant