-
Notifications
You must be signed in to change notification settings - Fork 271
Add xvidcore-1.3.7 #2609
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
base: master
Are you sure you want to change the base?
Add xvidcore-1.3.7 #2609
Conversation
5513e6c to
5109b9d
Compare
|
|
@neheb it should be ok now |
Signed-off-by: 0verLighT <alexandre@0verlight.com>
Signed-off-by: 0verLighT <alexandre@0verlight.com>
b64dad1 to
96b3874
Compare
Signed-off-by: 0verLighT <alexandre@0verlight.com>
| ) | ||
| meson.override_dependency('xvidcore', xvidcore_deps) | ||
|
|
||
| pkg = import('pkgconfig') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This belongs above xvidcore_dep I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last line should be meson.override_dependency() and pkg_config should be above it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah. pkgconfig relies on the library. override_dependency relies on the dependency.
| include_directories: includes, | ||
| ) | ||
|
|
||
| xvidcore_deps = declare_dependency( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_deps should be _dep. This is a single dependency.
| c_args += ['-DHAVE_INTTYPES_H'] | ||
| endif | ||
|
|
||
| if threads_deps.found() and cc.has_header('pthread.h') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit confusing. thead_dep is not a feature option.
This should be
cc.has_header('pthread.h', dependencies: thread_dep)
In case it's possible or desired to disable threeading.
| sources += files('src/motion/gmc.c') | ||
| endif | ||
|
|
||
| xvidcore = both_libraries( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this both_libraries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In xvidcore, when you compile it, it generates the static library and the shared library. So i compile both libraries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not needed here. meson supports setting default_library to both which makes library() do the same.
Signed-off-by: 0verLighT <alexandre@0verlight.com>
| ] | ||
|
|
||
| if (cpu_family == 'ppc' or cpu_family == 'ppc64') and endian == 'big' | ||
| sources += [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think [] is needed.
| '-ffast-math', | ||
| '-fomit-frame-pointer', | ||
| '-finline-functions', | ||
| '-fPIC', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already default.
Signed-off-by: 0verLighT <alexandre@0verlight.com>
Signed-off-by: 0verLighT <alexandre@0verlight.com>
Request : #2414