So You Think You Can Hashseparately accessible: 1. Init / construction of the hasher 2. Write overloads for primitive/std types (append to the hash) 3. Finalize function -> size_t2024 Victor Ciura | @ciura_victor - Unleashing 🦀 separately accessible: 1. Init / construction of the hasher 2. Write overloads for primitive/std types (append to the hash) 3. Finalize function -> size_t This technique ensures that: we no longer need to the need to touch the data model and how each field recursively contributes to the overall digest (append/write). 🔶 The same technique can be used with almost every existing hashing algorithm, eg.0 码力 | 119 页 | 6.54 MB | 6 月前3
Conan 1.56 Documentationself.cpp_info # This information is relative to the self.package_folder self.cpp.package.includedirs.append("other_includes") # This information is relative to the self.build_folder self.cpp.build.libdirs .names["pkg_config"] = "mypkg-config-name" self.cpp_info.components["mycomponent"].build_modules.append(os.path.join("lib", (continues on next page) 2.1. Migrating the recipes 21 Conan Documentation compatible_pkg = self.info.clone() compatible_pkg.settings.compiler.version = version self.compatible_packages.append(compatible_pkg) Listing 25: To: def compatibility(self): if self.settings.compiler == "gcc" and0 码力 | 963 页 | 7.67 MB | 1 年前3
Conan 1.55 Documentationself.cpp_info # This information is relative to the self.package_folder self.cpp.package.includedirs.append("other_includes") # This information is relative to the self.build_folder self.cpp.build.libdirs .names["pkg_config"] = "mypkg-config-name" self.cpp_info.components["mycomponent"].build_modules.append(os.path.join("lib", (continues on next page) 2.1. Migrating the recipes 21 Conan Documentation compatible_pkg = self.info.clone() compatible_pkg.settings.compiler.version = version self.compatible_packages.append(compatible_pkg) Listing 25: To: def compatibility(self): if self.settings.compiler == "gcc" and0 码力 | 963 页 | 7.67 MB | 1 年前3
Conan 1.53 Documentationself.cpp_info # This information is relative to the self.package_folder self.cpp.package.includedirs.append("other_includes") # This information is relative to the self.build_folder self.cpp.build.libdirs .names["pkg_config"] = "mypkg-config-name" self.cpp_info.components["mycomponent"].build_modules.append(os.path.join("lib", (continues on next page) 2.1. Migrating the recipes 21 Conan Documentation compatible_pkg = self.info.clone() compatible_pkg.settings.compiler.version = version self.compatible_packages.append(compatible_pkg) Listing 25: To: def compatibility(self): if self.settings.compiler == "gcc" and0 码力 | 953 页 | 7.64 MB | 1 年前3
Conan 1.54 Documentationself.cpp_info # This information is relative to the self.package_folder self.cpp.package.includedirs.append("other_includes") # This information is relative to the self.build_folder self.cpp.build.libdirs .names["pkg_config"] = "mypkg-config-name" self.cpp_info.components["mycomponent"].build_modules.append(os.path.join("lib", (continues on next page) 2.1. Migrating the recipes 21 Conan Documentation compatible_pkg = self.info.clone() compatible_pkg.settings.compiler.version = version self.compatible_packages.append(compatible_pkg) Listing 25: To: def compatibility(self): if self.settings.compiler == "gcc" and0 码力 | 953 页 | 7.65 MB | 1 年前3
Conan 1.52 Documentationself.cpp_info # This information is relative to the self.package_folder self.cpp.package.includedirs.append("other_includes") # This information is relative to the self.build_folder self.cpp.build.libdirs .names["pkg_config"] = "mypkg-config-name" self.cpp_info.components["mycomponent"].build_modules.append(os.path.join("lib", ˓→"mypkg_bm.cmake")) ... Could be declared like this with the properties model: compatible_pkg = self.info.clone() compatible_pkg.settings.compiler.version = version self.compatible_packages.append(compatible_pkg) Listing 24: To: def compatibility(self): if self.settings.compiler == "gcc" and0 码力 | 943 页 | 7.62 MB | 1 年前3
Conan 1.7 Documentationsys conan_repo_path = "/home/your_user/conan" # ABSOLUTE PATH TO CONAN REPOSITORY FOLDER sys.path.append(conan_repo_path) from conans.client.command import main main(sys.argv[1:]) Test your conan script disable the SSL certificate checks. E.g., conan remote add/update myremote https://somedir False 2. Append the server .crt file contents to ~/.conan/cacert.pem file. To learn more, see How to manage SSL package_info(self): self.output.info("Using %s version" % self.nasm_folder_name) self.env_info.path.append(os.path.join(self.package_folder, self.nasm_folder_ ˓→name)) There are some remarkable things in0 码力 | 433 页 | 2.95 MB | 1 年前3
Conan 1 Documentationself.cpp_info # This information is relative to the self.package_folder self.cpp.package.includedirs.append("other_includes") # This information is relative to the self.build_folder self.cpp.build.libdirs ["cmake_find_package", "cmake_find_package_multi"]: self.cpp_info.components["main"].build_modules[generator].append(os.path. �→join("lib", "cmake", "pybind11", "pybind11Common.cmake")) ... To translate this information .names["pkg_config"] = "mypkg-config-name" self.cpp_info.components["mycomponent"].build_modules.append(os.path.join("lib", �→"mypkg_bm.cmake")) ... Could be declared like this with the properties model:0 码力 | 975 页 | 8.75 MB | 1 年前3
Conan 1.63 Documentationself.cpp_info # This information is relative to the self.package_folder self.cpp.package.includedirs.append("other_includes") # This information is relative to the self.build_folder self.cpp.build.libdirs ["cmake_find_package", "cmake_find_package_multi"]: self.cpp_info.components["main"].build_modules[generator].append(os.path. ˓→join("lib", "cmake", "pybind11", "pybind11Common.cmake")) ... To translate this information .names["pkg_config"] = "mypkg-config-name" self.cpp_info.components["mycomponent"].build_modules.append(os.path.join("lib", ˓→"mypkg_bm.cmake")) ... Could be declared like this with the properties model:0 码力 | 995 页 | 7.54 MB | 1 年前3
Conan 1.62 Documentationself.cpp_info # This information is relative to the self.package_folder self.cpp.package.includedirs.append("other_includes") # This information is relative to the self.build_folder self.cpp.build.libdirs ["cmake_find_package", "cmake_find_package_multi"]: self.cpp_info.components["main"].build_modules[generator].append(os.path. ˓→join("lib", "cmake", "pybind11", "pybind11Common.cmake")) ... To translate this information .names["pkg_config"] = "mypkg-config-name" self.cpp_info.components["mycomponent"].build_modules.append(os.path.join("lib", ˓→"mypkg_bm.cmake")) ... Could be declared like this with the properties model:0 码力 | 993 页 | 7.53 MB | 1 年前3
共 101 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11













