MCPcopy Create free account
hub / github.com/catboost/catboost / generate

Method generate

conanfile.py:23–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 self.tool_requires("yasm/1.3.0")
22
23 def generate(self):
24 CMakeDeps(self).generate()
25 CMakeToolchain(self).generate()
26
27 for dep in self.dependencies.values():
28 for bindir in dep.cpp_info.bindirs:
29 copy(self, pattern="*swig*", src=bindir, dst=self.build_folder + "../../../.././bin")
30 # SWIG recipe under Conan2 does not set SWIG_LIB, do it manually here or else build fails
31 if os.path.exists(os.path.join(bindir, "swig")):
32 env = Environment()
33 if not env.vars(self).get("SWIG_LIB"):
34 env.define("SWIG_LIB", os.path.join(bindir, "swiglib"))
35 for bindir in dep.cpp_info.bindirs:
36 copy(self, pattern="*yasm*", src=bindir, dst=self.build_folder + "../../../.././bin")
37 for bindir in dep.cpp_info.bindirs:
38 copy(self, pattern="ragel*", src=bindir, dst=self.build_folder + "../../../.././bin")
39 for bindir in dep.cpp_info.bindirs:
40 copy(self, pattern="ytasm*", src=bindir, dst=self.build_folder + "../../../.././bin")
41
42 def layout(self):
43 cmake_layout(self)

Callers

nothing calls this directly

Calls 4

copyFunction · 0.90
EnvironmentClass · 0.85
joinMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected