File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,19 @@ def _tensorflow_pip_impl(ctx):
21
21
fail ("Failed to find include path. Did you remember to pip install " +
22
22
"tensorflow?: %s" % include_path .stderr )
23
23
24
- library_filename = "libtensorflow_framework.so.1"
24
+ if "linux" in ctx .os .name :
25
+ library_filename = "libtensorflow_framework.so.1"
26
+ elif "mac" in ctx .os .name :
27
+ library_filename = "libtensorflow_framework.dylib"
28
+
25
29
ctx .symlink ("/" .join ([library_path .stdout .strip (), library_filename ]),
26
30
library_filename )
27
31
ctx .symlink (include_path .stdout .strip (), "include" )
28
32
ctx .file ("BUILD" , """
29
33
cc_library(
30
34
name = "libtensorflow_framework",
31
35
srcs = ["{0}"],
32
- hdrs = glob(["include/**/*.h "]),
36
+ hdrs = glob(["include/**"]),
33
37
includes = ["include"],
34
38
visibility = ["//visibility:public"],
35
39
)
You can’t perform that action at this time.
0 commit comments