aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/bakefile.in
blob: a1c0ff134e5cd490f99cd5244ea5bb716e38aa30 (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
43
44
45
46
47
48
49
50
51
toolsets = vs2013;
shared-library botan {
   defines = "BOTAN_DLL=__declspec(dllexport)";
   sources {
%{for lib_srcs}
      %{i}
%{endfor}
   }
}

program cli {
   deps = botan;
   sources {
%{for cli_srcs}
      %{i}
%{endfor}
   }

   headers {
%{for cli_headers}
      %{i}
%{endfor}
   }

}

program tests {
   deps = botan;
   sources {
%{for test_srcs}
      %{i}
%{endfor}
   }
}

includedirs += build/include/;
includedirs += build/include/external;

%{for libs_used}
libs += "%{i}";
%{endfor}

archs = %{bakefile_arch};

vs2013.option.ClCompile.DisableSpecificWarnings = "4250;4251;4275";
vs2013.option.ClCompile.WarningLevel = Level4;
vs2013.option.ClCompile.ExceptionHandling = SyncCThrow;
vs2013.option.ClCompile.RuntimeTypeInfo = true;
if ( $(config) == Release ) {
   vs2013.option.Configuration.WholeProgramOptimization = true;
}