-
Notifications
You must be signed in to change notification settings - Fork 1
/
conanfile.py
47 lines (40 loc) · 1.54 KB
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from conans import ConanFile, CMake, tools
class LumaAvConan(ConanFile):
name = "luma_av"
version = "0.0.0"
license = "<Put the package license here>"
author = "<Put your name here> <And your email here>"
url = "<Package recipe repository url here, for issues about the package>"
description = "<Description of Lumaav here>"
topics = ("<Put some tag here>", "<here>", "<and here>")
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = {
"shared": True,
"ffmpeg:with_opus": False,
"ffmpeg:with_libalsa": False,
"ffmpeg:with_libx265": False,
"ffmpeg:with_libmp3lame": False,
"ffmpeg:with_pulse": False,
"ffmpeg:shared": True,
"gtest:build_gmock": False,
"gtest:shared": True,
}
generators = "CMakeToolchain", "CMakeDeps"
exports_sources = "src/*", "test/*", "CMakeLists.txt"
def requirements(self):
self.requires("outcome/2.1.5")
self.requires("ffmpeg/4.4")
self.requires("gtest/cci.20210126")
def build(self):
cmake = CMake(self)
cmake.definitions["CMAKE_TOOLCHAIN_FILE"] = "conan_toolchain.cmake"
cmake.configure()
cmake.build()
cmake.test(output_on_failure=True)
def package(self):
self.copy("*.hpp", dst="include", src="hello")
self.copy("*.so", dst="lib", keep_path=False)
self.copy("*.a", dst="lib", keep_path=False)
def package_info(self):
self.cpp_info.libs = ["luma_av"]