Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
- disable opus for Visual Studio 2013
Browse files Browse the repository at this point in the history
Signed-off-by: SSE4 <tomskside@gmail.com>
  • Loading branch information
SSE4 committed Oct 10, 2018
1 parent bb40b0e commit 6fcdf39
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
from conans import tools
from bincrafters import build_template_default


def disable_opus(build):
build.options.update({'ffmpeg:opus': False})
return build


if __name__ == "__main__":

builder = build_template_default.get_builder()
if tools.os_info.is_linux and os.getenv("CONAN_GCC_VERSIONS") == 8:
if not os.getenv("CONAN_BUILD_POLICY"):
os.environ["CONAN_BUILD_POLICY"] = "missing"
for shared_option in [False, True]:
custom_options = {"ffmpeg:vdpau": False, "ffmpeg:vaapi": False, "ffmpeg:xcb": False, 'ffmpeg:shared': shared_option}
builder.add({'arch': 'x86', 'build_type': 'Release', 'compiler': 'gcc', 'compiler.version': 8}, custom_options)
builder.add({'arch': 'x86', 'build_type': 'Debug', 'compiler': 'gcc', 'compiler.version': 8}, custom_options)
builder.add({'arch': 'x86_64', 'build_type': 'Release', 'compiler': 'gcc', 'compiler.version': 8}, custom_options)
builder.add({'arch': 'x86_64', 'build_type': 'Debug', 'compiler': 'gcc', 'compiler.version': 8}, custom_options)

if 'CONAN_VISUAL_VERSIONS' in os.environ:
if os.environ['CONAN_VISUAL_VERSIONS'] == '12':

builder.builds = map(disable_opus, builder.items)

builder.run()

0 comments on commit 6fcdf39

Please sign in to comment.