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

openh264: modernize #6996

Merged
merged 2 commits into from
Aug 30, 2021
Merged

Conversation

madebr
Copy link
Contributor

@madebr madebr commented Aug 23, 2021

Specify library name and version: openh264/all

For conan-io/hooks#320


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

All green in build 2 (e85924a6a496e699d94da5725bdacf0a313495da):

  • openh264/2.1.1@:
    All packages built successfully! (All logs)

  • openh264/1.7.0@:
    All packages built successfully! (All logs)

Comment on lines 111 to 141
if self.settings.compiler == "Visual Studio":
env_build.flags.extend(["-nologo", "-{}".format(self.settings.compiler.runtime)])
env_build.link_flags.insert(0, "-link")
autotools.flags.extend(["-nologo", "-{}".format(self.settings.compiler.runtime)])
autotools.link_flags.insert(0, "-link")
if tools.Version(self.settings.compiler.version) >= "12":
autotools.flags.append("-FS")
elif self.settings.compiler in ("apple-clang",):
if self.settings.arch in ("armv8",):
autotools.link_flags.append("-arch arm64")
if self.options.shared:
env_build.fpic = True
args.extend(["{}={}".format(k, v) for k,v in env_build.vars.items()])
autotools.fpic = True
args.extend(["{}={}".format(k, v) for k,v in autotools.vars.items()])

if self.settings.compiler == "Visual Studio":
args.append("OS=msvc")
env_build.flags.append("-FS")
autotools.flags.append("-FS")
else:
if self.settings.os == "Windows":
args.append("OS=mingw_nt")
if self.settings.os == "Android":
libcxx = str(self.settings.compiler.libcxx)
stl_lib = "$(NDKROOT)/sources/cxx-stl/llvm-libc++/libs/$(APP_ABI)/lib%s " % ("c++_static.a" if libcxx == "c++_static" else "c++_shared.so") \
stl_lib = "$(NDKROOT)/sources/cxx-stl/llvm-libc++/libs/$(APP_ABI)/lib{}".format("c++_static.a" if libcxx == "c++_static" else "c++_shared.so") \
+ "$(NDKROOT)/sources/cxx-stl/llvm-libc++/libs/$(APP_ABI)/libc++abi.a"
ndk_home = os.environ["ANDROID_NDK_HOME"]
args.extend([
"NDKLEVEL=%s" % str(self.settings.os.api_level),
"STL_LIB=%s" % stl_lib,
"NDKLEVEL={}".format(self.settings.os.api_level),
"STL_LIB={}".format(stl_lib),
"OS=android",
"NDKROOT=%s" % ndk_home, # not NDK_ROOT here
"TARGET=%s" % self._android_target,
"NDKROOT={}".format(ndk_home), # not NDK_ROOT here
"TARGET={}".format(self._android_target),
"CCASFLAGS=$(CFLAGS) -fno-integrated-as",
])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this block is confusing, there are redundant logics.

@conan-center-bot conan-center-bot merged commit 623d5ba into conan-io:master Aug 30, 2021
@madebr madebr deleted the openh264_modernize branch August 30, 2021 19:38
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.

6 participants