Skip to content

Commit

Permalink
dune fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Jul 26, 2020
1 parent 202435a commit a9ac054
Show file tree
Hide file tree
Showing 23 changed files with 49 additions and 47 deletions.
3 changes: 2 additions & 1 deletion examples/fts/foreign/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(executables
(names fts_cmd)
(enabled_if (= %{os_type} "Unix"))
(enabled_if
(= %{os_type} "Unix"))
(libraries ctypes-foreign))
4 changes: 1 addition & 3 deletions examples/fts/stub-generation/bindings/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
(name fts_stubs)
(wrapped false)
(modules_without_implementation fts)
(libraries
ctypes
ctypes-foreign))
(libraries ctypes ctypes-foreign))
3 changes: 2 additions & 1 deletion examples/fts/stub-generation/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(executable
(name fts_cmd)
(enabled_if (= %{os_type} "xnix"))
(enabled_if
(= %{os_type} "xnix"))
(libraries fts_stubs fts_generated))
9 changes: 6 additions & 3 deletions examples/fts/stub-generation/stub-generator/dune
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
(executable
(name fts_stub_generator)
(enabled_if (= %{os_type} "Unix"))
(enabled_if
(= %{os_type} "Unix"))
(modules fts_stub_generator)
(libraries fts_stubs ctypes.stubs ctypes))

(rule
(targets fts_stubs.c fts_generated.ml)
(deps fts_stub_generator.exe)
(enabled_if (= %{os_type} "Unix"))
(enabled_if
(= %{os_type} "Unix"))
(action
(run %{deps})))

(library
(name fts_generated)
(enabled_if (= %{os_type} "Unix"))
(enabled_if
(= %{os_type} "Unix"))
(modules fts_generated)
(foreign_stubs
(language c)
Expand Down
4 changes: 2 additions & 2 deletions tests/test-arrays/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_array)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_arrays_stubs test_arrays_bindings tests_common stdlib-shims))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_arrays_stubs
test_arrays_bindings tests_common stdlib-shims))
4 changes: 2 additions & 2 deletions tests/test-bigarrays/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_bigarrays)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_bigarrays_stubs test_bigarrays_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_bigarrays_stubs
test_bigarrays_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-bools/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_bools)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_bools_stubs test_bools_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_bools_stubs
test_bools_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-builtins/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_builtins)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_builtins_stubs test_builtins_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_builtins_stubs
test_builtins_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-coercions/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_coercions)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_coercionss_stubs test_coercionss_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_coercionss_stubs
test_coercionss_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-complex/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_complex)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_complexs_stubs test_complexs_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_complexs_stubs
test_complexs_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-constants/dune
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
(name test_constants)
(package ctypes-foreign)
(modules test_constants)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_constants_stubs test_functions test_constants_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_constants_stubs
test_functions test_constants_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-cstdlib/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_cstdlib)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_cstdlib_stubs test_cstdlib_bindings tests_common stdlib-shims))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_cstdlib_stubs
test_cstdlib_bindings tests_common stdlib-shims))
4 changes: 2 additions & 2 deletions tests/test-higher_order/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_higher_order)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_higher_order_stubs test_higher_order_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_higher_order_stubs
test_higher_order_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-integers/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_integers)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_integers_stubs test_integers_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_integers_stubs
test_integers_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-lifetime/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_lifetime)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_lifetime_stubs test_lifetime_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_lifetime_stubs
test_lifetime_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-lwt-jobs/dune
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
(name test_lwt_jobs)
(package ctypes-foreign)
(modules test_lwt_jobs)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_lwt_jobs_stubs test_functions test_lwt_jobs_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_lwt_jobs_stubs
test_functions test_lwt_jobs_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-macros/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_macros)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_macros_stubs test_macros_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_macros_stubs
test_macros_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-oo_style/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_oo_style)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_oo_style_stubs test_oo_style_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_oo_style_stubs
test_oo_style_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-pointers/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_pointers)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_pointers_stubs test_pointers_bindings tests_common stdlib-shims))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_pointers_stubs
test_pointers_bindings tests_common stdlib-shims))
4 changes: 2 additions & 2 deletions tests/test-structs/dune
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
(name test_structs)
(modules test_structs)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_structs_stubs test_functions test_structs_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_structs_stubs
test_functions test_structs_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-threads/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_threads)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_threads_stubs test_threads_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_threads_stubs
test_threads_bindings tests_common))
5 changes: 2 additions & 3 deletions tests/test-type_printing/dune
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,5 @@
(name test_type_printing)
(modules test_type_printing)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_type_printing_stubs test_functions test_type_printing_bindings
tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_type_printing_stubs
test_functions test_type_printing_bindings tests_common))
4 changes: 2 additions & 2 deletions tests/test-unions/dune
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
(name test_unions)
(modules test_unions)
(package ctypes-foreign)
(libraries oUnit ctypes ctypes.stubs ctypes-foreign
test_unions_stubs test_functions test_unions_bindings tests_common))
(libraries oUnit ctypes ctypes.stubs ctypes-foreign test_unions_stubs
test_functions test_unions_bindings tests_common))

0 comments on commit a9ac054

Please sign in to comment.