Skip to content

Commit

Permalink
Fix dune rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboris committed May 20, 2024
1 parent 3371c8a commit 8ae8464
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions appkit/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
(libraries camlkit-base.foundation))

(rule (enabled_if (= %{system} macosx))
(with-stdout-to flags.txt (run echo "-ccopt \"-framework AppKit\"")))
(target "flags.txt")
(action
(with-stdout-to %{target} (run echo "-ccopt \"-framework AppKit\""))))

(rule (enabled_if (<> %{system} macosx))
(with-stdout-to flags.txt (run echo "")))
(target "flags.txt")
(action (with-stdout-to %{target} (run echo ""))))
7 changes: 5 additions & 2 deletions appkit_extra/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
(libraries foundation))

(rule (enabled_if (= %{system} macosx))
(with-stdout-to flags.txt (run echo "-ccopt \"-framework AppKit\"")))
(target "flags.txt")
(action
(with-stdout-to %{target} (run echo "-ccopt \"-framework AppKit\""))))

(rule (enabled_if (<> %{system} macosx))
(with-stdout-to flags.txt (run echo "")))
(target "flags.txt")
(action (with-stdout-to %{target} (run echo ""))))
7 changes: 5 additions & 2 deletions foundation/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
(documentation (package camlkit-base))

(rule (enabled_if (= %{system} macosx))
(with-stdout-to flags.txt (run echo "-ccopt \"-framework Foundation\"")))
(target "flags.txt")
(action
(with-stdout-to %{target} (run echo "-ccopt \"-framework Foundation\""))))

(rule (enabled_if (<> %{system} macosx))
(with-stdout-to flags.txt (run echo "")))
(target "flags.txt")
(action (with-stdout-to %{target} (run echo ""))))

0 comments on commit 8ae8464

Please sign in to comment.