-
Notifications
You must be signed in to change notification settings - Fork 346
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
cleanup configure #430
cleanup configure #430
Conversation
7bbf29f
to
54ffb32
Compare
54ffb32
to
fc515e5
Compare
Some of the macOS/Darwin conditional code probably needs to be tested to see if it is still needed, e.g. mythtv/mythtv/libs/libmyth/mythcontext.cpp Lines 286 to 289 in 991d0f4
|
Maybe I misinterpreted the discussion on IRC, but as I understand it, the plan was to transition the (legacy) configure (derived from the original ffmpeg configure) to CMAKE as soon as V32 is released. So unless this work is helping that transition, this seems to all just be rearranging the deck chairs on the Titanic. |
The first few commits make setting the optimization flag easier. Most of the rest of the commits are replacing defined macros from configure with Qt macros (and updating the Qt macros for Darwin/macOS).
https://doc.qt.io/qt-5/qtglobal.html#Q_PROCESSOR_ARM no macro for aarch64, unfortunately.
|
I will split this into a few orthogonal pull requests.
|
10a6e14
to
a7e8eb1
Compare
a7e8eb1
to
508e171
Compare
508e171
to
0164e09
Compare
0164e09
to
c74c382
Compare
bfdf358
to
f53e3d4
Compare
They were from FFmpeg, but unused by MythTV.
They already were, but make it clearer.
Removed duplicate test for non-zero length optflags, since it was already checked if zero length.
This is clearer than my first change and easier to search for.
Add help text, note neither optimization flag settings are confirmed to work, it will silently not add them instead. (Or log the error for C++) Rename C++ opt flags to match the C ones and add g++ flags. Note: noopt is not actually no optimization. That would be -O0 or -Og for debugging. Print supplied or selected flags at the end.
Added with optimization flags
Still disabled by default
copies ffmpeg_optenable but removes the else branch
I think these have been unused since MythGallery was removed: fce4029
f53e3d4
to
9b2f98a
Compare
This should be a better way of setting the C++ optimization flag.
TODO