doxygen: Generate Doxygen for NIR
authorElie TOURNIER <tournier.elie@gmail.com>
Sat, 9 Apr 2016 13:48:13 +0000 (15:48 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 13 Apr 2016 12:44:33 +0000 (13:44 +0100)
Now, one can do the following to generate and read the nir Doxygen:
cd $MESA_TOP/doxygen
make
firefox nir/index.html

Update v2:
Correct TAGFILES in nir.doxy

Signed-off-by: Elie TOURNIER <tournier.elie@gmail.com>
Reviewed-by: Rhys Kidd <rhyskidd@gmail.com>
[Emil Velikov] v3: Rebase.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
doxygen/.gitignore
doxygen/Makefile
doxygen/Makefile.orig [new file with mode: 0644]
doxygen/header.html
doxygen/header.html.orig [new file with mode: 0644]
doxygen/nir.doxy [new file with mode: 0644]

index ea67dd54509bdfd87f1b071df254dc04703f64e5..47734136b0a36c0063089ef90473f5f59566d50d 100644 (file)
@@ -10,6 +10,7 @@ i965
 main
 math
 math_subset
+nir
 radeon_subset
 swrast
 swrast_setup
index b1bc15d5a05e65200d9c3b7486a417389c36e522..6685b998f001ac98f34b0e4ec5d337f6cf4ff1a5 100644 (file)
@@ -17,7 +17,8 @@ FULL = \
        tnl.doxy \
        tnl_dd.doxy \
        gbm.doxy \
-       i965.doxy
+       i965.doxy \
+       nir.doxy
 
 full: $(FULL:.doxy=.tag)
        $(foreach FILE,$(FULL),doxygen $(FILE);)
diff --git a/doxygen/Makefile.orig b/doxygen/Makefile.orig
new file mode 100644 (file)
index 0000000..b1bc15d
--- /dev/null
@@ -0,0 +1,35 @@
+
+default: full
+
+all: full subset
+
+%.tag: %.doxy
+       doxygen $<
+
+FULL = \
+       main.doxy \
+       math.doxy \
+       vbo.doxy \
+       glapi.doxy \
+       glsl.doxy \
+       swrast.doxy \
+       swrast_setup.doxy \
+       tnl.doxy \
+       tnl_dd.doxy \
+       gbm.doxy \
+       i965.doxy
+
+full: $(FULL:.doxy=.tag)
+       $(foreach FILE,$(FULL),doxygen $(FILE);)
+
+SUBSET = \
+       main.doxy \
+       math.doxy
+
+subset: $(SUBSET:.doxy=.tag)
+       $(foreach FILE,$(SUBSET),doxygen $(FILE);)
+
+clean:
+       -rm -rf $(FULL:.doxy=) $(SUBSET:.doxy=)
+       -rm -rf *.tag
+       -rm -rf *.db
index 034231cbdfd9ec4109796e34777040475d21ecc3..9f12b58bc801ceb04bc02382440b4ea326348a48 100644 (file)
@@ -8,6 +8,7 @@
 <a class="qindex" href="../main/index.html">core</a> |
 <a class="qindex" href="../glapi/index.html">glapi</a> |
 <a class="qindex" href="../glsl/index.html">glsl</a> |
+<a class="qindex" href="../nir/index.html">nir</a> |
 <a class="qindex" href="../vbo/index.html">vbo</a> |
 <a class="qindex" href="../math/index.html">math</a> |
 <a class="qindex" href="../swrast/index.html">swrast</a> |
diff --git a/doxygen/header.html.orig b/doxygen/header.html.orig
new file mode 100644 (file)
index 0000000..034231c
--- /dev/null
@@ -0,0 +1,19 @@
+<html>
+<head>
+<title>Mesa Source Code Documentation</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head>
+<body>
+<div class="qindex">
+<a class="qindex" href="../main/index.html">core</a> |
+<a class="qindex" href="../glapi/index.html">glapi</a> |
+<a class="qindex" href="../glsl/index.html">glsl</a> |
+<a class="qindex" href="../vbo/index.html">vbo</a> |
+<a class="qindex" href="../math/index.html">math</a> |
+<a class="qindex" href="../swrast/index.html">swrast</a> |
+<a class="qindex" href="../swrast_setup/index.html">swrast_setup</a> |
+<a class="qindex" href="../tnl/index.html">tnl</a> |
+<a class="qindex" href="../tnl_dd/index.html">tnl_dd</a> |
+<a class="qindex" href="../gbm/index.html">gbm</a> |
+<a class="qindex" href="../i965/index.html">i965</a>
+</div>
diff --git a/doxygen/nir.doxy b/doxygen/nir.doxy
new file mode 100644 (file)
index 0000000..cad7380
--- /dev/null
@@ -0,0 +1,50 @@
+# Doxyfile 0.1
+
+@INCLUDE               = common.doxy
+
+#---------------------------------------------------------------------------
+# General configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME           = "Mesa NIR module"
+#---------------------------------------------------------------------------
+# Configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT                  = ../src/compiler/nir
+FILE_PATTERNS          = *.c *.cpp *.h
+RECURSIVE              = NO
+EXCLUDE                =
+EXCLUDE_PATTERNS       =
+EXAMPLE_PATH           =
+EXAMPLE_PATTERNS       =
+EXAMPLE_RECURSIVE      = NO
+IMAGE_PATH             =
+INPUT_FILTER           =
+FILTER_SOURCE_FILES    = NO
+#---------------------------------------------------------------------------
+# Configuration options related to the HTML output
+#---------------------------------------------------------------------------
+HTML_OUTPUT            = nir
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING   = YES
+MACRO_EXPANSION        = NO
+EXPAND_ONLY_PREDEF     = NO
+SEARCH_INCLUDES        = YES
+INCLUDE_PATH           = ../include/
+INCLUDE_FILE_PATTERNS  =
+PREDEFINED             =
+EXPAND_AS_DEFINED      =
+SKIP_FUNCTION_MACROS   = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+TAGFILES               = glsl.tag=../glsl \
+                         main.tag=../main \
+                         math.tag=../math \
+                         swrast.tag=../swrast \
+                         swrast_setup.tag=../swrast_setup \
+                         tnl.tag=../tnl \
+                         tnl_dd.tag=../tnl_dd \
+                         vbo.tag=../vbo
+GENERATE_TAGFILE       = nir.tag