Skip to content

Don't build/install mp4subtitle by default#49

Open
ferdnyc wants to merge 1 commit into
enzo1982:mainfrom
ferdnyc:remove-useless-mp4subtitle
Open

Don't build/install mp4subtitle by default#49
ferdnyc wants to merge 1 commit into
enzo1982:mainfrom
ferdnyc:remove-useless-mp4subtitle

Conversation

@ferdnyc

@ferdnyc ferdnyc commented Feb 28, 2024

Copy link
Copy Markdown

The mp4subtitle util has no usable functionality, with all of its features printing "NOT IMPLEMENTED" when activated. So, hide it behind a configuration flag:

  • -DBUILD_EXTRA_UTILS=1 (CMake)
  • --enable-extra-util (autotools)

And default to not building/installing unless set.

The autotools build will also avoid installing the mp4subtitle.1 man page unless the utility is built.

Caveats

The CMake install (silently) makes BUILD_EXTRA_UTILS depend on BUILD_UTILScmake -DBUILD_UTILS=0 -DBUILD_EXTRA_UTILS=1 will still not build/install mp4subtitle.

In the autotools build, technically configure --disable-util --enable-extra-util will be accepted, but it will lead to a bad build because libmp4v2_la_SOURCES and libutil_la_SOURCES won't be configured with the utility source files.

If either/both is a major concern, checks for bad combinations of flags can be added.

The mp4subtitle util has no usable functionality, with all of its
features printing "NOT IMPLEMENTED" when activated. So, hide it
behind a configuration flag:
  * `-DBUILD_EXTRA_UTILS=1` (CMake)
  * `--enable-extra-util` (autotools)
And default to not building/installing unless set.
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