mirror of
https://github.com/google/pebble.git
synced 2025-05-29 14:33:12 +00:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
33
third_party/nanopb/conanfile.py
vendored
Normal file
33
third_party/nanopb/conanfile.py
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
from conans import ConanFile, CMake, tools
|
||||
from os import path
|
||||
|
||||
class NanoPbConan(ConanFile):
|
||||
name = "nanopb"
|
||||
version = "0.4.6"
|
||||
license = "zlib"
|
||||
url = "https://jpa.kapsi.fi/nanopb/"
|
||||
description = "Protocol Buffers with small code size"
|
||||
settings = "os_build", "compiler", "build_type", "arch"
|
||||
generators = "cmake"
|
||||
exports = '*'
|
||||
options = {
|
||||
"fPIC": [True, False],
|
||||
}
|
||||
default_options = {
|
||||
"fPIC": True,
|
||||
}
|
||||
|
||||
def configure(self):
|
||||
if self.settings.os_build == "Windows" and self.settings.compiler == "Visual Studio":
|
||||
del self.options.fPIC
|
||||
|
||||
def build(self):
|
||||
cmake = CMake(self)
|
||||
cmake.configure(source_folder=path.join(self.source_folder, "conan-wrapper"))
|
||||
cmake.build()
|
||||
cmake.install()
|
||||
|
||||
def package_info(self):
|
||||
self.cpp_info.includedirs = ["include"]
|
||||
self.cpp_info.libdirs = ["lib"]
|
||||
self.cpp_info.libs = ["protobuf-nanopb"]
|
Loading…
Add table
Add a link
Reference in a new issue