@@ -10,126 +10,126 @@ namespace sw {
1010namespace os {
1111
1212struct windows {
13- static constexpr auto name = " windows" sv;
13+ static constexpr auto name = " windows" sv;
1414
15- static constexpr auto executable_extension = " .exe" ;
16- static constexpr auto object_file_extension = " .obj" ;
17- static constexpr auto static_library_extension = " .lib" ;
18- static constexpr auto shared_library_extension = " .dll" ;
15+ static constexpr auto executable_extension = " .exe" ;
16+ static constexpr auto object_file_extension = " .obj" ;
17+ static constexpr auto static_library_extension = " .lib" ;
18+ static constexpr auto shared_library_extension = " .dll" ;
1919
20- static bool is (string_view sv) {
21- return name == sv;
22- }
20+ static bool is (string_view sv) {
21+ return name == sv;
22+ }
2323
24- // deps:
25- // kernel32 dependency (winsdk.um)
24+ // deps:
25+ // kernel32 dependency (winsdk.um)
2626};
2727
2828struct mingw : windows {
29- static constexpr auto name = " mingw" sv;
29+ static constexpr auto name = " mingw" sv;
3030
31- static bool is (string_view sv) {
32- return name == sv;
33- }
31+ static bool is (string_view sv) {
32+ return name == sv;
33+ }
3434};
3535
3636struct cygwin : windows {
37- static constexpr auto name = " cygwin" sv;
37+ static constexpr auto name = " cygwin" sv;
3838
39- static constexpr auto static_library_extension = " .a" ;
40- static constexpr auto object_file_extension = " .o" ;
39+ static constexpr auto static_library_extension = " .a" ;
40+ static constexpr auto object_file_extension = " .o" ;
4141
42- static bool is (string_view sv) {
43- return name == sv;
44- }
42+ static bool is (string_view sv) {
43+ return name == sv;
44+ }
4545};
4646
4747struct unix {
48- static constexpr auto object_file_extension = " .o" ;
49- static constexpr auto static_library_extension = " .a" ;
48+ static constexpr auto object_file_extension = " .o" ;
49+ static constexpr auto static_library_extension = " .a" ;
5050};
5151
5252struct linux : unix {
53- static constexpr auto name = " linux" sv;
53+ static constexpr auto name = " linux" sv;
5454
55- static constexpr auto shared_library_extension = " .so" ;
55+ static constexpr auto shared_library_extension = " .so" ;
5656
57- static bool is (string_view sv) {
58- return name == sv;
59- }
57+ static bool is (string_view sv) {
58+ return name == sv;
59+ }
6060};
6161
6262struct darwin : unix {
63- static constexpr auto shared_library_extension = " .dylib" ;
63+ static constexpr auto shared_library_extension = " .dylib" ;
6464};
6565
6666struct macos : darwin {
67- static constexpr auto name = " macos" sv;
67+ static constexpr auto name = " macos" sv;
6868
69- static bool is (string_view sv) {
70- return name == sv;
71- }
69+ static bool is (string_view sv) {
70+ return name == sv;
71+ }
7272};
7373// ios etc
7474
7575struct wasm : unix {
76- static constexpr auto name = " wasm" sv;
76+ static constexpr auto name = " wasm" sv;
7777
78- static constexpr auto executable_extension = " .html" ;
78+ static constexpr auto executable_extension = " .html" ;
7979
80- static bool is (string_view sv) {
81- return name == sv;
82- }
80+ static bool is (string_view sv) {
81+ return name == sv;
82+ }
8383};
8484
8585} // namespace os
8686
8787namespace build_type {
8888
8989struct debug {
90- static constexpr auto name = " debug" sv;
91- static constexpr auto short_name = " d" sv;
90+ static constexpr auto name = " debug" sv;
91+ static constexpr auto short_name = " d" sv;
9292
93- static bool is (string_view sv) {
94- return name == sv || short_name == sv;
95- }
93+ static bool is (string_view sv) {
94+ return name == sv || short_name == sv;
95+ }
9696};
9797struct minimum_size_release {
98- static constexpr auto name = " minimum_size_release" sv;
99- static constexpr auto short_name = " msr" sv;
98+ static constexpr auto name = " minimum_size_release" sv;
99+ static constexpr auto short_name = " msr" sv;
100100
101- static bool is (string_view sv) {
102- return name == sv || short_name == sv;
103- }
101+ static bool is (string_view sv) {
102+ return name == sv || short_name == sv;
103+ }
104104};
105105struct release_with_debug_information {
106- static constexpr auto name = " release_with_debug_information" sv;
107- static constexpr auto short_name = " rwdi" sv;
106+ static constexpr auto name = " release_with_debug_information" sv;
107+ static constexpr auto short_name = " rwdi" sv;
108108
109- static bool is (string_view sv) {
110- return name == sv || short_name == sv;
111- }
109+ static bool is (string_view sv) {
110+ return name == sv || short_name == sv;
111+ }
112112};
113113struct release {
114- static constexpr auto name = " release" sv;
115- static constexpr auto short_name = " r" sv;
114+ static constexpr auto name = " release" sv;
115+ static constexpr auto short_name = " r" sv;
116116
117- static bool is (string_view sv) {
118- return name == sv || short_name == sv;
119- }
117+ static bool is (string_view sv) {
118+ return name == sv || short_name == sv;
119+ }
120120};
121121
122122} // namespace build_type
123123
124124namespace library_type {
125125
126126struct static_ {
127- static constexpr auto name = " static" sv;
128- static constexpr auto short_name = " st" sv;
127+ static constexpr auto name = " static" sv;
128+ static constexpr auto short_name = " st" sv;
129129};
130130struct shared {
131- static constexpr auto name = " shared" sv;
132- static constexpr auto short_name = " sh" sv;
131+ static constexpr auto name = " shared" sv;
132+ static constexpr auto short_name = " sh" sv;
133133};
134134
135135} // namespace library_type
0 commit comments