-
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
Open
UnixJunkie
wants to merge
9
commits into
ocaml:master
Choose a base branch
from
UnixJunkie:modern_build
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Modern build #8
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e79daba
mv Makefile to Makefile.old to deprecate its use
a9f4968
I don't think Makefile.config should be under version control
38cd20e
added generation of the jbuild file to the configure script
309658a
jbuilder needs a dbm.opam file to be in here
ffdf53c
updated the README
fb2bb2c
going to opam-1.2 syntax in the depexts section
095eb36
added jbuilder target to run tests in the generation of the jbuild file
c1599e5
dbm.opam: moved running the unit tests into a build-test section
94c3afb
added -j jobs to the build-test opam target (suggestion from @rgrinberg)
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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] | ||
] | ||
build-test: [ | ||
["jbuilder" "runtest" "-p" name "-j" jobs] | ||
] | ||
depends: ["jbuilder" {build}] | ||
depexts: [ | ||
[["debian"] ["libgdbm-dev"]] | ||
[["ubuntu"] ["libgdbm-dev"]] | ||
[["nixos"] ["gdbm"]] | ||
[["centos"] ["gdbm-devel"]] | ||
[["rhel"] ["gdbm-devel"]] | ||
[["fedora"] ["gdbm-devel"]] | ||
[["alpine"] ["gdbm-dev"]] | ||
[["homebrew"] ["gdbm"]] | ||
[["archlinux"] ["gdbm"]] | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.