 Conan 1.20 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 611 页 | 4.89 MB | 1 年前3 Conan 1.20 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 611 页 | 4.89 MB | 1 年前3
 Conan 1.19 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 609 页 | 4.88 MB | 1 年前3 Conan 1.19 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 609 页 | 4.88 MB | 1 年前3
 Conan 1.21 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 621 页 | 4.92 MB | 1 年前3 Conan 1.21 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 621 页 | 4.92 MB | 1 年前3
 Conan 1.22 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 629 页 | 4.98 MB | 1 年前3 Conan 1.22 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 629 页 | 4.98 MB | 1 年前3
 Conan 1.23 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 637 页 | 5.04 MB | 1 年前3 Conan 1.23 Documentationlibraries One example of a build requirement could be a testing framework, which is implemented as a library. Let’s call it mytest_framework, an existing Conan package. Build requirements can be checked with the following build() method: def build(self): cmake = CMake(self) enable_testing = "mytest_framework" in self.deps_cpp_info.deps cmake.configure(defs={"ENABLE_TESTING": enable_testing}) cmake.build() the mytest_framework nor build the tests, for normal installation: $ conan install . But if the following profile is defined: Listing 2: mytest_profile [build_requires] mytest_framework/0.1@user/channel0 码力 | 637 页 | 5.04 MB | 1 年前3
 Conan 1.26 Documentationthe graph (with conan info --graph). 8.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 669 页 | 5.51 MB | 1 年前3 Conan 1.26 Documentationthe graph (with conan info --graph). 8.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 669 页 | 5.51 MB | 1 年前3
 Conan 1.25 Documentationthe graph (with conan info --graph). 8.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 655 页 | 5.45 MB | 1 年前3 Conan 1.25 Documentationthe graph (with conan info --graph). 8.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 655 页 | 5.45 MB | 1 年前3
 Conan 1.29 Documentationthe graph (with conan info --graph). 8.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 703 页 | 5.41 MB | 1 年前3 Conan 1.29 Documentationthe graph (with conan info --graph). 8.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 703 页 | 5.41 MB | 1 年前3
 Conan 1.30 Documentationthe graph (with conan info --graph). 9.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 715 页 | 5.39 MB | 1 年前3 Conan 1.30 Documentationthe graph (with conan info --graph). 9.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 715 页 | 5.39 MB | 1 年前3
 Conan 1.31 Documentationthe graph (with conan info --graph). 9.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 721 页 | 5.41 MB | 1 年前3 Conan 1.31 Documentationthe graph (with conan info --graph). 9.3.4 Example: testing framework and build tool One example of build requirement is a testing framework implemented as a library, another good example is a build tool tool used in the compile process. Let’s call them mytest_framework and cmake_turbo, and imagine we already have a package available for both of them. Build requirements can be checked for existence (whether method: def build_requirements(self): if self.options.enable_testing: self.build_requires("mytest_framework/0.1@user/channel", force_host_context=True) def build(self): # Use our own 'cmake_turbo' if it0 码力 | 721 页 | 5.41 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













