File: using.mdwn

package info (click to toggle)
cwidget 0.5.18-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,624 kB
  • sloc: cpp: 15,709; sh: 4,834; makefile: 224; sed: 16; perl: 15
file content (46 lines) | stat: -rw-r--r-- 1,217 bytes parent folder | download | duplicates (8)
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
[[toc ]]

[[meta title="Using cwidget in your software"]]

## Compile and link flags

The program [pkg-config][] is used to dynamically discover the
appropriate compile and link flags for cwidget.  If you are using
[autoconf][] to configure your source, place the following lines in
your `configure.ac`:

>     PKG_CHECK_MODULES(CWIDGET, cwidget)
>
>     CXXFLAGS="$CXXFLAGS $CWIDGET_CFLAGS"
>     LIBS="$LIBS $CWIDGET_LIBS"

If you are not using [autoconf][], you can directly invoke
[pkg-config][] to find cwidget.  Running

>     pkg-config --cflags

will output the flags you should add to your compiler invocation, and
running

>     pkg-config --libs

will output the flags you should add to your linker invocation.

[autoconf]:   <http://www.gnu.org/software/autoconf/>
[pkg-config]: <http://pkg-config.freedesktop.org/>

## API documentation

The [API documentation][api-docs] for cwidget is generated
automatically from the source code, using [doxygen][].  The
documentation is not generated by default, so if you want to browse it
locally you must first run

>     make doc

to build it.

[api-docs]: <api/index.html>
[doxygen]: <http://www.doxygen.org>

<!-- TODO: tutorial and quick-starts are needed. -->