aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-09 18:39:57 -0500
committerJack Lloyd <[email protected]>2017-12-10 12:17:01 -0500
commitbb54aa2479af5389b350e70fdfb274e2945d9092 (patch)
tree3c4bfbe2efcb8e158cf89a215c79f9df7f082616 /src/build-data
parentbfcf7075e158b18411dfd7661bd0c5d1ab429e59 (diff)
Use template file to generate bakefile
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/bakefile.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/build-data/bakefile.in b/src/build-data/bakefile.in
new file mode 100644
index 000000000..0cd9eb581
--- /dev/null
+++ b/src/build-data/bakefile.in
@@ -0,0 +1,28 @@
+toolsets = vs2013;
+shared-library botan {
+ defines = "BOTAN_DLL=__declspec(dllexport)";
+%{bakefile_source_list}
+}
+program cli {
+ deps = botan;
+%{bakefile_cli_list}
+}
+program tests {
+ deps = botan;
+%{bakefile_tests_list}
+}
+
+includedirs += build/include/;
+includedirs += build/include/external;
+
+%{bakefile_libs}
+
+archs = %{cpu};
+
+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;
+}