1
- load (
2
- "@gz//bazel/skylark:build_defs.bzl" ,
3
- "GZ_FEATURES" ,
4
- "GZ_ROOT" ,
5
- "GZ_VISIBILITY" ,
6
- "gz_export_header" ,
7
- "gz_include_header" ,
8
- )
9
- load (
10
- "@gz//bazel/lint:lint.bzl" ,
11
- "add_lint_tests" ,
12
- )
1
+ load ("@rules_gazebo//gazebo:headers.bzl" , "gz_export_header" )
2
+ load ("@rules_license//rules:license.bzl" , "license" )
13
3
14
4
package (
15
- default_applicable_licenses = [GZ_ROOT + "common:license" ],
16
- features = GZ_FEATURES ,
5
+ default_applicable_licenses = ["//:license" ],
6
+ features = [
7
+ "layering_check" ,
8
+ "parse_headers" ,
9
+ ],
17
10
)
18
11
19
12
public_headers_no_gen = glob ([
@@ -29,54 +22,45 @@ sources = glob(
29
22
test_sources = glob (["src/*_TEST.cc" ])
30
23
31
24
gz_export_header (
32
- name = "include/gz/common/av/Export.hh" ,
25
+ name = "Export" ,
26
+ out = "include/gz/common/av/Export.hh" ,
33
27
export_base = "GZ_COMMON_AV" ,
34
28
lib_name = "gz-common-av" ,
35
- visibility = ["//visibility:private" ],
36
- )
37
-
38
- gz_include_header (
39
- name = "av_hh_genrule" ,
40
- out = "include/gz/common/av.hh" ,
41
- hdrs = public_headers_no_gen + [
42
- "include/gz/common/av/Export.hh" ,
43
- ],
44
29
)
45
30
46
31
public_headers = public_headers_no_gen + [
47
32
"include/gz/common/av/Export.hh" ,
48
- "include/gz/common/av.hh" ,
49
33
]
50
34
51
- cc_library (
52
- name = "av" ,
53
- srcs = sources ,
54
- hdrs = public_headers ,
55
- includes = ["include" ],
56
- visibility = GZ_VISIBILITY ,
57
- deps = [
58
- GZ_ROOT + " common" ,
59
- GZ_ROOT + " utils" ,
60
- "@ffmpeg //:libavcodec " ,
61
- "@ffmpeg//:libavformat " ,
62
- "@ffmpeg//:libavutil " ,
63
- "@ffmpeg//:libswscale " ,
64
- ] ,
65
- )
66
-
67
- [ cc_test (
68
- name = src . replace ( "/" , "_" ). replace ( ".cc" , "" ). replace ( "src_" , "" ),
69
- srcs = [ src ] ,
70
- data = [GZ_ROOT + "common/test:data" ],
71
- env = {
72
- "GZ_BAZEL" : "1" ,
73
- "GZ_BAZEL_PATH " : "common " ,
74
- },
75
- deps = [
76
- ":av" ,
77
- GZ_ROOT + "common/ testing" ,
78
- "@gtest //:gtest_main " ,
79
- ] ,
80
- ) for src in test_sources ]
81
-
82
- add_lint_tests ()
35
+ # cc_library(
36
+ # name = "av",
37
+ # srcs = sources,
38
+ # hdrs = public_headers,
39
+ # includes = ["include"],
40
+ # visibility = ["//visibility:public"] ,
41
+ # deps = [
42
+ # "//:gz- common",
43
+ # "@gz- utils//:ImplPtr ",
44
+ # "@gz-utils //:ExtraTestMacros ",
45
+ # "@ffmpeg//:libavcodec ",
46
+ # "@ffmpeg//:libavformat ",
47
+ # "@ffmpeg//:libavutil ",
48
+ # "@ffmpeg//:libswscale" ,
49
+ # ],
50
+ # )
51
+ #
52
+ # [cc_test(
53
+ # name = src.replace("/", "_").replace(".cc", "").replace("src_", "") ,
54
+ # srcs = [src ],
55
+ # data = ["//test:data"],
56
+ # env = {
57
+ # "GZ_BAZEL ": "1 ",
58
+ # },
59
+ # deps = [
60
+ # ":av",
61
+ # "//testing: testing",
62
+ # "@googletest //:gtest ",
63
+ # "@googletest//:gtest_main" ,
64
+ #
65
+ # ],
66
+ # ) for src in test_sources]
0 commit comments