Skip to content

Commit 05531b0

Browse files
authored
Replace conanfile.txt by conanfile.py (#10066)
1 parent 7ebf97c commit 05531b0

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

conanfile.py

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from conan import ConanFile
2+
3+
4+
class App(ConanFile):
5+
6+
settings = "os", "compiler", "build_type", "arch"
7+
8+
default_options = {"libiconv:shared": "True"}
9+
10+
def requirements(self):
11+
self.requires("libiconv/1.15")
12+
13+
def build_requirements(self):
14+
self.tool_requires("bison/3.8.2")
15+
self.tool_requires("m4/1.4.19")
16+
self.tool_requires("ragel/6.10")
17+
self.tool_requires("yasm/1.3.0")
18+
19+
generators = "cmake_find_package", "cmake_paths"
20+
21+
def imports(self):
22+
self.copy(pattern="*yasm*", src="bin", dst="./bin")
23+
self.copy(pattern="bison*", src="bin", dst="./bin/bison/bin")
24+
self.copy(pattern="m4*", src="bin", dst="./bin/m4/bin")
25+
self.copy(pattern="ragel*", src="bin", dst="./bin")
26+
self.copy(pattern="ytasm*", src="bin", dst="./bin")
27+
self.copy(pattern="*", src="res", dst="./bin/bison/res")

conanfile.txt

-23
This file was deleted.

0 commit comments

Comments
 (0)