Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
(conan-io#12561) double-conversion: Bump to v3.2.1, fix error with PDBs
Browse files Browse the repository at this point in the history
* double-conversion: add version 3.2.1

Generated and committed by [Conan Center Bot](https://github.com/qchateau/conan-center-bot)
Find more updatable recipes in the [GitHub Pages](https://qchateau.github.io/conan-center-bot/)

* double-conversion: Drop PDBs from package dir

* double-conversion: Fix shared build using workaround from conan-io/conan#11840

Co-authored-by: Quentin Chateau via Conan Center Bot <quentin.chateau@gmail.com>
  • Loading branch information
2 people authored and ericLemanissier committed Sep 26, 2022
1 parent 1f27cd1 commit 3d41e3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions recipes/double-conversion/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"3.2.1":
url: "https://github.com/google/double-conversion/archive/v3.2.1.tar.gz"
sha256: "e40d236343cad807e83d192265f139481c51fc83a1c49e406ac6ce0a0ba7cd35"
"3.2.0":
url: "https://github.com/google/double-conversion/archive/v3.2.0.tar.gz"
sha256: "3dbcdf186ad092a8b71228a5962009b5c96abde9a315257a3452eb988414ea3b"
Expand Down
7 changes: 5 additions & 2 deletions recipes/double-conversion/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
from conan.tools.files import copy, get, rmdir
from conan.tools.files import copy, get, rmdir, rm
from conan.tools.scm import Version
import os

required_conan_version = ">=1.47.0"
required_conan_version = ">=1.50.0"


class DoubleConversionConan(ConanFile):
Expand Down Expand Up @@ -48,6 +48,8 @@ def source(self):

def generate(self):
tc = CMakeToolchain(self)
# Honor BUILD_SHARED_LIBS from conan_toolchain (see https://github.com/conan-io/conan/issues/11840)
tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0077"] = "NEW"
tc.variables["CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS"] = True
tc.generate()

Expand All @@ -61,6 +63,7 @@ def package(self):
cmake = CMake(self)
cmake.install()
rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
rm(self, "*.pdb", os.path.join(self.package_folder, "bin"))

def package_info(self):
self.cpp_info.set_property("cmake_file_name", "double-conversion")
Expand Down
2 changes: 2 additions & 0 deletions recipes/double-conversion/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"3.2.1":
folder: all
"3.2.0":
folder: all
"3.1.7":
Expand Down

0 comments on commit 3d41e3f

Please sign in to comment.