This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
109 lines (98 loc) · 2.3 KB
/
BUILD
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
load(":docs.bzl", "doxygen_archive", "sphinx_archive")
doxygen_archive(
name = "doxy",
srcs = [":CommunicationModuleIncl"],
doxyfile = ":doxy.conf",
)
sphinx_archive(
name = "sphinx",
srcs = [
"CommunicationModule/Readme.rst",
"Readme.rst",
"index.rst",
],
copyright = "2019, Embedded Systems Department University Duisburg Essen",
doxygen_xml_archive = ":doxy",
master_doc = "index",
source_suffix = [".rst"],
version = "v0.1.5",
)
filegroup(
name = "CommunicationModuleSrc",
srcs = glob(
[
"src/**/*.c",
"src/**/*.h",
],
),
)
filegroup(
name = "CommunicationModuleIncl",
srcs = [
"CommunicationModule/CommunicationModule.h",
"CommunicationModule/FrameHeader802154Struct.h",
"CommunicationModule/Mac802154.h",
"CommunicationModule/Mac802154MRFImpl.h",
],
)
exports_files(
glob([
"src/**/*.h",
"src/**/*.c",
]),
visibility = [
"//test:__pkg__",
"//test:__subpackages__",
"@CMock//CMock:__pkg__",
],
)
exports_files(
glob([
"CommunicationModule/*.h",
]),
visibility = [
"//visibility:public",
],
)
cc_library(
name = "CommunicationModule",
srcs = [":CommunicationModuleSrc"],
hdrs = [":CommunicationModuleIncl"],
copts = ["-DDEBUG=0"],
visibility = ["//visibility:public"],
deps = [
"@EmbeddedUtilities//:BitManipulation",
"@EmbeddedUtilities//:Debug",
"@PeripheralInterface",
],
)
cc_library(
name = "CommunicationModuleHdrOnly",
hdrs = [":CommunicationModuleIncl"],
linkstatic = True,
visibility = ["//visibility:public"],
deps = [
"@PeripheralInterface//:PeripheralInterfaceHdrsOnly",
],
)
#########################################
### Packaging for Artifactory ###
#########################################
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
pkg_tar(
name = "pkg",
srcs = [
":BUILD",
":CommunicationModuleIncl",
":CommunicationModuleSrc",
],
extension = "tar.gz",
mode = "0644",
strip_prefix = ".",
deps = [
"//Setup:pkg",
"//configs:pkg",
"//constraints:pkg",
"//platforms:pkg",
],
)