-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathINSTALL
98 lines (69 loc) · 3.2 KB
/
INSTALL
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
Gnoga can be installed as a GNAT standard library on many platforms and
can always be used from its own directory.
1) To install release version in "inst_folder" directory:
$ make BUILD_MODE=Release install
gnoga_make will also be installed in to the bin directory. Make sure to
check the permission on the gnoga_make executable as some versions of gprinstall
fail to correctly change permissions to execute for all users.
In your gpr file use:
with "gnoga.gpr"
and add this option to your grpbuild: -aP/path/to/gnoga/inst_folder/share/gpr -aP/path/to/gnoga/inst_folder/lib/gnat
or for Unix like
export GPR_PROJECT_PATH=/path/to/gnoga/inst_folder/share/gpr:/path/to/gnoga/inst_folder/lib/gnat
or for Windows
set GPR_PROJECT_PATH=/path/to/gnoga/inst_folder/share/gpr;/path/to/gnoga/inst_folder/lib/gnat
Tips: "make help" will give your actual INSTALL folder.
I you don't have Sqlite3, you can do before (automatic for Windows):
$ make sqlite3
The HTML files and Javascript plugins are in /path/to/gnoga/inst_folder/share/gnoga.
2) To install debug version in "inst_folder" directory:
$ make install
Usage is same as release install.
3) Installation directory:
By default Gnoga and dependent libraries are installed in /path/to/gnoga/inst_folder directory.
Installation is customizable with PREFIX, as for instance:
make PREFIX=/path/to/install install
In your gpr file use:
with "gnoga.gpr"
and add this option to your grpbuild: -aP/path/to/install/share/gpr
or for Unix like
export GPR_PROJECT_PATH=/path/to/install/share/gpr
or for Windows
set GPR_PROJECT_PATH=/path/to/install/share/gpr
NB: Zanyblue installation doesn't support paths including space character.
4) Using from Gnoga's own directory without installing in debug build mode:
(to play with Gnoga source code, demos, tutorials or even tests)
make all
In your own gpr file, add GPR full path for Gnoga and other projects needed:
'with "/path/to/gnoga/src/gnoga.gpr"' (instead of 'with "gnoga.gpr"').
That's all.
If you want to add only GPR names:
with "gnoga.gpr";
with "zanyblue.gpr";
...
then add these options to your grpbuild: -aP/path/to/gnoga/src -aP/path/to/gnoga/deps/zanyblue/src
or for Unix like
export GPR_PROJECT_PATH=/path/to/gnoga/src:/path/to/gnoga/deps/zanyblue/src
or for Windows
set GPR_PROJECT_PATH=path\to\gnoga\src;path\to\gnoga\deps\zanyblue\src
These options are automatically computed for you with gnoga-config.
The script is created a first time with makefile and then can be use without makefile.
gnoga-config sets the search project directories for gprbuild.
a) For Windows users:
Usage:
> cd path\to\gnoga
> make gnoga-config
> cd <your-stuff>
> path\to\gnoga\bin\gnoga-config gprbuild -P your-project.gpr your-main.adb
(your-project.gpr just have to include 'with "gnoga.gpr";')
You can also add path\to\gnoga\bin to your PATH and then just do:
gnoga-config gprbuild -P your-project.gpr your-main.adb
b) For Unix like users:
Usage:
$ cd /path/to/gnoga
$ make gnoga-config
$ cd <your-stuff>
$ gprbuild -P your-project.gpr your-main.adb `/path/to/gnoga/bin/gnoga-config`
(your-project.gpr just have to include 'with "gnoga.gpr";')
You can also add /path/to/gnoga/bin to your PATH and then just do:
$ gprbuild -P your-project.gpr your-main.adb `gnoga-config`