Skip to content

Commit

Permalink
build: update to conan 2.0.10 for getting doxygen versions
Browse files Browse the repository at this point in the history
  • Loading branch information
silvester747 committed Sep 15, 2023
1 parent 33b1c6e commit 0b09dd3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ docs: doxygen ## generate documentation
define DOXYGEN_template
doxygen-$(1):
CONAN_USER_HOME=$(BUILD_DIR) CONAN_DEFAULT_PROFILE_PATH="" DOXYGEN_VERSION=$(1) \
conan install doxygen/conanfile.py --install-folder=build/doxygen-$(1) --build missing
conan install doxygen/conanfile.py --output-folder=build/doxygen-$(1) --build missing -u
endef
$(foreach version,$(DOXYGEN_VERSIONS),$(eval $(call DOXYGEN_template,$(version))))

doxygen: doxygen-$(LATEST_DOXYGEN_VERSION) ## Install the latest doxygen version

define GENERATE_TEST_XML_template
generate-test-xml-$(1): doxygen-$(1)
. build/doxygen-$(1)/activate_run.sh; cd tests/data/source_code; python3 generate_xml.py doxygen
. build/doxygen-$(1)/conanbuildenv.sh; cd tests/data/source_code; python3 generate_xml.py doxygen

ALL_GENERATE_TEST_XML := $$(ALL_GENERATE_TEST_XML) generate-test-xml-$(1)
endef
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build==1.0.3
colorclass==2.2.2
conan==1.59.0
conan==2.0.10
coverage==7.3.1
doxypypy==0.8.8.7
flake8==6.1.0
Expand Down
9 changes: 6 additions & 3 deletions doxygen/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@

import os

from conans import ConanFile
from conan import ConanFile


class DoxygenConan(ConanFile):
generators = (
"virtualrunenv",
"VirtualBuildEnv",
)
build_requires = (
tool_requires = (
f"doxygen/{os.environ['DOXYGEN_VERSION']}",
)
default_build_options = {
"doxygen/*:enable_search": False,
}

0 comments on commit 0b09dd3

Please sign in to comment.