forked from OpenAtom-Linyaps/linyaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cmake-format.py
107 lines (105 loc) · 3.48 KB
/
.cmake-format.py
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
# SPDX-FileCopyrightText: None
#
# SPDX-License-Identifier: CC0-1.0
with section("parse"):
additional_commands = {
"cpmaddpackage": {
"kwargs": {
"DOWNLOAD_COMMAND": 1,
"DOWNLOAD_NAME": 1,
"DOWNLOAD_NO_EXTRACT": 1,
"DOWNLOAD_ONLY": 1,
"EXCLUDE_FROM_ALL": 1,
"FIND_PACKAGE_ARGUMENTS": 1,
"FORCE": 1,
"GITHUB_REPOSITORY": 1,
"GITLAB_REPOSITORY": 1,
"GIT_REPOSITORY": 1,
"GIT_SHALLOW": 1,
"GIT_TAG": 1,
"HTTP_PASSWORD": 1,
"HTTP_USERNAME": 1,
"NAME": 1,
"NO_CACHE": 1,
"OPTIONS": "+",
"SOURCE_DIR": 1,
"SOURCE_SUBDIR": 1,
"SVN_REPOSITORY": 1,
"SVN_REVISION": 1,
"URL": 1,
"URL_HASH": 1,
"URL_MD5": 1,
"VERSION": 1,
},
"pargs": {"flags": [], "nargs": "*"},
"spelling": "CPMAddPackage",
},
"cpmdeclarepackage": {
"kwargs": {
"DOWNLOAD_COMMAND": 1,
"DOWNLOAD_NAME": 1,
"DOWNLOAD_NO_EXTRACT": 1,
"DOWNLOAD_ONLY": 1,
"EXCLUDE_FROM_ALL": 1,
"FIND_PACKAGE_ARGUMENTS": 1,
"FORCE": 1,
"GITHUB_REPOSITORY": 1,
"GITLAB_REPOSITORY": 1,
"GIT_REPOSITORY": 1,
"GIT_SHALLOW": 1,
"GIT_TAG": 1,
"HTTP_PASSWORD": 1,
"HTTP_USERNAME": 1,
"NAME": 1,
"NO_CACHE": 1,
"OPTIONS": "+",
"SOURCE_DIR": 1,
"SOURCE_SUBDIR": 1,
"SVN_REPOSITORY": 1,
"SVN_REVISION": 1,
"URL": 1,
"URL_HASH": 1,
"URL_MD5": 1,
"VERSION": 1,
},
"pargs": {"flags": [], "nargs": "*"},
"spelling": "CPMDeclarePackage",
},
"cpmfindpackage": {
"kwargs": {
"DOWNLOAD_COMMAND": 1,
"DOWNLOAD_NAME": 1,
"DOWNLOAD_NO_EXTRACT": 1,
"DOWNLOAD_ONLY": 1,
"EXCLUDE_FROM_ALL": 1,
"FIND_PACKAGE_ARGUMENTS": 1,
"FORCE": 1,
"GITHUB_REPOSITORY": 1,
"GITLAB_REPOSITORY": 1,
"GIT_REPOSITORY": 1,
"GIT_SHALLOW": 1,
"GIT_TAG": 1,
"HTTP_PASSWORD": 1,
"HTTP_USERNAME": 1,
"NAME": 1,
"NO_CACHE": 1,
"OPTIONS": "+",
"SOURCE_DIR": 1,
"SOURCE_SUBDIR": 1,
"SVN_REPOSITORY": 1,
"SVN_REVISION": 1,
"URL": 1,
"URL_HASH": 1,
"URL_MD5": 1,
"VERSION": 1,
},
"pargs": {"flags": [], "nargs": "*"},
"spelling": "CPMFindPackage",
},
"cpmgetpackageversion": {"pargs": 2, "spelling": "CPMGetPackageVersion"},
"cpmregisterpackage": {"pargs": 1, "spelling": "CPMRegisterPackage"},
"cpmusepackagelock": {"pargs": 1, "spelling": "CPMUsePackageLock"},
}
with section("format"):
# How wide to allow formatted cmake files
line_width = 80