Skip to content

Commit

Permalink
Bump dune.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Apr 1, 2024
1 parent 03f78bc commit 0407a2c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(lang dune 2.8)
(lang dune 3.6)
(version 0.3.1)
(name srt)
(source (github savonet/ocaml-srt))
Expand Down
13 changes: 11 additions & 2 deletions src/generator/dune
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,24 @@
(action
(run ../config/discover.exe)))

(rule
(targets ctypes_dir)
(action
(with-stdout-to
%{targets}
(run dirname %{lib:ctypes:ctypes_cstubs_internals.h}))))

(rule
(targets gen_types_c_target.exe)
(deps
(:c_flags ./c_flags)
(:ctypes_dir ./ctypes_dir)
(:c_code ./gen_types.c))
(action
(run
%{ocaml-config:c_compiler}
-I
%{lib:ctypes:}
%{read-lines:ctypes_dir}
-I
%{ocaml-config:standard_library}
%{read-lines:c_flags}
Expand Down Expand Up @@ -102,12 +110,13 @@
(targets gen_constants_c_target.exe)
(deps
(:c_flags ./c_flags)
(:ctypes_dir ./ctypes_dir)
(:c_code ./gen_constants.c))
(action
(run
%{ocaml-config:c_compiler}
-I
%{lib:ctypes:}
%{read-lines:ctypes_dir}
-I
%{ocaml-config:standard_library}
%{read-lines:c_flags}
Expand Down
2 changes: 1 addition & 1 deletion srt.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bug-reports: "https://github.com/savonet/ocaml-srt/issues"
depends: [
"conf-srt" {build}
"conf-pkg-config" {build}
"dune" {>= "2.8"}
"dune" {>= "3.6"}
"dune-configurator" {build}
"ocamlfind"
"ctypes"
Expand Down

0 comments on commit 0407a2c

Please sign in to comment.