forked from gazebosim/gz-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
90 lines (74 loc) · 1.85 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
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
load(
"//ign_bazel:build_defs.bzl",
"IGNITION_FEATURES",
"IGNITION_VISIBILITY",
"generate_include_header",
"ign_config_header",
"ign_export_header",
)
package(
default_visibility = IGNITION_VISIBILITY,
features = IGNITION_FEATURES,
)
licenses(["notice"])
exports_files(["LICENSE"])
PROJECT_NAME = "ignition-utils"
PROJECT_MAJOR = 1
PROJECT_MINOR = 2
PROJECT_PATCH = 0
ign_config_header(
name = "config",
src = "include/ignition/utils/config.hh.in",
cmakelists = ["CMakeLists.txt"],
project_name = PROJECT_NAME,
project_version = (PROJECT_MAJOR, PROJECT_MINOR, PROJECT_PATCH),
)
ign_export_header(
name = "include/ignition/utils/Export.hh",
export_base = "IGNITION_UTILS",
lib_name = "ignition-utils",
visibility = ["//visibility:private"],
)
public_headers_no_gen = glob([
"include/ignition/utils/*.hh",
"include/ignition/utils/detail/*.hh"
])
generate_include_header(
name = "utilshh_genrule",
out = "include/ignition/utils.hh",
hdrs = public_headers_no_gen + [
"include/ignition/utils/config.hh",
"include/ignition/utils/Export.hh",
],
)
public_headers = public_headers_no_gen + [
"include/ignition/utils/config.hh",
"include/ignition/utils/Export.hh",
"include/ignition/utils.hh",
]
cc_library(
name = "ign_utils",
hdrs = public_headers,
includes = ["include"],
)
# Tests
cc_library(
name = "implptr_test_classes",
srcs = [
"test/integration/implptr/implptr_test_classes.cc",
],
hdrs = [
"test/integration/implptr/implptr_test_classes.hh",
],
includes = ["test/integration/implptr"],
deps = ["ign_utils"],
)
cc_test(
name = "ImplPtr_TEST",
srcs = ["test/integration/implptr/ImplPtr_TEST.cc"],
deps = [
":implptr_test_classes",
"@gtest",
"@gtest//:gtest_main",
]
)