summaryrefslogtreecommitdiff
path: root/INSTALL
blob: 96e63f94d4674d0759f9e3cb8bbbdeb9f6145d92 (plain)
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
Compiler Prerequisites

  build-time:

    - g++              >= 3.4.3   http://gcc.gnu.org
    - build            >= 0.3.10  http://www.codesynthesis.com/projects/build/
    - cli              >= 1.2.0   http://www.codesynthesis.com/projects/cli/

  run-time:

    - libxerces-c      >= 3.0.0   http://xerces.apache.org/xerces-c/
    - libcutl          >= 1.8.0   http://www.codesynthesis.com/projects/libcutl/
    - libxsd-frontend  >= 2.0.0   http://www.codesynthesis.com/projects/libxsd-frontend/


Generated Code Prerequisites

  build-time:

    - libxsd (header-only XSD runtime library, part of the XSD distribution)

  run-time:

    - libxerces-c >= 3.0.0 (C++/Tree and C++/Parser mappings)
      http://xerces.apache.org/xerces-c/

    - libexpat >= 1.95.8 (C++/Parser mapping, alternative to libxerces-c)
      http://www.libexpat.org


Building XSD

  First build (and optionally install) all the prerequisites listed above.
  Alternatively, you can use the xsd+dep package that includes all the
  prerequisites (except g++ and libxerces-c) and can be built with a
  single 'make' invocation.

  Once the prerequisites are ready, to build the XSD compiler in source
  directory simply run 'make'. You can also build in a separate directory,
  for example:

  $ mkdir xsd-i686-pc-linux-gnu
  $ cd xsd-i686-pc-linux-gnu
  $ make -f ../xsd-x.y.z/makefile


Installing XSD

  To install XSD, run 'make install'. Use the install_prefix command
  line variable to specify installation location (default is /usr/local),
  for example:

  $ make install_prefix=/usr install

  You can fine-tune the installation locations with the following make
  variables:

  install_prefix       default is /usr/local
  install_data_prefix  default is install_prefix
  install_exec_prefix  default is install_prefix

  install_bin_dir      default is install_exec_prefix/bin
  install_sbin_dir     default is install_exec_prefix/sbin
  install_lib_dir      default is install_exec_prefix/lib

  install_data_dir     default is install_data_prefix/share
  install_inc_dir      default is install_data_prefix/include

  install_doc_dir      default is install_data_dir/doc
  install_man_dir      default is install_data_dir/man
  install_info_dir     default is install_data_dir/info