Add cppcheck (#3268)

* Add cppcheck

* Add tests and cmake dep

* Restrict platforms

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: ruki <waruqi@gmail.com>
autoupdate-vulkan-memory-allocator-hpp-v3.0.1
A2va 10 months ago committed by GitHub
parent 2841f15ea0
commit fa445baf9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 17
      packages/c/cppcheck/xmake.lua

@ -0,0 +1,17 @@
package("cppcheck")
set_kind("binary")
set_homepage("https://cppcheck.sourceforge.io/")
set_description("A static analysis tool for C/C++ code")
add_urls("https://github.com/danmar/cppcheck/archive/refs/tags/$(version).tar.gz")
add_versions("2.13.0", "8229afe1dddc3ed893248b8a723b428dc221ea014fbc76e6289840857c03d450")
add_deps("cmake")
on_install("windows|x64", "macosx", "linux", "msys", function (package)
import("package.tools.cmake").install(package)
end)
on_test(function (package)
os.vrun("cppcheck --version")
end)
Loading…
Cancel
Save