aboutsummaryrefslogtreecommitdiffstats
path: root/conanfile.py
diff options
context:
space:
mode:
authorDmitrii Dmitriev <40385868+dimdim1177@users.noreply.github.com>2024-10-10 15:32:14 +0300
committerGitHub <noreply@github.com>2024-10-10 14:32:14 +0200
commit05531b0ec26af5ca4c764cb053c50f45a8f2930d (patch)
treedd97fc9e1570e9cb9695248a9a3a88848b9ed958 /conanfile.py
parent7ebf97cc4af198d869dba7efe951ca859d869c12 (diff)
downloadydb-05531b0ec26af5ca4c764cb053c50f45a8f2930d.tar.gz
Replace conanfile.txt by conanfile.py (#10066)
Diffstat (limited to 'conanfile.py')
-rw-r--r--conanfile.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py
new file mode 100644
index 0000000000..8edc935829
--- /dev/null
+++ b/conanfile.py
@@ -0,0 +1,27 @@
+from conan import ConanFile
+
+
+class App(ConanFile):
+
+ settings = "os", "compiler", "build_type", "arch"
+
+ default_options = {"libiconv:shared": "True"}
+
+ def requirements(self):
+ self.requires("libiconv/1.15")
+
+ def build_requirements(self):
+ self.tool_requires("bison/3.8.2")
+ self.tool_requires("m4/1.4.19")
+ self.tool_requires("ragel/6.10")
+ self.tool_requires("yasm/1.3.0")
+
+ generators = "cmake_find_package", "cmake_paths"
+
+ def imports(self):
+ self.copy(pattern="*yasm*", src="bin", dst="./bin")
+ self.copy(pattern="bison*", src="bin", dst="./bin/bison/bin")
+ self.copy(pattern="m4*", src="bin", dst="./bin/m4/bin")
+ self.copy(pattern="ragel*", src="bin", dst="./bin")
+ self.copy(pattern="ytasm*", src="bin", dst="./bin")
+ self.copy(pattern="*", src="res", dst="./bin/bison/res")