1 /**
2 * Copyright © Yurai Web Framework 2021
3 * License: MIT (https://github.com/YuraiWeb/yurai/blob/main/LICENSE)
4 * Author: Jacob Jensen (bausshf)
5 */
6 module yurai.core.settings;
7 
8 public:
9 version (YURAI_PREBUILD)
10 {
11   static const bool Yurai_IsPreBuilding = true;
12 }
13 else
14 {
15   static const bool Yurai_IsPreBuilding = false;
16 }
17 
18 version (YURAI_DEBUG)
19 {
20   static const bool Yurai_IsDebugging = true;
21 }
22 else
23 {
24   static const bool Yurai_IsDebugging = false;
25 }
26 
27 version (YURAI_VIBE_D)
28 {
29   static const bool Yurai_UseVibed = true;
30 }
31 else
32 {
33   static const bool Yurai_UseVibed = false;
34 }
35 
36 version (YURAI_MYSQL)
37 {
38   static const bool Yurai_UseMysql = true;
39 
40   static if (!(is(typeof((){import mysql;}))))
41   {
42     static assert(0, "Missing mysql dependency.");
43   }
44 }
45 else
46 {
47   static const bool Yurai_UseMysql = false;
48 }
49 
50 version (YURAI_VIBE_D_MAIL)
51 {
52   static const bool Yurai_UseVibed_Mail = true;
53 }
54 else
55 {
56   static const bool Yurai_UseVibed_Mail = false;
57 }