File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed
Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,8 @@ let output_ninja_and_namespace_map
232232 ~dpkg_incls (* dev dependencies *)
233233 ~lib_incls (* its own libs *)
234234 ~dev_incls (* its own devs *)
235+ ~bs_dependencies
236+ ~bs_dev_dependencies
235237 generators in
236238
237239 let oc = open_out_bin (cwd_lib_bs // Literals. build_ninja) in
Original file line number Diff line number Diff line change @@ -129,6 +129,8 @@ let make_custom_rules
129129 ~(dpkg_incls : string )
130130 ~(lib_incls : string )
131131 ~(dev_incls : string )
132+ ~bs_dependencies
133+ ~bs_dev_dependencies
132134 (custom_rules : command Map_string.t ) :
133135 builtin =
134136 let bs_dep = Ext_filename. maybe_quote Bsb_global_paths. vendor_bsdep in
@@ -172,8 +174,12 @@ let make_custom_rules
172174 Ext_buffer. add_string buf package_name;
173175 Ext_buffer. add_string buf (Bsb_package_specs. package_flag_of_package_specs package_specs " $in_d" )
174176 end ;
175- Ext_buffer. add_string buf " -bs-v " ;
176- Ext_buffer. add_ninja_prefix_var buf '-' Bsb_ninja_global_vars. g_finger;
177+ begin match bs_dependencies, bs_dev_dependencies with
178+ | [] , [] -> ()
179+ | _ , _ ->
180+ Ext_buffer. add_string buf " -bs-v " ;
181+ Ext_buffer. add_ninja_prefix_var buf '-' Bsb_ninja_global_vars. g_finger;
182+ end ;
177183 Ext_buffer. add_string buf " $i" ;
178184 begin match postbuild with
179185 | None -> ()
Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ val make_custom_rules :
8585 dpkg_incls :string ->
8686 lib_incls :string ->
8787 dev_incls :string ->
88+ bs_dependencies :Bsb_config_types .dependencies ->
89+ bs_dev_dependencies :Bsb_config_types .dependencies ->
8890 command Map_string .t ->
8991 builtin
9092
Original file line number Diff line number Diff line change @@ -12747,6 +12747,8 @@ val make_custom_rules :
1274712747 dpkg_incls:string ->
1274812748 lib_incls:string ->
1274912749 dev_incls:string ->
12750+ bs_dependencies:Bsb_config_types.dependencies ->
12751+ bs_dev_dependencies:Bsb_config_types.dependencies ->
1275012752 command Map_string.t ->
1275112753 builtin
1275212754
@@ -12884,6 +12886,8 @@ let make_custom_rules
1288412886 ~(dpkg_incls : string)
1288512887 ~(lib_incls : string)
1288612888 ~(dev_incls : string)
12889+ ~bs_dependencies
12890+ ~bs_dev_dependencies
1288712891 (custom_rules : command Map_string.t) :
1288812892 builtin =
1288912893 let bs_dep = Ext_filename.maybe_quote Bsb_global_paths.vendor_bsdep in
@@ -12927,8 +12931,12 @@ let make_custom_rules
1292712931 Ext_buffer.add_string buf package_name;
1292812932 Ext_buffer.add_string buf (Bsb_package_specs.package_flag_of_package_specs package_specs "$in_d")
1292912933 end;
12930- Ext_buffer.add_string buf " -bs-v ";
12931- Ext_buffer.add_ninja_prefix_var buf '-' Bsb_ninja_global_vars.g_finger;
12934+ begin match bs_dependencies, bs_dev_dependencies with
12935+ | [], [] -> ()
12936+ | _, _ ->
12937+ Ext_buffer.add_string buf " -bs-v ";
12938+ Ext_buffer.add_ninja_prefix_var buf '-' Bsb_ninja_global_vars.g_finger;
12939+ end;
1293212940 Ext_buffer.add_string buf " $i";
1293312941 begin match postbuild with
1293412942 | None -> ()
@@ -13733,6 +13741,8 @@ let output_ninja_and_namespace_map
1373313741 ~dpkg_incls (* dev dependencies *)
1373413742 ~lib_incls (* its own libs *)
1373513743 ~dev_incls (* its own devs *)
13744+ ~bs_dependencies
13745+ ~bs_dev_dependencies
1373613746 generators in
1373713747
1373813748 let oc = open_out_bin (cwd_lib_bs // Literals.build_ninja) in
You can’t perform that action at this time.
0 commit comments