|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| construction/ | H | 03-May-2022 | - | 81 | 68 |
| doc/ | H | 09-Jun-2016 | - | 9,431 | 6,512 |
| examples/ | H | 09-Jun-2016 | - | 2,655 | 1,618 |
| gnat/ | H | 09-Jun-2016 | - | 7 | 5 |
| gpr/ | H | 03-May-2022 | - | 51,693 | 31,531 |
| share/ | H | 09-Jun-2016 | - | 8,536 | 7,802 |
| src/ | H | 03-May-2022 | - | 50,381 | 33,239 |
| .gitignore | H A D | 09-Jun-2016 | 2.9 KiB | 169 | 164 |
| .gitreview | H A D | 09-Jun-2016 | 97 | 6 | 5 |
| COPYING3 | H A D | 09-Jun-2016 | 34.3 KiB | 675 | 553 |
| Makefile.in | H A D | 09-Jun-2016 | 8.2 KiB | 285 | 199 |
| README.md | H A D | 09-Jun-2016 | 3.1 KiB | 99 | 63 |
| aclocal.m4 | H A D | 09-Jun-2016 | 1.6 KiB | 71 | 63 |
| config.guess | H A D | 09-Jun-2016 | 42.7 KiB | 1,457 | 1,264 |
| config.sub | H A D | 09-Jun-2016 | 35.3 KiB | 1,816 | 1,678 |
| configure | H A D | 09-Jun-2016 | 94.3 KiB | 3,268 | 2,649 |
| configure.in | H A D | 09-Jun-2016 | 326 | 15 | 14 |
| debug.adc | H A D | 09-Jun-2016 | 27 | 2 | 1 |
| doinstall | H A D | 09-Jun-2016 | 3.3 KiB | 166 | 119 |
| features-11 | H A D | 09-Jun-2016 | 2.5 KiB | 56 | 40 |
| features-12 | H A D | 09-Jun-2016 | 3.6 KiB | 89 | 61 |
| features-13 | H A D | 09-Jun-2016 | 1.9 KiB | 44 | 32 |
| features-14 | H A D | 09-Jun-2016 | 2.8 KiB | 72 | 48 |
| features-15 | H A D | 09-Jun-2016 | 3.2 KiB | 82 | 54 |
| features-16 | H A D | 09-Jun-2016 | 4.4 KiB | 101 | 71 |
| features-17 | H A D | 09-Jun-2016 | 4.5 KiB | 113 | 74 |
| features-20 | H A D | 09-Jun-2016 | 2.6 KiB | 70 | 45 |
| features-21 | H A D | 09-Jun-2016 | 4.7 KiB | 113 | 76 |
| features-22 | H A D | 09-Jun-2016 | 6.7 KiB | 155 | 108 |
| features-23 | H A D | 09-Jun-2016 | 5.8 KiB | 140 | 92 |
| gprbuild.gpr | H A D | 09-Jun-2016 | 3.2 KiB | 109 | 86 |
| install-sh | H A D | 09-Jun-2016 | 4.7 KiB | 239 | 152 |
| known-problems-100 | H A D | 09-Jun-2016 | 4.2 KiB | 119 | 71 |
| known-problems-110 | H A D | 09-Jun-2016 | 4.7 KiB | 129 | 78 |
| known-problems-120 | H A D | 09-Jun-2016 | 4.1 KiB | 119 | 71 |
| known-problems-130 | H A D | 09-Jun-2016 | 4.5 KiB | 122 | 75 |
| known-problems-140 | H A D | 09-Jun-2016 | 2.6 KiB | 72 | 45 |
| known-problems-141 | H A D | 09-Jun-2016 | 6.2 KiB | 160 | 99 |
| known-problems-150 | H A D | 09-Jun-2016 | 1.7 KiB | 49 | 30 |
| known-problems-151 | H A D | 09-Jun-2016 | 2.8 KiB | 74 | 47 |
| known-problems-152 | H A D | 09-Jun-2016 | 1.8 KiB | 50 | 31 |
| known-problems-160 | H A D | 09-Jun-2016 | 1.2 KiB | 27 | 20 |
| known-problems-161 | H A D | 09-Jun-2016 | 890 | 22 | 15 |
| known-problems-162 | H A D | 09-Jun-2016 | 571 | 13 | 10 |
| known-problems-163 | H A D | 09-Jun-2016 | 5.2 KiB | 133 | 86 |
| known-problems-200 | H A D | 09-Jun-2016 | 924 | 23 | 16 |
| known-problems-201 | H A D | 09-Jun-2016 | 890 | 23 | 16 |
| known-problems-202 | H A D | 09-Jun-2016 | 5.1 KiB | 130 | 83 |
| known-problems-21 | H A D | 09-Jun-2016 | 15.7 KiB | 439 | 268 |
| known-problems-22 | H A D | 09-Jun-2016 | 11.9 KiB | 310 | 196 |
| known-problems-23 | H A D | 09-Jun-2016 | 11.3 KiB | 299 | 189 |
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