version in doxygen
cover version in doxygen
These 2 patches allow to print the DPDK version in doxygen header.
Signature · 14 lines
Thomas --- mk: add rule to print version number mk: insert version number in doxygen config mk/rte.sdkconfig.mk | 6 ++++++ mk/rte.sdkdoc.mk | 2 ++ mk/rte.sdkroot.mk | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) -- 1.7.10.4
PATCH 1/2 mk: add rule to print version number
In reply to a message not in the archiveThe version string is extracted from rte_version.h. RTE_VER_* macros are concatenated and separators " . . r " are inserted.
--- mk/rte.sdkconfig.mk | 6 ++++++ mk/rte.sdkroot.mk | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-)
mk/rte.sdkconfig.mk +6 -0
@@ -31,6 +31,12 @@ # # version: DPDK.L.1.2.3-3 +.PHONY: showversion +showversion: + @sed -rn 's,^#define RTE_VER_[A-Z_]*[[:space:]]+([0-9]+).*,\1,p' \ + $(RTE_SRCDIR)/lib/librte_eal/common/include/rte_version.h | \ + tr '\n' '.' | sed -r 's,\.([0-9]+)\.$$,r\1\n,' + INSTALL_CONFIGS := $(filter-out %~,\ $(patsubst $(RTE_SRCDIR)/config/defconfig_%,%,\ $(wildcard $(RTE_SRCDIR)/config/defconfig_*)))
mk/rte.sdkroot.mk +2 -2
@@ -87,8 +87,8 @@ export ROOTDIRS-y ROOTDIRS- ROOTDIRS-n .PHONY: default default: all -.PHONY: config showconfigs -config showconfigs: +.PHONY: config showconfigs showversion +config showconfigs showversion: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@ .PHONY: test fast_test ring_test mempool_test
Signature · 1 line
1.7.10.4
PATCH 2/2 mk: insert version number in doxygen config
In reply to a message not in the archiveThe parameter PROJECT_NUMBER is used in the HTML header via the template variable $projectnumber.
--- mk/rte.sdkdoc.mk | 2 ++ 1 file changed, 2 insertions(+)
mk/rte.sdkdoc.mk +2 -0
@@ -54,6 +54,8 @@ htmlapi: htmlapi-clean @echo 'doxygen for API...' $(Q)mkdir -p $(RTE_OUTPUT)/doc/html $(Q)(cat $(RTE_SDK)/doc/doxy-api.conf && \ + printf 'PROJECT_NUMBER = ' && \ + $(MAKE) -rR showversion && \ echo OUTPUT_DIRECTORY = $(RTE_OUTPUT)/doc && \ echo HTML_OUTPUT = html/api && \ echo GENERATE_HTML = YES && \
Signature · 1 line
1.7.10.4
Vincent JARDIN
Acked-byRe: [PATCH 2/2] mk: insert version number in doxygen config
In reply to a message not in the archiveit is just look n feel, just push it.
Quoted 22 lines · Thomas Monjalon
The parameter
PROJECT_NUMBERis used in the HTML header via the template variable $projectnumber.Signed-off-by Thomas Monjalon <[email protected]>--- mk/rte.sdkdoc.mk | 2 ++ 1 file changed, 2 insertions(+)mk/rte.sdkdoc.mk +2
-0@@ -54,6 +54,8 @@ htmlapi: htmlapi-clean @echo 'doxygen for API...' $(Q)mkdir -p $(RTE_OUTPUT)/doc/html $(Q)(cat $(RTE_SDK)/doc/doxy-api.conf && \ + printf 'PROJECT_NUMBER = ' && \ + $(MAKE) -rR showversion && \ echo OUTPUT_DIRECTORY = $(RTE_OUTPUT)/doc && \ echo HTML_OUTPUT = html/api && \ echo GENERATE_HTML = YES && \
Vincent JARDIN
Acked-byRe: [PATCH 1/2] mk: add rule to print version number
In reply to a message not in the archiveit is just look n feel, just push it.
Quoted 42 lines · Thomas Monjalon
The version string is extracted from
rte_version.h. RTE_VER_* macros are concatenated and separators " . . r " are inserted.Signed-off-by Thomas Monjalon <[email protected]>--- mk/rte.sdkconfig.mk | 6 ++++++ mk/rte.sdkroot.mk | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-)mk/rte.sdkconfig.mk +6
-0@@ -31,6 +31,12 @@ # # version: DPDK.L.1.2.3-3 +.PHONY: showversion +showversion: + @sed -rn 's,^#define RTE_VER_[A-Z_]*[[:space:]]+([0-9]+).*,\1,p' \ + $(RTE_SRCDIR)/lib/librte_eal/common/include/rte_version.h | \ + tr '\n' '.' | sed -r 's,\.([0-9]+)\.$$,r\1\n,' + INSTALL_CONFIGS := $(filter-out %~,\ $(patsubst $(RTE_SRCDIR)/config/defconfig_%,%,\ $(wildcard $(RTE_SRCDIR)/config/defconfig_*)))mk/rte.sdkroot.mk +2
-2@@ -87,8 +87,8 @@ export ROOTDIRS-y ROOTDIRS- ROOTDIRS-n .PHONY: default default: all -.PHONY: config showconfigs -config showconfigs: +.PHONY: config showconfigs showversion +config showconfigs showversion: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@ .PHONY: test fast_test ring_test mempool_test
Re: [PATCH 1/2] mk: add rule to print version number
In reply to a message not in the archive19/07/2013 21:18, Vincent JARDIN :
Quoted 1 line
Acked-by [email protected]
pushed
Signature · 1 line
Thomas
Re: [PATCH 2/2] mk: insert version number in doxygen config
In reply to a message not in the archive19/07/2013 21:17, Vincent JARDIN :
Quoted 1 line
Acked-by [email protected]
pushed
Now, the version number is shown on API doc:
http://dpdk.org/doc/api/
Signature · 1 line
Thomas