Skip to content

Commit

Permalink
Update conanfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kinokrt authored Dec 4, 2023
1 parent 5aa3d70 commit 1b607d1
Showing 1 changed file with 47 additions and 29 deletions.
76 changes: 47 additions & 29 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,67 @@
from conan.tools.cmake import cmake_layout, CMakeDeps

class FlowRecipe(ConanFile):
name = "flow"

settings = "os", "compiler", "build_type", "arch"

generators = (
"CMakeToolchain"
)

requires = (
"boost/1.83.0",
"capnproto/1.0.1",
)

tool_requires = (
"cmake/3.26.3",
"doxygen/1.9.4"
)

options = {
"build": [True, False],
"doc": [True, False]
}

default_options = {
"build": True,
"doc": False
}

def configure(self):
self.options["boost"].without_context = True
self.options["boost"].without_contract = True
self.options["boost"].without_coroutine = True
self.options["boost"].without_fiber = True
self.options["boost"].without_graph = True
self.options["boost"].without_graph_parallel = True
self.options["boost"].without_iostreams = True
self.options["boost"].without_json = True
self.options["boost"].without_locale = True
self.options["boost"].without_log = True
self.options["boost"].without_math = True
self.options["boost"].without_mpi = True
self.options["boost"].without_nowide = True
self.options["boost"].without_python = True
self.options["boost"].without_random = True
self.options["boost"].without_regex = True
self.options["boost"].without_serialization = True
self.options["boost"].without_stacktrace = True
self.options["boost"].without_test = True
self.options["boost"].without_type_erasure = True
self.options["boost"].without_url = True
self.options["boost"].without_wave = True
if self.options.build:
self.options["boost"].without_context = True
self.options["boost"].without_contract = True
self.options["boost"].without_coroutine = True
self.options["boost"].without_fiber = True
self.options["boost"].without_graph = True
self.options["boost"].without_graph_parallel = True
self.options["boost"].without_iostreams = True
self.options["boost"].without_json = True
self.options["boost"].without_locale = True
self.options["boost"].without_log = True
self.options["boost"].without_math = True
self.options["boost"].without_mpi = True
self.options["boost"].without_nowide = True
self.options["boost"].without_python = True
self.options["boost"].without_random = True
self.options["boost"].without_regex = True
self.options["boost"].without_serialization = True
self.options["boost"].without_stacktrace = True
self.options["boost"].without_test = True
self.options["boost"].without_type_erasure = True
self.options["boost"].without_url = True
self.options["boost"].without_wave = True

def requirements(self):
if self.options.build:
self.requires("boost/1.83.0")
self.requires("capnproto/1.0.1")

def build_requirements(self):
if self.options.doc:
self.tool_requires("doxygen/1.9.4")

def layout(self):
cmake_layout(self)

def generate(self):
cmake = CMakeDeps(self)
cmake.build_context_activated = ["doxygen/1.9.4"]
if self.options.doc:
cmake.build_context_activated = ["doxygen/1.9.4"]
cmake.generate()

0 comments on commit 1b607d1

Please sign in to comment.