summaryrefslogtreecommitdiff
path: root/xmake/plugins/doxygen/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-06 18:41:05 +0800
committerruki <[email protected]>2017-06-06 18:41:05 +0800
commit2309c5ec03eb09842814bcf03fffa8fa93999acf (patch)
treed0e796ee7eff59a38eae6979b069a574eb51fe40 /xmake/plugins/doxygen/main.lua
parentb62c9a1a532058db12fb73cdfeb0e174c8cbf2f2 (diff)
add find_library and remove some old codes
Diffstat (limited to 'xmake/plugins/doxygen/main.lua')
-rw-r--r--xmake/plugins/doxygen/main.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/xmake/plugins/doxygen/main.lua b/xmake/plugins/doxygen/main.lua
index 1788486c8..7129c7306 100644
--- a/xmake/plugins/doxygen/main.lua
+++ b/xmake/plugins/doxygen/main.lua
@@ -24,17 +24,15 @@
-- imports
import("core.base.option")
-import("core.tool.tool")
import("core.project.config")
import("core.project.project")
+import("detect.tool.find_doxygen")
-- main
function main()
- -- check the doxygen
- local doxygen = tool.check("doxygen", nil, function (shellname)
- os.run("%s -v", shellname)
- end)
+ -- find doxygen
+ local doxygen = find_doxygen()
assert(doxygen, "doxygen not found!")
-- generate doxyfile first