Skip to content

Commit

Permalink
initial check-in
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Zimmermann committed Dec 6, 2015
1 parent 31c3e39 commit f534218
Show file tree
Hide file tree
Showing 16 changed files with 8,889 additions and 2 deletions.
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015, madroach
Copyright (c) 2015, Christopher Zimmermann

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand All @@ -11,4 +11,3 @@ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

52 changes: 52 additions & 0 deletions _oasis
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
36 changes: 36 additions & 0 deletions _tags
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
6 changes: 6 additions & 0 deletions descr
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.
4 changes: 4 additions & 0 deletions doc/zlib_api.odocl
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
Loading

0 comments on commit f534218

Please sign in to comment.