• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

construction/H03-May-2022-8168

doc/H09-Jun-2016-9,4316,512

examples/H09-Jun-2016-2,6551,618

gnat/H09-Jun-2016-75

gpr/H03-May-2022-51,69331,531

share/H09-Jun-2016-8,5367,802

src/H03-May-2022-50,38133,239

.gitignoreH A D09-Jun-20162.9 KiB169164

.gitreviewH A D09-Jun-201697 65

COPYING3H A D09-Jun-201634.3 KiB675553

Makefile.inH A D09-Jun-20168.2 KiB285199

README.mdH A D09-Jun-20163.1 KiB9963

aclocal.m4H A D09-Jun-20161.6 KiB7163

config.guessH A D09-Jun-201642.7 KiB1,4571,264

config.subH A D09-Jun-201635.3 KiB1,8161,678

configureH A D09-Jun-201694.3 KiB3,2682,649

configure.inH A D09-Jun-2016326 1514

debug.adcH A D09-Jun-201627 21

doinstallH A D09-Jun-20163.3 KiB166119

features-11H A D09-Jun-20162.5 KiB5640

features-12H A D09-Jun-20163.6 KiB8961

features-13H A D09-Jun-20161.9 KiB4432

features-14H A D09-Jun-20162.8 KiB7248

features-15H A D09-Jun-20163.2 KiB8254

features-16H A D09-Jun-20164.4 KiB10171

features-17H A D09-Jun-20164.5 KiB11374

features-20H A D09-Jun-20162.6 KiB7045

features-21H A D09-Jun-20164.7 KiB11376

features-22H A D09-Jun-20166.7 KiB155108

features-23H A D09-Jun-20165.8 KiB14092

gprbuild.gprH A D09-Jun-20163.2 KiB10986

install-shH A D09-Jun-20164.7 KiB239152

known-problems-100H A D09-Jun-20164.2 KiB11971

known-problems-110H A D09-Jun-20164.7 KiB12978

known-problems-120H A D09-Jun-20164.1 KiB11971

known-problems-130H A D09-Jun-20164.5 KiB12275

known-problems-140H A D09-Jun-20162.6 KiB7245

known-problems-141H A D09-Jun-20166.2 KiB16099

known-problems-150H A D09-Jun-20161.7 KiB4930

known-problems-151H A D09-Jun-20162.8 KiB7447

known-problems-152H A D09-Jun-20161.8 KiB5031

known-problems-160H A D09-Jun-20161.2 KiB2720

known-problems-161H A D09-Jun-2016890 2215

known-problems-162H A D09-Jun-2016571 1310

known-problems-163H A D09-Jun-20165.2 KiB13386

known-problems-200H A D09-Jun-2016924 2316

known-problems-201H A D09-Jun-2016890 2316

known-problems-202H A D09-Jun-20165.1 KiB13083

known-problems-21H A D09-Jun-201615.7 KiB439268

known-problems-22H A D09-Jun-201611.9 KiB310196

known-problems-23H A D09-Jun-201611.3 KiB299189

README.md

1Preliminary note for Windows users
2==================================
3
4The build instructions for `gprbuild` may have a slight UNIX flavor but they can
5be used on Windows platforms with a full Cygwin installation. The latter makes
6it simpler to build `gprbuild` but is not required to use it.
7
8Configuring
9===========
10
11Configuring is usually done simply as:
12
13    $ ./configure
14
15Two parameters may be worth specifying: `--prefix` for specifying the
16installation root and `--build` for specifying the build host.
17
18In particular, on Windows, when using cygwin to build, it is necessary to
19configure with `--build=i686-pc-mingw32` if one wants to use 32 bit mingw based
20compilers such as GNAT Pro or GNAT GPL, and with `--build=x86_64-pc-mingw32` for
2164 bit compilers. Here are examples of such commands:
22
23    $ ./configure --build=i686-pc-mingw32 --prefix=$HOME/local
24
25    $ ./configure --build=x86_64-pc-mingw32 --prefix=$HOME/local
26
27Using alternate GNAT Sources
28============================
29
30Gprbuild uses some sources of the GNAT package. They are expected by default to
31be located in the `gnat/` subdirectory of Gprbuild. Only some of the GNAT
32sources are required, but note that having all of the GNAT sources present in
33the `gnat/` subdirectory will result in build failure.
34
35In order to use GNAT sources from another location, create a link named
36`gnat_src` and call the Makefile target `copy_gnat_src`:
37
38    $ ln -s <path_to_gnat_sources> gnat_src
39    $ make copy_gnat_src
40
41That will place links into the `gnat/` subdirectory for each of the required
42GNAT source files.
43
44On Windows with Cygwin, the files must be copied because symbolic links do not
45work. The definition of `GNAT_SOURCE_DIR` in the Makefile needs to be modified
46so that it specifies the path to the GNAT sources. For example:
47
48    GNAT_SOURCE_DIR=$(HOME)/gnat
49
50Then call the Makefile target `copy_gnat_src`:
51
52    $ make copy_gnat_src
53
54The Makefile will recognize the use of Windows and will therefore place a copy
55of the required files into the `gnat/` subdirectory.
56
57Alternatively you can specify `GNAT_SOURCE_DIR` on the command line when
58invoking the makefile target:
59
60    $ make copy_gnat_src GNAT_SOURCE_DIR=<path/to/gnat/sources>
61
62Note that target `copy_gnat_src` is invoked automatically by target `complete`.
63
64Building and Installing
65=======================
66
67XML/Ada must be installed before building.
68
69Building the main executables is done simply with:
70
71    $ make all
72
73When compiling, you can choose whether you want to link statically with XML/Ada
74(the default), or dynamically. To compile dynamically, you should run:
75
76    $ make LIBRARY_TYPE=relocatable all
77
78instead of the above.
79
80Installation is done with:
81
82    $ make install
83
84Doc & Examples
85==============
86
87The documentation is provided in various formats in the doc subdirectory.
88
89It refers to concrete examples that are to be found in the examples
90subdirectory. Each example can be built easily using the simple attached
91Makefile:
92
93    $ make all    # build the example
94    $ make run    # run the executable(s)
95    $ make clean  # cleanup
96
97All the examples can be `built/run/cleaned` using the same targets and the top
98level examples Makefile.
99