diff --git a/.travis.yml b/.travis.yml index e57424e..0552e33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,10 @@ matrix: env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7 CONAN_ARCHS=x86 - <<: *linux env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7 CONAN_ARCHS=x86_64 + - <<: *linux + env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8 CONAN_ARCHS=x86 + - <<: *linux + env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8 CONAN_ARCHS=x86_64 - <<: *linux env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=lasote/conanclang39 CONAN_ARCHS=x86 - <<: *linux @@ -38,6 +42,10 @@ matrix: env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50 CONAN_ARCHS=x86 - <<: *linux env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50 CONAN_ARCHS=x86_64 + - <<: *linux + env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60 CONAN_ARCHS=x86 + - <<: *linux + env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60 CONAN_ARCHS=x86_64 - <<: *osx osx_image: xcode7.3 env: CONAN_APPLE_CLANG_VERSIONS=7.3 @@ -47,6 +55,9 @@ matrix: - <<: *osx osx_image: xcode9 env: CONAN_APPLE_CLANG_VERSIONS=9.0 + - <<: *osx + osx_image: xcode9.3 + env: CONAN_APPLE_CLANG_VERSIONS=9.1 install: - chmod +x .travis/install.sh diff --git a/conanfile.py b/conanfile.py index c3daf95..6f0e0b2 100644 --- a/conanfile.py +++ b/conanfile.py @@ -9,7 +9,7 @@ class ProtobufConan(ConanFile): name = "protobuf" version = "3.5.2" url = "https://github.com/bincrafters/conan-protobuf" - homepage = "https://developers.google.com/protocol-buffers/" + homepage = "https://github.com/google/protobuf" author = "Bincrafters " description = "Protocol Buffers - Google's data interchange format" license = "BSD" @@ -19,7 +19,7 @@ class ProtobufConan(ConanFile): source_subfolder = "source_subfolder" build_subfolder = "build_subfolder" settings = "os", "arch", "compiler", "build_type" - short_paths=True + short_paths = True options = { "shared": [True, False], "with_zlib": [True, False], @@ -27,7 +27,9 @@ class ProtobufConan(ConanFile): } default_options = ( "with_zlib=False", - "shared=False", "fPIC=True") + "shared=False", + "fPIC=True" + ) def configure(self): if self.settings.compiler == 'Visual Studio': @@ -38,8 +40,7 @@ def requirements(self): self.requires("zlib/1.2.11@conan/stable") def source(self): - source_url = "https://github.com/google/protobuf" - tools.get("{0}/archive/v{1}.tar.gz".format(source_url, self.version)) + tools.get("{0}/archive/v{1}.tar.gz".format(self.homepage, self.version)) extracted_dir = self.name + "-" + self.version os.rename(extracted_dir, self.source_subfolder) @@ -48,9 +49,7 @@ def configure_cmake(self): cmake.definitions["CMAKE_INSTALL_LIBDIR"] = "lib" cmake.definitions["protobuf_BUILD_TESTS"] = False cmake.definitions["protobuf_WITH_ZLIB"] = self.options.with_zlib - if self.settings.compiler != 'Visual Studio': - cmake.definitions["CMAKE_POSITION_INDEPENDENT_CODE"] = self.options.fPIC - else: + if self.settings.compiler == 'Visual Studio': cmake.definitions["protobuf_MSVC_STATIC_RUNTIME"] = "MT" in self.settings.compiler.runtime cmake.configure(build_folder=self.build_subfolder) return cmake @@ -60,7 +59,7 @@ def build(self): cmake.build() def package(self): - self.copy("LICENSE", dst="licenses", src=self.build_subfolder) + self.copy("LICENSE", dst="licenses", src=self.source_subfolder) cmake = self.configure_cmake() cmake.install() if self.settings.os == "Macos" and self.options.shared: diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..6513c84 Binary files /dev/null and b/logo.png differ