File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,21 @@ genrule(
34
34
"include/lightstep/version.h" ,
35
35
],
36
36
cmd = """
37
+ TEMP_DIR=$$(mktemp -d)
38
+ CONFIG_H_OUT=$${PWD}/$(location :include/lightstep/config.h)
39
+ VERSION_H_OUT=$${PWD}/$(location :include/lightstep/version.h)
40
+ LIGHTSTEP_ROOT=$$(dirname $${PWD}/$(location :CMakeLists.txt))
41
+ cd $$TEMP_DIR
37
42
cmake \\
38
43
-DBUILD_TESTING=OFF \\
39
44
-DWITH_GRPC=OFF \\
40
45
-DOPENTRACING_INCLUDE_DIR="" \\
41
46
-DOPENTRACING_LIBRARY="" \\
42
47
-L \\
43
- $$(dirname $(location :CMakeLists.txt))
44
- mv include/lightstep/config.h $(location :include/lightstep/config.h)
45
- mv include/lightstep/version.h $(location :include/lightstep/version.h)
48
+ $$LIGHTSTEP_ROOT
49
+ mv include/lightstep/config.h $$CONFIG_H_OUT
50
+ mv include/lightstep/version.h $$VERSION_H_OUT
51
+ rm -rf $$TEMP_DIR
46
52
""" ,
47
53
)
48
54
You can’t perform that action at this time.
0 commit comments