-
Notifications
You must be signed in to change notification settings - Fork 5
Port to jbuilder and resync with djs55 repo #3
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
Changes from all commits
65ddb4d
c55ccfd
e464c1d
c0aed6a
c90b407
d444c97
f05e338
2ec755c
98411fc
c134854
78dee3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| setup.bin | ||
| setup.data | ||
| setup.log | ||
| dist | ||
| _build | ||
| api.docdir | ||
| *.native | ||
| *.byte | ||
| _build/ | ||
| .merlin | ||
| *.install | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| language: c | ||
| sudo: false | ||
| services: | ||
| - docker | ||
| install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh | ||
| script: bash -ex ./.travis-docker.sh | ||
| env: | ||
| global: | ||
| - PACKAGE="fd-send-recv" | ||
| matrix: | ||
| - DISTRO="debian-testing" OCAML_VERSION="4.02.3" | ||
| - DISTRO="ubuntu-14.04" OCAML_VERSION="4.02.3" | ||
| - DISTRO="ubuntu-15.10" OCAML_VERSION="4.02.3" | ||
| - DISTRO="centos-7" OCAML_VERSION="4.02.3" | ||
| - DISTRO="centos-6" OCAML_VERSION="4.02.3" | ||
| - DISTRO="fedora-23" OCAML_VERSION="4.02.3" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,41 +1,24 @@ | ||
| # OASIS_START | ||
| # DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954) | ||
| .PHONY: build release install uninstall clean test doc | ||
|
|
||
| SETUP = ocaml setup.ml | ||
| build: | ||
| jbuilder build @install --dev | ||
|
|
||
| build: setup.data | ||
| $(SETUP) -build $(BUILDFLAGS) | ||
| release: | ||
| jbuilder build @install | ||
|
|
||
| doc: setup.data build | ||
| $(SETUP) -doc $(DOCFLAGS) | ||
| install: | ||
| jbuilder install | ||
|
|
||
| test: setup.data build | ||
| $(SETUP) -test $(TESTFLAGS) | ||
|
|
||
| all: | ||
| $(SETUP) -all $(ALLFLAGS) | ||
|
|
||
| install: setup.data | ||
| $(SETUP) -install $(INSTALLFLAGS) | ||
|
|
||
| uninstall: setup.data | ||
| $(SETUP) -uninstall $(UNINSTALLFLAGS) | ||
|
|
||
| reinstall: setup.data | ||
| $(SETUP) -reinstall $(REINSTALLFLAGS) | ||
| uninstall: | ||
| jbuilder uninstall | ||
|
|
||
| clean: | ||
| $(SETUP) -clean $(CLEANFLAGS) | ||
|
|
||
| distclean: | ||
| $(SETUP) -distclean $(DISTCLEANFLAGS) | ||
|
|
||
| setup.data: | ||
| $(SETUP) -configure $(CONFIGUREFLAGS) | ||
| jbuilder clean | ||
|
|
||
| configure: | ||
| $(SETUP) -configure $(CONFIGUREFLAGS) | ||
| test: | ||
| jbuilder runtest | ||
|
|
||
| .PHONY: build doc test all install uninstall reinstall clean distclean configure | ||
| # requires odoc | ||
| doc: | ||
| jbuilder build @doc | ||
|
|
||
| # OASIS_STOP |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| opam-version: "1.2" | ||
| maintainer: "dave@recoil.org" | ||
| authors: [ | ||
| "David Scott" | ||
| "David Sheets" | ||
| "Euan Harris" | ||
| "Vincent Bernardoff" | ||
| ] | ||
| homepage: "https://github.com/xapi-project/ocaml-fd-send-recv" | ||
| bug-reports: "https://github.com/xapi-project/ocaml-fd-send-recv/issues" | ||
| dev-repo: "https://github.com/xapi-project/ocaml-fd-send-recv.git" | ||
| doc: "https://github.com/xapi-project/ocaml-fd-send-recv/blob/master/lib/fd_send_recv.mli" | ||
|
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. Nice 😄 , better than nothing. |
||
| tags: [ | ||
| "org:mirage" | ||
| "org:xapi-project" | ||
| ] | ||
| build: [["jbuilder" "build" "-p" name "-j" jobs]] | ||
| build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]] | ||
| depends: [ | ||
| "jbuilder" {build} | ||
| ] | ||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| (library | ||
| ((name fd_send_recv) | ||
| (public_name fd-send-recv) | ||
| (c_names (fd_send_recv_stubs)) | ||
| (libraries (unix)) | ||
| )) |
This file was deleted.
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.
It's interesting that we have a separate opam file for the tuntap tests, but I guess this is the best way, since optional dependencies are harmful.
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.
Yes, it's annoying but I thought it does no harm. And I like it more than generating additional stuff in the
jbuildfile if a flag is present (mostly because it requires an additional dependency)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 agree. It's much better than causing loads of unnecessary recompilations.