1 # Description: 2 # contains parts of TensorFlow that are experimental or unstable and which are not supported. 3 4 licenses(["notice"]) # Apache 2.0 5 6 load( 7 "//tensorflow:tensorflow.bzl", 8 "tf_copts", 9 "tf_cc_binary", 10 ) 11 12 exports_files(["LICENSE"]) 13 14 package(default_visibility = ["//visibility:public"]) 15 16 filegroup( 17 name = "all_files", 18 srcs = glob( 19 ["**/*"], 20 exclude = [ 21 "**/METADATA", 22 "**/OWNERS", 23 ], 24 ), 25 visibility = ["//tensorflow:__subpackages__"], 26 ) 27 28 tf_cc_binary( 29 name = "clock_cycle_profiling", 30 testonly = 1, 31 srcs = ["clock_cycle_profiling_main.cc"], 32 copts = tf_copts(), 33 linkopts = select({ 34 "//tensorflow:android": [ 35 "-pie", 36 "-s", 37 "-landroid", 38 "-ljnigraphics", 39 "-llog", 40 "-lm", 41 "-z defs", 42 "-s", 43 "-Wl,--exclude-libs,ALL", # Exclude syms in all libs from auto export 44 ], 45 "//conditions:default": [], 46 }), 47 linkstatic = 1, 48 visibility = ["//visibility:public"], 49 deps = select({ 50 "//tensorflow:android": [ 51 "//tensorflow/core:android_tensorflow_lib", 52 "//tensorflow/core:android_tensorflow_test_lib", 53 ], 54 "//conditions:default": [ 55 "//tensorflow/core:lib", 56 "//tensorflow/core:framework_internal", 57 "//tensorflow/core:tensorflow", 58 ], 59 }), 60 ) 61