1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>The findlib User's Guide</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="NEXT"
TITLE="User's Guide"
HREF="p35.html"></HEAD
><BODY
CLASS="BOOK"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="BOOK"
><A
NAME="AEN1"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN1"
>The findlib User's Guide</A
></H1
><H3
CLASS="AUTHOR"
><A
NAME="AEN5"
></A
>Gerd Stolpmann</H3
><P
CLASS="COPYRIGHT"
>Copyright © 1999-2014 Gerd Stolpmann</P
><DIV
><DIV
CLASS="ABSTRACT"
><P
></P
><A
NAME="AEN15"
></A
><P
>The "findlib" library provides a scheme to manage reusable software
components (packages), and includes tools that support this
scheme. Packages are collections of OCaml modules for which
metainformation can be stored. The packages are kept in the filesystem
hierarchy, but with strict directory structure. The library contains
functions to look the directory up that stores a package, to query
metainformation about a package, and to retrieve dependency
information about multiple packages. There is also a tool that allows
the user to enter queries on the command-line. In order to simplify
compilation and linkage, there are new frontends of the various OCaml
compilers that can directly deal with packages.</P
><P
>Together with the packages metainformation is stored. This includes a
version string, the archives the package consists of, and additional
linker options. Packages can also be dependent on other
packages. There is a query which finds out all predecessors of a list
of packages and sorts them topologically. The new compiler frontends
do this implicitly.</P
><P
>Metainformation can be conditional, i.e. depend on a set of
predicates. This is mainly used to be able to react on certain
properties of the environment, such as if the bytecode or the native
compiler is invoked, if the application is multi-threaded, and a few
more. If the new compiler frontends are used, most predicates are
found out automatically.</P
><P
>There is special support for scripts. A new directive, "#require",
loads packages into scripts.</P
><DIV
CLASS="FORMALPARA"
><P
><B
>Download findlib. </B
>This manual describes version 1.5 of the software
package. It can be downloaded at
<A
HREF="http://download.camlcity.org/download"
TARGET="_top"
>http://download.camlcity.org/download</A
>. The user's guide and the reference manual are included.
Newest releases of "findlib" will be announced in
<A
HREF="http://links.camlcity.org"
TARGET="_top"
>The OCaml Link
Database</A
>.</P
></DIV
><DIV
CLASS="FORMALPARA"
><P
><B
>Quickstart. </B
>See also the <A
HREF="/projects/dl/findlib-1.5/doc/QUICKSTART"
TARGET="_top"
>Quickstart page</A
>
for instructions for the most common
cases.</P
></DIV
><P
></P
></DIV
></DIV
><DIV
CLASS="LEGALNOTICE"
><A
NAME="AEN29"
></A
><P
><B
>License</B
></P
><P
>This document, and the described software, "findlib", are copyright by
Gerd Stolpmann.</P
><P
>Permission is hereby granted, free of charge, to any person obtaining
a copy of this document and the "findlib" software (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:</P
><P
>The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.</P
><P
>The Software is provided ``as is'', without warranty of any kind, express
or implied, including but not limited to the warranties of
merchantability, fitness for a particular purpose and noninfringement.
In no event shall Gerd Stolpmann be liable for any claim, damages or
other liability, whether in an action of contract, tort or otherwise,
arising from, out of or in connection with the Software or the use or
other dealings in the software.</P
></DIV
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>I. <A
HREF="p35.html"
>User's Guide</A
></DT
><DD
><DL
><DT
>1. <A
HREF="c37.html"
>Libraries and Packages</A
></DT
><DT
>2. <A
HREF="c74.html"
>Using packages</A
></DT
><DD
><DL
><DT
><A
HREF="c74.html#AEN76"
>Listing the installed packages</A
></DT
><DT
><A
HREF="x81.html"
>Looking up package directories</A
></DT
><DT
><A
HREF="x89.html"
>How a package directory looks like</A
></DT
><DT
><A
HREF="x108.html"
>Querying information stored in META files</A
></DT
><DT
><A
HREF="x119.html"
>How to compile and link a program that uses a package</A
></DT
><DT
><A
HREF="x135.html"
>Dependencies</A
></DT
><DT
><A
HREF="x149.html"
>Linker options</A
></DT
></DL
></DD
><DT
>3. <A
HREF="c161.html"
>Dependency analysis of packages</A
></DT
><DD
><DL
><DT
><A
HREF="c161.html#AEN163"
>Querying ancestors</A
></DT
><DT
><A
HREF="x180.html"
>Querying descendants</A
></DT
></DL
></DD
><DT
>4. <A
HREF="c192.html"
>A new frontend for ocamlc</A
></DT
><DD
><DL
><DT
><A
HREF="c192.html#AEN194"
>Compiling and linking</A
></DT
><DT
><A
HREF="x231.html"
>Toploops and runtime systems</A
></DT
><DT
><A
HREF="x265.html"
>Multi-threaded applications</A
></DT
><DT
><A
HREF="x274.html"
>Support for gprof-enabled modules</A
></DT
></DL
></DD
><DT
>5. <A
HREF="c278.html"
>Complex packages</A
></DT
><DD
><DL
><DT
><A
HREF="c278.html#AEN280"
>The standard predicates</A
></DT
><DT
><A
HREF="x311.html"
>Defining additional predicates</A
></DT
><DT
><A
HREF="x326.html"
>Appending to variables</A
></DT
><DT
><A
HREF="x338.html"
>Subpackages</A
></DT
><DT
><A
HREF="x345.html"
>Glue code</A
></DT
><DT
><A
HREF="x352.html"
>Plugins</A
></DT
><DT
><A
HREF="x388.html"
>Lint</A
></DT
></DL
></DD
><DT
>6. <A
HREF="c395.html"
>How to create your own packages</A
></DT
><DD
><DL
><DT
><A
HREF="c395.html#AEN397"
>Installing and removing packages</A
></DT
><DT
><A
HREF="x403.html"
>Change your Makefile</A
></DT
><DT
><A
HREF="x421.html"
>Using the Makefile wizard</A
></DT
></DL
></DD
><DT
>7. <A
HREF="c429.html"
>FAQs</A
></DT
><DD
><DL
><DT
><A
HREF="c429.html#AEN431"
>Does findlib support the autolink feature of OCaml 3?</A
></DT
><DT
><A
HREF="x443.html"
>Why does findlib not automatically include the -custom option if
linked with C code?</A
></DT
><DT
><A
HREF="x449.html"
>Does findlib support linking of applications as well as
packages?</A
></DT
><DT
><A
HREF="x461.html"
>Does Findlib support camlp4?</A
></DT
><DT
><A
HREF="x513.html"
>Does Findlib support ppx-style preprocessors?</A
></DT
><DT
><A
HREF="x524.html"
>Why do some people install the .cmx files?</A
></DT
><DT
><A
HREF="x528.html"
>How do I express conflicts?</A
></DT
></DL
></DD
></DL
></DD
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
> </TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
> </TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="p35.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
> </TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
> </TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>User's Guide</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
|