forked from eerimoq/moblin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (49 loc) · 1.54 KB
/
Copy pathMakefile
File metadata and controls
60 lines (49 loc) · 1.54 KB
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
SWIFTFORMAT_ARGS = \
--maxwidth 110 \
--swiftversion 5 \
--exclude Moblin/Integrations/Tesla/Protobuf \
--disable docComments \
--ifdef no-indent
SWIFTLINT_ARGS = --strict --quiet
OXFMT_ARGS = "Moblin/RemoteControl/Web"
OXLINT_ARGS = "Moblin/RemoteControl/Web"
PERIPHERY_ARGS = \
--index-exclude "Moblin/Integrations/Tesla/Protobuf/*" \
--index-exclude "**/PrepareLicenseList/**" \
--disable-update-check
CODESPELL_ARGS = \
--skip "*.xcstrings,libsrt.xcframework,VoicesView.swift,TextAlignerSuite.swift" \
--ignore-words-list "inout,froms,soop,medias,deactive,upto,datas,ro"
CODE_FOLDERS += "Common"
CODE_FOLDERS += "Moblin"
CODE_FOLDERS += "Moblin Watch"
CODE_FOLDERS += "Moblin Widget"
CODE_FOLDERS += "Moblin Screen Recording"
CODE_FOLDERS += "MoblinTests"
SHELL = /usr/bin/env bash
all:
style:
swiftformat $(CODE_FOLDERS) $(SWIFTFORMAT_ARGS)
oxfmt $(OXFMT_ARGS)
style-check:
swiftformat $(CODE_FOLDERS) $(SWIFTFORMAT_ARGS) --lint
oxfmt $(OXFMT_ARGS) --check
lint:
swiftlint lint $(SWIFTLINT_ARGS) $(CODE_FOLDERS)
oxlint $(OXLINT_ARGS)
periphery:
periphery scan $(PERIPHERY_ARGS)
spell-check:
codespell $(CODESPELL_ARGS) $(CODE_FOLDERS)
machine-translate:
python3 utils/translate.py Common/Localizable.xcstrings
pack-exported-localizations:
cd Moblin\ Localizations && \
for f in * ; do \
python3 ../utils/xliff.py $$f/Localized\ Contents/*.xliff && \
zip -qr $$f.zip $$f && \
rm -rf $$f ; \
done
generate-web-remote-control-css:
cd Moblin/RemoteControl/Web/ && \
tailwindcss -i <(echo '@import "tailwindcss";') -o css/app.css