| 1 |
group("scan-build") { |
| 2 |
deps = [ |
| 3 |
":bin", |
| 4 |
":libexec", |
| 5 |
":man", |
| 6 |
":share", |
| 7 |
] |
| 8 |
} |
| 9 |
|
| 10 |
copy("bin") { |
| 11 |
sources = [ "bin/scan-build" ] |
| 12 |
if (host_os == "mac") { |
| 13 |
sources += [ "bin/set-xcode-analyzer" ] |
| 14 |
} else if (host_os == "win") { |
| 15 |
sources += [ "bin/scan-build.bat" ] |
| 16 |
} |
| 17 |
outputs = [ "$root_build_dir/bin/{{source_file_part}}" ] |
| 18 |
} |
| 19 |
|
| 20 |
copy("libexec") { |
| 21 |
sources = [ |
| 22 |
"libexec/c++-analyzer", |
| 23 |
"libexec/ccc-analyzer", |
| 24 |
] |
| 25 |
if (host_os == "win") { |
| 26 |
sources += [ |
| 27 |
"libexec/c++-analyzer.bat", |
| 28 |
"libexec/ccc-analyzer.bat", |
| 29 |
] |
| 30 |
} |
| 31 |
outputs = [ "$root_build_dir/libexec/{{source_file_part}}" ] |
| 32 |
} |
| 33 |
|
| 34 |
copy("man") { |
| 35 |
sources = [ "man/scan-build.1" ] |
| 36 |
outputs = [ "$root_build_dir/share/man/man1/{{source_file_part}}" ] |
| 37 |
} |
| 38 |
|
| 39 |
copy("share") { |
| 40 |
sources = [ |
| 41 |
"share/scan-build/scanview.css", |
| 42 |
"share/scan-build/sorttable.js", |
| 43 |
] |
| 44 |
outputs = [ "$root_build_dir/share/scan-build/{{source_file_part}}" ] |
| 45 |
} |