summaryrefslogtreecommitdiff
path: root/examples.gpr
blob: 117886f0d168e84c9faee6ad405b0043999e040a (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


with "packrat";


project Examples is


    type Mode_Type is ("debug", "release");

    Mode : Mode_Type := external ("mode", "debug");


    for Languages use ("Ada");


    for Source_Dirs use ("example/**");
    for Object_Dir use "obj";
    for Exec_Dir use "bin";
    for Main use ("sentence.adb", "ssss.adb", "calc.adb");


    package Builder is
        for Executable ("sentence.adb") use "sentence";
        for Executable ("ssss.adb") use "ssss";
        for Executable ("calc.adb") use "calc";
    end Builder;


    package Compiler is
        case Mode is
            when "debug" =>
                for Switches ("Ada") use ("-gnaty4aAbcefhiklM100nprt");
            when "release" =>
                for Switches ("Ada") use ("-O3");
        end case;
    end Compiler;


end Examples;