File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if( CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR AND
1818endif ()
1919
2020file (READ "${CMAKE_CURRENT_SOURCE_DIR} /API/Z80.h" _ )
21- string (REGEX MATCH ".*Z80_LIBRARY_VERSION_STRING \" ([^\n ]* )\" .*" _ ${_} )
21+ string (REGEX MATCH ".*Z80_LIBRARY_VERSION_STRING \" ([^\" ]+ )\" .*" _ ${_} )
2222
2323project (Z80
2424 VERSION ${CMAKE_MATCH_1}
@@ -205,11 +205,19 @@ else()
205205 set (PROJECT_VERSION_PATCH 0)
206206 endif ()
207207
208+ file (READ "${CMAKE_CURRENT_SOURCE_DIR} /README" _ )
209+ string (REGEX MATCH ".*Copyright \\ (C\\ ) ([^ ]+) (([^. \t\n ]+ ?)*[^. \t\n ]+).*" _ ${_} )
210+ set (RC_COPYRIGHT_YEAR ${CMAKE_MATCH_1} )
211+ set (RC_AUTHOR ${CMAKE_MATCH_3} )
212+ unset (_)
213+
208214 configure_file (
209215 "${CMAKE_CURRENT_SOURCE_DIR} /sources/Z80.rc.in"
210216 "${CMAKE_CURRENT_BINARY_DIR} /Z80.rc"
211217 @ONLY )
212218
219+ unset (RC_COPYRIGHT_YEAR)
220+ unset (RC_AUTHOR)
213221 target_sources (${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_BINARY_DIR} /Z80.rc" )
214222 endif ()
215223
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ set(DOXYGEN_XML_PROGRAMLISTING YES )
4343
4444get_target_property (DOXYGEN_INCLUDE_PATH Zeta INTERFACE_INCLUDE_DIRECTORIES )
4545
46+ file (READ "${PROJECT_SOURCE_DIR} /README" _ )
47+ string (REGEX MATCH ".*Copyright \\ (C\\ ) ([^ ]+) (([^. \t\n ]+ ?)*[^. \t\n ]+).*" _ ${_} )
48+ set (_copyright_year ${CMAKE_MATCH_1} )
49+ set (_author ${CMAKE_MATCH_2} )
50+ unset (_)
51+
4652doxygen_add_docs (
4753 ${PROJECT_NAME} -API-XML
4854 "${PROJECT_SOURCE_DIR} /API"
@@ -65,6 +71,8 @@ if(${PROJECT_NAME}_WITH_HTML_DOCUMENTATION)
6571 "-Dproject=${PROJECT_NAME} "
6672 "-Dversion=${PROJECT_VERSION} "
6773 "-Drelease=${PROJECT_VERSION} "
74+ "-Dauthor=${_author} "
75+ "-Dcopyright=${_copyright_year} ${_author} "
6876 ${_html_theme_option}
6977 "-Dhtml_title=${PROJECT_NAME} Documentation"
7078 "-Dbreathe_default_project=${PROJECT_NAME} "
@@ -98,6 +106,8 @@ if(${PROJECT_NAME}_WITH_PDF_DOCUMENTATION)
98106 "-Dproject=${PROJECT_NAME} "
99107 "-Dversion=${PROJECT_VERSION} "
100108 "-Drelease=${PROJECT_VERSION} "
109+ "-Dauthor=${_author} "
110+ "-Dcopyright=${_copyright_year} ${_author} "
101111 "-Dbreathe_default_project=${PROJECT_NAME} "
102112 "-Dbreathe_projects.${PROJECT_NAME} =${_api_xml_output} "
103113 "${CMAKE_CURRENT_SOURCE_DIR} "
Original file line number Diff line number Diff line change 33# For the full list of built-in configuration values, see the documentation:
44# https://www.sphinx-doc.org/en/master/usage/configuration.html
55
6- author = u'Manuel Sainz de Baranda y Goñi'
7- copyright = u'1999-2026 Manuel Sainz de Baranda y Goñi'
86extensions = ['sphinx.ext.autosectionlabel' , 'breathe' ]
97templates_path = ['_templates' ]
108exclude_patterns = ['_build' , 'Thumbs.db' , '.DS_Store' ]
119autosectionlabel_prefix_document = True
1210breathe_domain_by_extension = {'h' : 'c' }
1311#html_theme = 'haiku'
14- html_static_path = ['_static' ]
12+ html_static_path = []
1513latex_elements = {'releasename' : 'Version' }
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ BEGIN
1717 BEGIN
1818 BLOCK "040904B0"
1919 BEGIN
20- VALUE "CompanyName", "Manuel Sainz de Baranda y Goñi "
20+ VALUE "CompanyName", "@RC_AUTHOR@ "
2121 VALUE "FileDescription", "@PROJECT_DESCRIPTION@"
2222 VALUE "FileVersion", "@PROJECT_VERSION@"
2323 VALUE "InternalName", "@PROJECT_NAME@"
24- VALUE "LegalCopyright", "Copyright © 1999-2026 Manuel Sainz de Baranda y Goñi "
24+ VALUE "LegalCopyright", "Copyright © @RC_COPYRIGHT_YEAR@ @RC_AUTHOR@ "
2525 VALUE "OriginalFilename", "@PROJECT_NAME@.dll"
2626 VALUE "ProductName", "@PROJECT_NAME@"
2727 VALUE "ProductVersion", "@PROJECT_VERSION@"
You can’t perform that action at this time.
0 commit comments