Home
last modified time | relevance | path

Searched refs:self (Results 1 – 4 of 4) sorted by relevance

/nanopb-3.4.0/generator/
Dnanopb_generator.py130 def enum_name(self, name): argument
133 def struct_name(self, name): argument
136 def type_name(self, name): argument
139 def define_name(self, name): argument
142 def var_name(self, name): argument
145 def enum_entry(self, name): argument
148 def func_name(self, name): argument
151 def bytes_type(self, struct_name, name): argument
155 def enum_name(self, name): argument
156 return self.underscore(name)
[all …]
/nanopb-3.4.0/examples/conan_dependency/
Dconanfile.py11 def requirements(self): argument
12 self.requires("nanopb/0.4.6")
14 def imports(self): argument
16 self.copy("*.h")
18 self.copy("*", src="lib", dst="lib")
20 self.copy("*", src="bin", dst="bin")
22 self.copy("*", src="local", dst="local")
24 def source(self): argument
26 nanopb_package_root = self.deps_cpp_info["nanopb"].rootpath
33 self.run(f"{python_path} protoc {plugin} {output} {proto_flags}")
[all …]
/nanopb-3.4.0/
Dconanfile.py20 def configure(self): argument
21 if self.settings.os_build == "Windows" and self.settings.compiler == "Visual Studio":
22 del self.options.fPIC
24 def build(self): argument
25 cmake = CMake(self)
26 cmake.configure(source_folder=path.join(self.source_folder, "conan-wrapper"))
30 def package_info(self): argument
31 self.cpp_info.includedirs = ["include"]
32 self.cpp_info.libdirs = ["lib"]
33 self.cpp_info.libs = ["protobuf-nanopb"]
/nanopb-3.4.0/generator/proto/
D__init__.py19 def __init__(self, prefix = 'tmp', dir = None): argument
20 self.prefix = prefix
21 self.dir = dir
23 def __enter__(self): argument
24 self.dir = tempfile.mkdtemp(prefix = self.prefix, dir = self.dir)
25 return self.dir
27 def __exit__(self, *args): argument
28 shutil.rmtree(self.dir)