Mercurial > projects > dstep
comparison dstep/internal/Version.d @ 11:07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 01 Aug 2009 15:03:28 +0200 |
parents | 033d260cfc9b |
children | 19885b43130e |
comparison
equal
deleted
inserted
replaced
10:27e00625790b | 11:07194b026fa4 |
---|---|
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | 5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) |
6 */ | 6 */ |
7 module dstep.internal.Version; | 7 module dstep.internal.Version; |
8 | 8 |
9 public import mambo.util.Version; | 9 public import mambo.util.Version; |
10 | |
11 /*static if ((void*).sizeof > int.sizeof) | |
12 version = D_LP64; | |
13 | |
14 version (GNU) | |
15 version (darwin) | |
16 version = OSX; | |
17 | |
18 version (DigitalMars) | |
19 version (OSX) | |
20 version = darwin; | |
21 | |
22 //Compiler Vendors | |
23 version (DigitalMars) const bool DigitalMars = true; | |
24 else const bool DigitalMars = false; | |
25 | |
26 version (GNU) const bool GNU = true; | |
27 else const bool GNU = false; | |
28 | |
29 version (LDC) const bool LDC = true; | |
30 else const bool LDC = false; | |
31 | |
32 version (LLVM) const bool LLVM = true; | |
33 else const bool LLVM = false; | |
34 | |
35 | |
36 | |
37 //Processors | |
38 version (PPC) const bool PPC = true; | |
39 else const bool PPC = false; | |
40 | |
41 version (PPC64) const bool PPC64 = true; | |
42 else const bool PPC64 = false; | |
43 | |
44 version (SPARC) const bool SPARC = true; | |
45 else const bool SPARC = false; | |
46 | |
47 version (SPARC64) const bool SPARC64 = true; | |
48 else const bool SPARC64 = false; | |
49 | |
50 version (X86) const bool X86 = true; | |
51 else const bool X86 = false; | |
52 | |
53 version (X86_64) const bool X86_64 = true; | |
54 else const bool X86_64 = false; | |
55 | |
56 | |
57 | |
58 //Operating Systems | |
59 version (aix) const bool aix = true; | |
60 else const bool aix = false; | |
61 | |
62 version (cygwin) const bool cygwin = true; | |
63 else const bool cygwin = false; | |
64 | |
65 version (darwin) const bool darwin = true; | |
66 else const bool darwin = false; | |
67 | |
68 version (OSX) const bool OSX = true; | |
69 else const bool OSX = false; | |
70 | |
71 version (freebsd) const bool freebsd = true; | |
72 else const bool freebsd = false; | |
73 | |
74 version (linux) const bool linux = true; | |
75 else const bool linux = false; | |
76 | |
77 version (solaris) const bool solaris = true; | |
78 else const bool solaris = false; | |
79 | |
80 version (Unix) const bool Unix = true; | |
81 else const bool Unix = false; | |
82 | |
83 version (Win32) const bool Win32 = true; | |
84 else const bool Win32 = false; | |
85 | |
86 version (Win64) const bool Win64 = true; | |
87 else const bool Win64 = false; | |
88 | |
89 version (Windows) const bool Windows = true; | |
90 else const bool Windows = false; | |
91 | |
92 | |
93 | |
94 //Rest | |
95 version (BigEndian) const bool BigEndian = true; | |
96 else const bool BigEndian = false; | |
97 | |
98 version (LittleEndian) const bool LittleEndian = true; | |
99 else const bool LittleEndian = false; | |
100 | |
101 version (D_Coverage) const bool D_Coverage = true; | |
102 else const bool D_Coverage = false; | |
103 | |
104 version (D_Ddoc) const bool D_Ddoc = true; | |
105 else const bool D_Ddoc = false; | |
106 | |
107 version (D_InlineAsm_X86) const bool D_InlineAsm_X86 = true; | |
108 else const bool D_InlineAsm_X86 = false; | |
109 | |
110 version (D_InlineAsm_X86_64) const bool D_InlineAsm_X86_64 = true; | |
111 else const bool D_InlineAsm_X86_64 = false; | |
112 | |
113 version (D_LP64) const bool D_LP64 = true; | |
114 else const bool D_LP64 = false; | |
115 | |
116 version (D_PIC) const bool D_PIC = true; | |
117 else const bool D_PIC = false; | |
118 | |
119 version (GNU_BitsPerPointer32) const bool GNU_BitsPerPointer32 = true; | |
120 else const bool GNU_BitsPerPointer32 = false; | |
121 | |
122 version (GNU_BitsPerPointer64) const bool GNU_BitsPerPointer64 = true; | |
123 else const bool GNU_BitsPerPointer64 = false; | |
124 | |
125 version (all) const bool all = true; | |
126 else const bool D_InlineAsm_X86_64 = false; | |
127 | |
128 version (none) const bool D_InlineAsm_X86_64 = true; | |
129 else const bool none = false; | |
130 | |
131 version (Tango) | |
132 { | |
133 const bool Tango = true; | |
134 const bool Phobos = false; | |
135 } | |
136 | |
137 else | |
138 { | |
139 const bool Tango = false; | |
140 const bool Phobos = true; | |
141 }*/ |