Home | History | Annotate | Download | only in default
      1 # Description:
      2 #   Libraries and kernels for manipulating audio and video using FFmpeg.
      3 #   (https://www.ffmpeg.org)
      4 
      5 licenses(["notice"])  # Apache 2.0
      6 
      7 exports_files(["LICENSE"])
      8 
      9 package(default_visibility = ["//tensorflow:__subpackages__"])
     10 
     11 load("//tensorflow:tensorflow.bzl", "tf_cc_test")
     12 
     13 cc_library(
     14     name = "ffmpeg_lib",
     15     srcs = ["ffmpeg_lib.cc"],
     16     hdrs = [
     17         # Header is shared between implementations.
     18         "//tensorflow/contrib/ffmpeg:ffmpeg_lib.h",
     19     ],
     20     deps = [
     21         "//tensorflow/core:framework_headers_lib",
     22         "//third_party/eigen3",
     23         "@protobuf_archive//:protobuf_headers",
     24     ],
     25 )
     26 
     27 tf_cc_test(
     28     name = "ffmpeg_lib_utility_test",
     29     srcs = ["ffmpeg_lib_utility_test.cc"],
     30     deps = [
     31         ":ffmpeg_lib",
     32         "//tensorflow/core:framework_internal",
     33         "//tensorflow/core:lib",
     34         "//tensorflow/core:test",
     35         "//tensorflow/core:test_main",
     36     ],
     37 )
     38 
     39 tf_cc_test(
     40     name = "ffmpeg_lib_installed_test",
     41     srcs = ["ffmpeg_lib_test.cc"],
     42     args = [
     43         "--should_ffmpeg_be_installed=true",
     44     ],
     45     data = [
     46         "//tensorflow/contrib/ffmpeg:test_data",
     47     ],
     48     tags = [
     49         "local",
     50         "manual",
     51     ],
     52     deps = [
     53         ":ffmpeg_lib",
     54         "//tensorflow/core:framework_internal",
     55         "//tensorflow/core:lib",
     56         "//tensorflow/core:test",
     57     ],
     58 )
     59 
     60 tf_cc_test(
     61     name = "ffmpeg_lib_uninstalled_test",
     62     srcs = ["ffmpeg_lib_test.cc"],
     63     args = [
     64         "--should_ffmpeg_be_installed=false",
     65     ],
     66     tags = [
     67         "local",
     68         "manual",
     69     ],
     70     deps = [
     71         ":ffmpeg_lib",
     72         "//tensorflow/core:framework_internal",
     73         "//tensorflow/core:lib",
     74         "//tensorflow/core:test",
     75     ],
     76 )
     77 
     78 filegroup(
     79     name = "all_files",
     80     srcs = glob(
     81         ["**/*"],
     82         exclude = [
     83             "**/METADATA",
     84             "**/OWNERS",
     85         ],
     86     ),
     87     visibility = ["//tensorflow:__subpackages__"],
     88 )
     89