11bd70bcdSNico Webergroup("scan-build") { 21bd70bcdSNico Weber deps = [ 31bd70bcdSNico Weber ":bin", 41bd70bcdSNico Weber ":libexec", 51bd70bcdSNico Weber ":man", 61bd70bcdSNico Weber ":share", 71bd70bcdSNico Weber ] 81bd70bcdSNico Weber} 91bd70bcdSNico Weber 101bd70bcdSNico Webercopy("bin") { 111bd70bcdSNico Weber sources = [ "bin/scan-build" ] 121bd70bcdSNico Weber if (host_os == "mac") { 131bd70bcdSNico Weber sources += [ "bin/set-xcode-analyzer" ] 141bd70bcdSNico Weber } else if (host_os == "win") { 151bd70bcdSNico Weber sources += [ "bin/scan-build.bat" ] 161bd70bcdSNico Weber } 171bd70bcdSNico Weber outputs = [ "$root_build_dir/bin/{{source_file_part}}" ] 181bd70bcdSNico Weber} 191bd70bcdSNico Weber 201bd70bcdSNico Webercopy("libexec") { 211bd70bcdSNico Weber sources = [ 221bd70bcdSNico Weber "libexec/c++-analyzer", 23*aa545dceSNico Weber "libexec/ccc-analyzer", 241bd70bcdSNico Weber ] 251bd70bcdSNico Weber if (host_os == "win") { 261bd70bcdSNico Weber sources += [ 271bd70bcdSNico Weber "libexec/c++-analyzer.bat", 28*aa545dceSNico Weber "libexec/ccc-analyzer.bat", 291bd70bcdSNico Weber ] 301bd70bcdSNico Weber } 311bd70bcdSNico Weber outputs = [ "$root_build_dir/libexec/{{source_file_part}}" ] 321bd70bcdSNico Weber} 331bd70bcdSNico Weber 341bd70bcdSNico Webercopy("man") { 351bd70bcdSNico Weber sources = [ "man/scan-build.1" ] 361bd70bcdSNico Weber outputs = [ "$root_build_dir/share/man/man1/{{source_file_part}}" ] 371bd70bcdSNico Weber} 381bd70bcdSNico Weber 391bd70bcdSNico Webercopy("share") { 401bd70bcdSNico Weber sources = [ 411bd70bcdSNico Weber "share/scan-build/scanview.css", 42*aa545dceSNico Weber "share/scan-build/sorttable.js", 431bd70bcdSNico Weber ] 441bd70bcdSNico Weber outputs = [ "$root_build_dir/share/scan-build/{{source_file_part}}" ] 451bd70bcdSNico Weber} 46