File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ pub fn build(b: *std.Build) !void {
18
18
19
19
// Dependencies
20
20
const AFLplusplus_dep = b .dependency ("AFLplusplus" , .{});
21
+ const AFLplusplus_root_path = AFLplusplus_dep .path ("." );
21
22
const AFLplusplus_src_path = AFLplusplus_dep .path ("src/" );
22
23
const AFLplusplus_utl_path = AFLplusplus_dep .path ("utils/" );
23
24
const AFLplusplus_inc_path = AFLplusplus_dep .path ("include/" );
@@ -363,6 +364,14 @@ pub fn build(b: *std.Build) !void {
363
364
364
365
b .default_step .dependOn (util_libs_step );
365
366
367
+ // Install afl scripts
368
+ const scripts_step = b .step ("scripts" , "Install afl scripts" );
369
+ for (SCRIPTS ) | script | {
370
+ const install_script = b .addInstallBinFile (AFLplusplus_root_path .path (b , script ), script );
371
+ scripts_step .dependOn (& install_script .step );
372
+ }
373
+ b .default_step .dependOn (scripts_step );
374
+
366
375
// Formatting checks
367
376
const fmt_step = b .step ("fmt" , "Run formatting checks" );
368
377
@@ -694,3 +703,14 @@ const UTIL_LIB_FLAGS = .{
694
703
"-fno-sanitize-trap=undefined" ,
695
704
"-D_FORTIFY_SOURCE=2" ,
696
705
};
706
+
707
+ const SCRIPTS = [_ ][]const u8 {
708
+ "afl-addseeds" ,
709
+ "afl-cmin" ,
710
+ "afl-cmin.bash" ,
711
+ "afl-persistent-config" ,
712
+ "afl-plot" ,
713
+ "afl-system-config" ,
714
+ "afl-whatsup" ,
715
+ "afl-wine-trace" ,
716
+ };
You can’t perform that action at this time.
0 commit comments