Conan 2.5 Documentation
package_folder, "bin"), keep_ ˓→path=False) def package_info(self): self.buildenv_info.define("MY_VAR", "23") There are few relevant things in this recipe: 1. It declares package_type = "application" In the package_info() method, we are using self.buildenv_info to define a environment variable MY_VAR that will also be available in the consumer. Let’s create a binary package for the tool_require: self.build_folder)) if self.settings_build.os != "Windows": self.run("echo MY_VAR=$MY_VAR") else: self.run("set MY_VAR") In this simple recipe we are declaring a tool_require to secure_scanner/1.00 码力 | 769 页 | 4.70 MB | 1 年前3Conan 2.4 Documentation
package_folder, "bin"), keep_ ˓→path=False) def package_info(self): self.buildenv_info.define("MY_VAR", "23") There are few relevant things in this recipe: 1. It declares package_type = "application" In the package_info() method, we are using self.buildenv_info to define a environment variable MY_VAR that will also be available in the consumer. Let’s create a binary package for the tool_require: self.build_folder)) if self.settings_build.os != "Windows": self.run("echo MY_VAR=$MY_VAR") else: self.run("set MY_VAR") In this simple recipe we are declaring a tool_require to secure_scanner/1.00 码力 | 769 页 | 4.69 MB | 1 年前3Conan 2.10 Documentation
package_folder, "bin"), keep_ ˓→path=False) def package_info(self): self.buildenv_info.define("MY_VAR", "23") There are few relevant things in this recipe: 1. It declares package_type = "application" In the package_info() method, we are using self.buildenv_info to define a environment variable MY_VAR that will also be available in the consumer. Let’s create a binary package for the tool_require: self.build_folder)) if self.settings_build.os != "Windows": self.run("echo MY_VAR=$MY_VAR") else: self.run("set MY_VAR") In this simple recipe we are declaring a tool_require to secure_scanner/1.00 码力 | 803 页 | 5.02 MB | 10 月前3Conan 1.56 Documentation
Environment class MyTestPkg(ConanFile): ... def generate(self): env = Environment() env.define("foo", "var") # scope="build" is the default envvars = env.vars(self, scope="build") # This will generate a my_launcher specified in the following structure: [settings] setting=value [options] MyLib:shared=True [env] env_var=value [tool_requires] tool1/0.1@user/channel tool2/0.1@user/channel, tool3/0.1@user/channel *: tool4/0 account that the server config files are located in the home of the configured Apache user, e.g., var/www/.conan_server, so remember to use that directory to configure your Conan server. Permissions Parameters0 码力 | 963 页 | 7.67 MB | 1 年前3Conan 1.55 Documentation
Environment class MyTestPkg(ConanFile): ... def generate(self): env = Environment() env.define("foo", "var") # scope="build" is the default envvars = env.vars(self, scope="build") # This will generate a my_launcher specified in the following structure: [settings] setting=value [options] MyLib:shared=True [env] env_var=value [tool_requires] tool1/0.1@user/channel tool2/0.1@user/channel, tool3/0.1@user/channel *: tool4/0 account that the server config files are located in the home of the configured Apache user, e.g., var/www/.conan_server, so remember to use that directory to configure your Conan server. Permissions Parameters0 码力 | 963 页 | 7.67 MB | 1 年前3Conan 2.6 Documentation
package_folder, "bin"), keep_ ˓→path=False) def package_info(self): self.buildenv_info.define("MY_VAR", "23") There are few relevant things in this recipe: 1. It declares package_type = "application" In the package_info() method, we are using self.buildenv_info to define a environment variable MY_VAR that will also be available in the consumer. Let’s create a binary package for the tool_require: self.build_folder)) if self.settings_build.os != "Windows": self.run("echo MY_VAR=$MY_VAR") else: self.run("set MY_VAR") In this simple recipe we are declaring a tool_require to secure_scanner/1.00 码力 | 777 页 | 4.91 MB | 10 月前3Conan 2.9 Documentation
package_folder, "bin"), keep_ ˓→path=False) def package_info(self): self.buildenv_info.define("MY_VAR", "23") There are few relevant things in this recipe: 1. It declares package_type = "application" In the package_info() method, we are using self.buildenv_info to define a environment variable MY_VAR that will also be available in the consumer. Let’s create a binary package for the tool_require: self.build_folder)) if self.settings_build.os != "Windows": self.run("echo MY_VAR=$MY_VAR") else: self.run("set MY_VAR") In this simple recipe we are declaring a tool_require to secure_scanner/1.00 码力 | 795 页 | 4.99 MB | 10 月前3Conan 2.7 Documentation
package_folder, "bin"), keep_ ˓→path=False) def package_info(self): self.buildenv_info.define("MY_VAR", "23") There are few relevant things in this recipe: 1. It declares package_type = "application" In the package_info() method, we are using self.buildenv_info to define a environment variable MY_VAR that will also be available in the consumer. Let’s create a binary package for the tool_require: self.build_folder)) if self.settings_build.os != "Windows": self.run("echo MY_VAR=$MY_VAR") else: self.run("set MY_VAR") In this simple recipe we are declaring a tool_require to secure_scanner/1.00 码力 | 779 页 | 4.93 MB | 10 月前3Conan 2.8 Documentation
package_folder, "bin"), keep_ ˓→path=False) def package_info(self): self.buildenv_info.define("MY_VAR", "23") There are few relevant things in this recipe: 1. It declares package_type = "application" In the package_info() method, we are using self.buildenv_info to define a environment variable MY_VAR that will also be available in the consumer. Let’s create a binary package for the tool_require: self.build_folder)) if self.settings_build.os != "Windows": self.run("echo MY_VAR=$MY_VAR") else: self.run("set MY_VAR") In this simple recipe we are declaring a tool_require to secure_scanner/1.00 码力 | 785 页 | 4.95 MB | 10 月前3Conan 1.51 Documentation
Environment class MyTestPkg(ConanFile): ... def generate(self): env = Environment() env.define("foo", "var") # scope="build" is the default envvars = env.vars(self, scope="build") # This will generate a my_launcher specified in the following structure: [settings] setting=value [options] MyLib:shared=True [env] env_var=value [tool_requires] tool1/0.1@user/channel tool2/0.1@user/channel, tool3/0.1@user/channel *: tool4/0 account that the server config files are located in the home of the configured Apache user, e.g., var/www/.conan_server, so remember to use that directory to configure your Conan server. Permissions Parameters0 码力 | 933 页 | 7.58 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8