-
Notifications
You must be signed in to change notification settings - Fork 7
/
BUILD.bazel
59 lines (52 loc) · 1.13 KB
/
BUILD.bazel
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
load("@rules_cc//cc:defs.bzl", "cc_library")
load("//third_party/qt:build_defs.bzl", "qt_binary", "qt_lconvert", "qt_rcc")
load("//tools/project:build_defs.bzl", "project")
project(license = "gpl3-https")
qt_lconvert(
name = "qtox_qms",
srcs = glob(["translations/*.ts"]),
tags = ["qt"],
)
genrule(
name = "translations_qrc",
srcs = ["translations/translations.qrc"],
outs = ["translations/translations_local.qrc"],
cmd = "cp $< $@",
tags = ["qt"],
)
qt_rcc(
name = "translations",
srcs = [":translations_qrc"],
data = [":qtox_qms"],
tags = ["qt"],
)
qt_rcc(
name = "res",
srcs = [
"res.qrc",
"smileys/emojione.qrc",
"smileys/smileys.qrc",
],
data = glob([
"img/**/*",
"res/**/*",
"smileys/*/*",
"themes/**/*",
]),
tags = ["qt"],
)
cc_library(
name = "res_lib",
srcs = [
":res",
":translations",
],
tags = ["qt"],
visibility = ["//qtox:__subpackages__"],
alwayslink = True,
)
qt_binary(
name = "qtox",
visibility = ["//qtox:__subpackages__"],
deps = ["//qtox/src:main"],
)