(self)
| 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) |
nothing calls this directly
no test coverage detected