-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHotarubi.sublime-project
154 lines (146 loc) · 4.18 KB
/
Hotarubi.sublime-project
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"folders":
[
{
"path": ".",
"folder_include_patterns": [
"kernel",
"kernel/**",
"scripts",
"scripts/**"
],
"file_exclude_patterns": [
".depends.mf",
"*.d",
"*.o",
"*.o32",
"*.o64",
"*.bin",
"*.elf",
"*.elf32",
"*.elf64",
"*.sw?"
],
/* Sublime has the tendency to mess up by mixing which of
* include/hotarubi and test/hotarubi is the folder and
* which is the symlink */
"follow_symlinks": false
}
],
"settings":
{
"tab_size": 4,
"translate_tabs_to_spaces": false,
"use_tab_stops": true,
"detect_indentation": false,
"todoreview" :
{
"patterns": {
"TODO" : "TODO[\\s]*?:[\\s]*(?P<todo>.*?)(\\*/)?$",
"FIXME": "FIXME[\\s]*?:[\\s]*(?P<fixme>.*?)(\\*/)?$",
"NOTE" : "NOTE[\\s]*?:[\\s]*(?P<note>.*?)(\\*/)?$"
},
"exclude_folders": [
"*.git*",
"doc/*",
"toolchain/*",
"scripts/test/gtest/*",
],
},
},
"build_systems":
[
{
"name": "hotaruby - rake",
"cmd": ["rake"],
"file_regex": "^([^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${project_path}",
"syntax": "Packages/User/Hotarubi.build-language",
"env": { "LANG": "en_US.UTF-8" },
"variants": [
{
"name": "Run",
"file_regex": "^([^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"linux": {
"cmd": [
"xterm", "-e", "rake run:qemu:iso; read"
]
},
"osx": {
"cmd": [
"osascript", "-e",
"tell app \"Terminal\" to do script \"cd $project_path; rake run:qemu:iso\""
]
}
},
{
"name": "Clean",
"cmd": ["rake", "clean"],
"file_regex": "^([^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
},
{
"name": "Clobber",
"cmd": ["rake", "clobber"],
"file_regex": "^([^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
},
{
"name": "Test",
"cmd": ["rake", "test:offline"],
"file_regex": "^([^:]*):([0-9]+):?([0-9]+)?:? (.*)$"
},
{
"name": "ISO",
"cmd": ["rake", "package:iso"],
"file_regex": "^([^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
},
{
"name": "Run - BIOS",
"file_regex": "^([^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"linux": {
"cmd": [
"xterm", "-e", "cd $project_path; rake 'run:qemu:iso[bios]'; read"
]
},
"osx": {
"cmd": [
"osascript", "-e",
"tell app \"Terminal\" to do script \"cd $project_path; rake 'run:qemu:iso[bios]'\""
]
}
},
{
"name": "Run - UEFI",
"file_regex": "^([^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"linux": {
"cmd": [
"xterm", "-e", "cd $project_path; rake 'run:qemu:iso[efi]'; read"
]
},
"osx": {
"cmd": [
"osascript", "-e",
"tell app \"Terminal\" to do script \"cd $project_path; rake 'run:qemu:iso[efi]'\""
]
}
},
],
}
],
"SublimeLinter":
{
"linters": {
"clang": {
"@disable": false,
/* lots of extra flags as clang doesnt define __UINT*_TYPE__
* and the GCC headers rely on them.. */
"extra_flags": "-Wall -Wextra -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-long-long -Wno-variadic-macros -std=gnu++11 -ffreestanding -DKERNEL -D__UINT8_TYPE__=unsigned\\ __INT8_TYPE__ -D__UINT16_TYPE__=unsigned\\ __INT16_TYPE__ -D__UINT32_TYPE__=unsigned\\ __INT32_TYPE__ -D__UINT64_TYPE__=unsigned\\ __INT64_TYPE__ -D__INT_LEAST8_TYPE__=__INT8_TYPE__ -D__INT_LEAST16_TYPE__=__INT16_TYPE__ -D__INT_LEAST32_TYPE__=__INT32_TYPE__ -D__INT_LEAST64_TYPE__=__INT64_TYPE__ -D__INT_FAST8_TYPE__=__INT8_TYPE__ -D__INT_FAST16_TYPE__=__INT16_TYPE__ -D__INT_FAST32_TYPE__=__INT32_TYPE__ -D__INT_FAST64_TYPE__=__INT64_TYPE__ -D__UINT_LEAST8_TYPE__=__UINT8_TYPE__ -D__UINT_LEAST16_TYPE__=__UINT16_TYPE__ -D__UINT_LEAST32_TYPE__=__UINT32_TYPE__ -D__UINT_LEAST64_TYPE__=__UINT64_TYPE__ -D__UINT_FAST8_TYPE__=__UINT8_TYPE__ -D__UINT_FAST16_TYPE__=__UINT16_TYPE__ -D__UINT_FAST32_TYPE__=__UINT32_TYPE__ -D__UINT_FAST64_TYPE__=__UINT64_TYPE__ -D__UINTPTR_TYPE__=unsigned\\ __INTPTR_TYPE__",
"include_dirs": [
"${project}/toolchain/include/c++",
"${project}/toolchain/lib/gcc/x86_64-elf/4.9.2/include",
"${project}/kernel/include",
"${directory}"
]
}
}
}
}