Skip to content

Commit

Permalink
Change toplevel support scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuenzli committed Mar 15, 2015
1 parent 5554b1b commit a0a6a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions pkg/META
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ archive(byte) = "tsdl.cma"
archive(byte, plugin) = "tsdl.cma"
archive(native) = "tsdl.cmxa"
archive(native, plugin) = "tsdl.cmxs"
archive(byte, toploop) += "tsdl_top.cma"
archive(native, toploop) += "tsdl_top.cmxs"
exists_if = "tsdl.cma"

package "top" (
version = "%%VERSION%%"
description = "Toplevel module for Tsdl"
requires = "compiler-libs.toplevel"
description = "Tsdl toplevel support"
requires = "tsdl"
archive(byte) = "tsdl_top.cma"
archive(byte, plugin) = "tsdl_top.cma"
archive(native) = "tsdl_top.cmxa"
Expand Down
2 changes: 1 addition & 1 deletion src/tsdl.mli
Original file line number Diff line number Diff line change
Expand Up @@ -3486,7 +3486,7 @@ match Sdl.init Sdl.Init.(video + timer + audio) with
To use [Tsdl] in the toplevel with [findlib] just issue:
{[
> #use "topfind";;
> #require "tsdl";;
> #require "tsdl.top";;
]}
This automatically loads the library and opens the [Tsdl] module.
Expand Down

0 comments on commit a0a6a51

Please sign in to comment.