Skip to content

Commit

Permalink
Build system improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
redcode committed Oct 19, 2024
1 parent 11cd659 commit 557b7fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 10 additions & 0 deletions documentation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ if(${PROJECT_NAME}_WITH_HTML_DOCUMENTATION)
OUTPUT "${_html_documentation_output}"
COMMAND "${SPHINX_BUILD_EXECUTABLE}"
-b html
-Dproject="${PROJECT_NAME}"
-Dversion="${PROJECT_VERSION}"
-Drelease="${PROJECT_VERSION}"
${_html_theme_option}
-Dhtml_title="${PROJECT_NAME}"
-Dbreathe_default_project="${PROJECT_NAME}"
-Dbreathe_projects.${PROJECT_NAME}="${_api_xml_output}"
"${CMAKE_CURRENT_SOURCE_DIR}"
"${_html_documentation_output}"
Expand Down Expand Up @@ -90,6 +95,11 @@ if(${PROJECT_NAME}_WITH_PDF_DOCUMENTATION)
OUTPUT "${_latex_documentation_output}"
COMMAND "${SPHINX_BUILD_EXECUTABLE}"
-b latex
-Dproject="${PROJECT_NAME}"
-Dversion="${PROJECT_VERSION}"
-Drelease="${PROJECT_VERSION}"
-Dhtml_title="${PROJECT_NAME}"
-Dbreathe_default_project="${PROJECT_NAME}"
-Dbreathe_projects.${PROJECT_NAME}="${_api_xml_output}"
"${CMAKE_CURRENT_SOURCE_DIR}"
"${_latex_documentation_output}"
Expand Down
5 changes: 1 addition & 4 deletions documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

# -- Project information -----------------------------------------------------

project = 'Z80'
copyright = u'1999-2024 Manuel Sainz de Baranda y Goñi'
author = u'Manuel Sainz de Baranda y Goñi'
version = '0.2'
copyright = u'1999-2024 Manuel Sainz de Baranda y Goñi'

# -- General configuration ---------------------------------------------------

Expand All @@ -32,7 +30,6 @@
autosectionlabel_prefix_document = True

# Breathe
breathe_default_project = 'Z80'
breathe_domain_by_extension = {'h': 'c'}

# Add any paths that contain templates here, relative to this directory.
Expand Down

0 comments on commit 557b7fe

Please sign in to comment.