@@ -4822,7 +4822,7 @@ type file_group =
48224822 sources : Bsb_db.map;
48234823 resources : string list ;
48244824 public : public ;
4825- dev_index : bool ; (* false means not in dev mode *)
4825+ is_dev : bool ; (* false means not in dev mode *)
48264826 generators : build_generator list ;
48274827 (* output of [generators] should be added to [sources],
48284828 if it is [.ml,.mli,.re,.rei]
@@ -4899,7 +4899,7 @@ type file_group =
48994899 sources : Bsb_db.map;
49004900 resources : string list ;
49014901 public : public ;
4902- dev_index : bool ;
4902+ is_dev : bool ;
49034903 generators : build_generator list ;
49044904 (* output of [generators] should be added to [sources],
49054905 if it is [.ml,.mli,.re,.rei]
@@ -10582,7 +10582,7 @@ let errorf x fmt =
1058210582
1058310583type cxt = {
1058410584 package_kind : Bsb_package_kind.t ;
10585- dev_index : bool;
10585+ is_dev : bool;
1058610586 cwd : string ;
1058710587 root : string;
1058810588 cut_generators : bool;
@@ -10802,18 +10802,18 @@ let rec
1080210802 sources = sources;
1080310803 resources ;
1080410804 public ;
10805- dev_index = cxt.dev_index ;
10805+ is_dev = cxt.is_dev ;
1080610806 generators = if has_generators then scanned_generators else [] }
1080710807 ?globbed_dir:(
1080810808 if !cur_globbed_dirs then Some dir else None)
1080910809 children
1081010810
1081110811
10812- and parsing_single_source ({package_kind; dev_index ; cwd} as cxt ) (x : Ext_json_types.t )
10812+ and parsing_single_source ({package_kind; is_dev ; cwd} as cxt ) (x : Ext_json_types.t )
1081310813 : t =
1081410814 match x with
1081510815 | Str { str = dir } ->
10816- begin match package_kind, dev_index with
10816+ begin match package_kind, is_dev with
1081710817 | Dependency _ , true ->
1081810818 Bsb_file_groups.empty
1081910819 | Dependency _, false
@@ -10829,7 +10829,7 @@ and parsing_single_source ({package_kind; dev_index ; cwd} as cxt ) (x : Ext_jso
1082910829 | Some (Str {str="dev"}) ->
1083010830 true
1083110831 | Some _ -> Bsb_exception.config_error x {|type field expect "dev" literal |}
10832- | None -> dev_index in
10832+ | None -> is_dev in
1083310833 begin match package_kind, current_dir_index with
1083410834 | Dependency _ , true ->
1083510835 Bsb_file_groups.empty
@@ -10847,7 +10847,7 @@ and parsing_single_source ({package_kind; dev_index ; cwd} as cxt ) (x : Ext_jso
1084710847
1084810848 in
1084910849 parsing_source_dir_map
10850- {cxt with dev_index = current_dir_index;
10850+ {cxt with is_dev = current_dir_index;
1085110851 cwd= Ext_path.concat cwd dir} map
1085210852 end
1085310853 | _ -> Bsb_file_groups.empty
@@ -10873,7 +10873,7 @@ let scan
1087310873 parse_sources {
1087410874 ignored_dirs;
1087510875 package_kind;
10876- dev_index = false;
10876+ is_dev = false;
1087710877 cwd = Filename.current_dir_name;
1087810878 root ;
1087910879 cut_generators;
@@ -13454,7 +13454,7 @@ let handle_files_per_dir
1345413454 ~(namespace : string option)
1345513455 (group: Bsb_file_groups.file_group )
1345613456 : unit =
13457- let is_dev = group.dev_index in
13457+ let is_dev = group.is_dev in
1345813458 handle_generators oc group rules.customs ;
1345913459 let installable =
1346013460 match group.public with
@@ -13726,9 +13726,9 @@ let output_ninja_and_namespace_map
1372613726 [] (
1372713727 fun
1372813728 (acc_resources : string list)
13729- {sources; dir; resources; dev_index }
13729+ {sources; dir; resources; is_dev }
1373013730 ->
13731- if dev_index then begin
13731+ if is_dev then begin
1373213732 bs_groups.dev <- Bsb_db_util.merge bs_groups.dev sources ;
1373313733 source_dirs.dev <- dir :: source_dirs.dev;
1373413734 end else begin
0 commit comments