-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add boostdep/1.75.0 recipe #2096
Merged
Merged
Changes from 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b772cd6
Add boostdep/1.73.0 recipe
madebr 44678eb
boostdep: download + install boost license
madebr d7bee49
boostdep: use requires instead of build_requires for boost
madebr 020e62d
boostdep: only allow MT+Release and discard compiler.version
madebr 186224b
boostdep: remove settings.compiler in package_id
madebr 92fba5c
boostdep: lower required boost version
madebr ebf711a
boostdep: even lower required boost version
madebr 374e750
boostdep: bump required boost version
madebr eac0e66
Revert "boostdep: bump required boost version"
madebr cdd0ed1
boostdep: update to boostdep/1.74.0
madebr 0700397
boostdep: fix on MSVC with static boost
madebr 1264ab7
boostdep: bump boost dependency to 1.74.0
madebr ccd3a62
boostdep: bump to boostdep/1.75.0
madebr f7f8440
boostdep: don't raise Error on non-release builds
madebr ce36973
boostdep: bump version of boost dependency
madebr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
project(cmake_wrapper) | ||
|
||
include(conanbuildinfo.cmake) | ||
conan_basic_setup() | ||
|
||
add_subdirectory(source_subfolder) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sources: | ||
1.73.0: | ||
- url: "https://github.com/boostorg/boostdep/archive/boost-1.73.0.tar.gz" | ||
sha256: "8fc24f1aeea725638fdeb57fa3a0fe5b941f56b73c3af309a7c316591c276658" | ||
- url: "http://www.boost.org/LICENSE_1_0.txt" | ||
sha256: "c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
from conans import CMake, ConanFile, tools | ||
from conans.errors import ConanInvalidConfiguration | ||
import os | ||
|
||
|
||
class BoostDepConan(ConanFile): | ||
name = "boostdep" | ||
settings = "os", "arch", "compiler", "build_type" | ||
description = "A tool to create Boost module dependency reports" | ||
url = "https://github.com/conan-io/conan-center-index" | ||
homepage = "https://github.com/boostorg/boostdep" | ||
license = "BSL-1.0" | ||
topics = ("conan", "boostdep", "dependency", "tree") | ||
exports_sources = "CMakeLists.txt" | ||
generators = "cmake" | ||
|
||
_cmake = None | ||
|
||
@property | ||
def _source_subfolder(self): | ||
return "source_subfolder" | ||
|
||
@property | ||
def _build_subfolder(self): | ||
return "build_subfolder" | ||
|
||
def requirements(self): | ||
self.requires("boost/1.73.0") | ||
|
||
def source(self): | ||
tools.get(**self.conan_data["sources"][self.version][0]) | ||
os.rename("boostdep-boost-{}".format(self.version), self._source_subfolder) | ||
license_info = self.conan_data["sources"][self.version][1] | ||
tools.download(filename=os.path.basename(license_info["url"]), **license_info) | ||
|
||
def _configure_cmake(self): | ||
if self._cmake: | ||
return self._cmake | ||
self._cmake = CMake(self) | ||
self._cmake.configure(build_folder=self._build_subfolder) | ||
return self._cmake | ||
|
||
def build(self): | ||
if self.settings.build_type != "Release": | ||
raise ConanInvalidConfiguration("Only Release built_type supported") | ||
if self.settings.compiler == "Visual Studio" and self.settings.compiler.runtime != "MT": | ||
raise ConanInvalidConfiguration("Only MT runtime supported") | ||
|
||
cmake = self._configure_cmake() | ||
cmake.build() | ||
|
||
def package(self): | ||
self.copy("LICENSE*", dst="licenses") | ||
cmake = self._configure_cmake() | ||
cmake.install() | ||
|
||
def package_id(self): | ||
del self.info.settings.compiler | ||
|
||
def package_info(self): | ||
bin_path = os.path.join(self.package_folder, "bin") | ||
self.output.info("Appending PATH environment variable: {}".format(bin_path)) | ||
self.deps_env_info.PATH.append(bin_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from conans import ConanFile, tools | ||
import os | ||
|
||
|
||
class DefaultNameConan(ConanFile): | ||
settings = "os", "compiler", "arch", "build_type" | ||
|
||
def test(self): | ||
if tools.cross_building(self.settings): | ||
return | ||
tools.mkdir("libs") | ||
tools.save("Jamroot", "") | ||
with tools.environment_append({"BOOST_ROOT": self.build_folder}): | ||
self.run("boostdep --list-modules", run_environment=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
versions: | ||
"1.73.0": | ||
folder: "all" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to remove
Release
builds? We finally decided to keep theDebug
builds just in case someone wants to debug those binaries.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this was done just for reducing the number of builds.
I will modify the recipe to make it look like other installer recipes.