-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modern build #8
base: master
Are you sure you want to change the base?
Modern build #8
Changes from 5 commits
e79daba
a9f4968
38cd20e
309658a
ffdf53c
fb2bb2c
095eb36
c1599e5
94c3afb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
opam-version: "1.2" | ||
maintainer: "https://github.com/ocaml/opam-repository/issues" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe Xavier should be marked as maintainer I guess. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure he wants to be bothered |
||
authors: "Francois Rouaix et. al." | ||
license: "LGPL-v2 with OCaml linking exception" | ||
homepage: "https://github.com/ocaml/dbm" | ||
bug-reports: "https://github.com/ocaml/dbm/issues" | ||
dev-repo: "https://github.com/ocaml/dbm.git" | ||
build: [ | ||
["./configure"] | ||
["jbuilder" "build" "-p" name "-j" jobs] | ||
["jbuilder" "build" "testdbm.exe"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should probably me more in a separate There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also the stardard way of doing tests with jbuilder seems to be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, thanks for educating me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By the way, I do I tell opam to run those tests now? |
||
["./_build/default/testdbm.exe"] | ||
] | ||
depends: ["jbuilder" {build}] | ||
depexts: [ | ||
["libgdbm-dev"] {os-distribution = "debian"} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. your are using opam2 syntax here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed to opam-1.2 syntax |
||
["libgdbm-dev"] {os-distribution = "ubuntu"} | ||
["gdbm"] {os-distribution = "nixos"} | ||
["gdbm-devel"] {os-distribution = "centos"} | ||
["gdbm-devel"] {os-distribution = "rhel"} | ||
["gdbm-devel"] {os-distribution = "fedora"} | ||
["gdbm-dev"] {os-distribution = "alpine"} | ||
["gdbm"] {os = "macos" & os-distribution = "homebrew"} | ||
["gdbm"] {os-distribution = "archlinux"} | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this approach is the worst of all worlds however :-) Generating jbuild files at configuration time means that build composition doesn't work, and incremental builds also suffer. Using the configurator library gets around that by making the flag probing part of the build itself.