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

Don't build/install mp4subtitle by default #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ferdnyc
Copy link

@ferdnyc ferdnyc commented Feb 28, 2024

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