File: wolfssl.gpr

package info (click to toggle)
wolfssl 5.8.4-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 117,604 kB
  • sloc: ansic: 1,584,954; asm: 481,206; sh: 11,586; cs: 6,596; xml: 3,878; perl: 3,291; makefile: 2,058; ada: 1,891; javascript: 748; python: 636; cpp: 131; ruby: 118; objc: 80; tcl: 73
file content (91 lines) | stat: -rw-r--r-- 2,542 bytes parent folder | download | duplicates (5)
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
with "config/wolfssl_config.gpr";

library project WolfSSL is

   for Library_Name use "wolfssl";

   for Languages use ("C", "Ada");

   for Source_Dirs use (".",
                        "../../",
                        "../../src",
                        "../../wolfcrypt/src");

   --  Don't build the tls client or server application.
   --  They are not needed in order to build the library.
   for Excluded_Source_Files use
      ("tls_client_main.adb",
      "tls_client.ads",
      "tls_client.adb",
      "tls_server_main.adb",
      "tls_server.ads",
      "tls_server.adb");

   for Object_Dir use "obj";
   for Library_Dir use "lib";
   for Create_Missing_Dirs use "True";

   type Library_Type_Type is ("relocatable", "static", "static-pic");
   Library_Type : Library_Type_Type := external("LIBRARY_TYPE", "static");
   for Library_Kind use Library_Type;

   package Naming is
      for Spec_Suffix ("C") use ".h";
   end Naming;

   C_Compiler_Config := ();

   case Wolfssl_Config.STATIC_PSK is
   when "True" => 
      C_Compiler_Config := 
         ("-DWOLFSSL_STATIC_PSK" -- Enable the static PSK cipher support
         );
   when others =>
      C_Compiler_Config := ();
   end case;

   package Compiler is
      for Switches ("C") use C_Compiler_Config &
         ("-DWOLFSSL_USER_SETTINGS", --  Use the user_settings.h file.
          "-Wno-pragmas",
          "-Wall",
          "-Wextra",
          "-Wunknown-pragmas",
          "--param=ssp-buffer-size=1",
          "-Waddress",
          "-Warray-bounds",
          "-Wbad-function-cast",
          "-Wchar-subscripts",
          "-Wcomment",
          "-Wfloat-equal",
          "-Wformat-security",
          "-Wformat=2",
          "-Wmaybe-uninitialized",
          "-Wmissing-field-initializers",
          "-Wmissing-noreturn",
          "-Wmissing-prototypes",
          "-Wnested-externs",
          "-Wnormalized=id",
          "-Woverride-init",
          "-Wpointer-arith",
          "-Wpointer-sign",
          "-Wshadow",
          "-Wsign-compare",
          "-Wstrict-overflow=1",
          "-Wstrict-prototypes",
          "-Wswitch-enum",
          "-Wundef",
          "-Wunused",
          "-Wunused-result",
          "-Wunused-variable",
          "-Wwrite-strings",
          "-fwrapv") & External_As_List ("CFLAGS", " ");

      for Switches ("Ada") use ("-g") & External_As_List ("ADAFLAGS", " ");
   end Compiler;

   package Binder is
      for Switches ("Ada") use ("-Es");  --  To include stack traces.
   end Binder;

end WolfSSl;