-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christopher Zimmermann
committed
Dec 6, 2015
1 parent
31c3e39
commit f534218
Showing
16 changed files
with
8,889 additions
and
2 deletions.
There are no files selected for viewing
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,52 @@ | ||
OASISFormat: 0.4 | ||
|
||
Name: zlib | ||
Version: 0.1 | ||
Synopsis: Bindings to zlib, a deflate compression library | ||
Authors: Christopher Zimmermann <[email protected]> | ||
License: ISC | ||
|
||
Description: zlib provides deflate compression, optionally wrapped in gzip or zlib format. | ||
Homepage: http://zlib.net | ||
|
||
BuildTools: ocamlbuild | ||
Plugins: META (0.4) | ||
AlphaFeatures: ocamlbuild_more_args | ||
|
||
|
||
SourceRepository master | ||
Type: git | ||
Location: https://github.com/madroach/ocaml-zlib.git | ||
Branch: master | ||
Browser: https://github.com/madroach/ocaml-zlib | ||
|
||
Library "zlib" | ||
Path: src | ||
Modules: Zlib | ||
BuildDepends: bigarray | ||
XMETARequires: bigarray | ||
CSources: zlib_stubs.c | ||
CCLib: -lz | ||
CCOpt: -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 | ||
|
||
Document "zlib_api" | ||
Type: ocamlbuild (0.4) | ||
BuildTools: ocamldoc | ||
|
||
Title: API reference for Zlib | ||
XOCamlbuildPath: doc | ||
XOCamlbuildExtraArgs: | ||
"-docflags '-colorize-code -short-functors -charset utf-8'" | ||
XOCamlbuildLibraries: zlib | ||
|
||
Executable "test" | ||
Path: test | ||
MainIs: test.ml | ||
BuildDepends: unix, zlib | ||
CompiledObject: byte | ||
Install: false | ||
|
||
Test zlib | ||
TestTools: test | ||
WorkingDirectory: . | ||
Command: LD_LIBRARY_PATH=_build $test zlib_stubs.c |
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,36 @@ | ||
# OASIS_START | ||
# DO NOT EDIT (digest: 394fb8a8d55c3804ce1e617a4013792d) | ||
# Ignore VCS directories, you can use the same kind of rule outside | ||
# OASIS_START/STOP if you want to exclude directories that contains | ||
# useless stuff for the build process | ||
true: annot, bin_annot | ||
<**/.svn>: -traverse | ||
<**/.svn>: not_hygienic | ||
".bzr": -traverse | ||
".bzr": not_hygienic | ||
".hg": -traverse | ||
".hg": not_hygienic | ||
".git": -traverse | ||
".git": not_hygienic | ||
"_darcs": -traverse | ||
"_darcs": not_hygienic | ||
# Library zlib | ||
"src/zlib.cmxs": use_zlib | ||
<src/*.ml{,i,y}>: oasis_library_zlib_ccopt | ||
"src/zlib_stubs.c": oasis_library_zlib_ccopt | ||
<src/zlib.{cma,cmxa}>: oasis_library_zlib_cclib | ||
"src/libzlib_stubs.lib": oasis_library_zlib_cclib | ||
"src/dllzlib_stubs.dll": oasis_library_zlib_cclib | ||
"src/libzlib_stubs.a": oasis_library_zlib_cclib | ||
"src/dllzlib_stubs.so": oasis_library_zlib_cclib | ||
<src/zlib.{cma,cmxa}>: use_libzlib_stubs | ||
<src/*.ml{,i,y}>: pkg_bigarray | ||
"src/zlib_stubs.c": pkg_bigarray | ||
# Executable test | ||
"test/test.byte": pkg_bigarray | ||
"test/test.byte": pkg_unix | ||
"test/test.byte": use_zlib | ||
<test/*.ml{,i,y}>: pkg_bigarray | ||
<test/*.ml{,i,y}>: pkg_unix | ||
<test/*.ml{,i,y}>: use_zlib | ||
# OASIS_STOP |
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,6 @@ | ||
Bindings to the zlib compression library | ||
|
||
providing deflate compression with or without zlib or gzip headers. | ||
|
||
This library uses bigarrays as buffers and can therefore release the OCaml | ||
runtime during (de)compression, allowing other OCaml threads to continue. |
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,4 @@ | ||
# OASIS_START | ||
# DO NOT EDIT (digest: ebbe9deab1dd98945268ace774ff073e) | ||
../src/Zlib | ||
# OASIS_STOP |
Oops, something went wrong.