1# Description: 2# TensorFlow Lite minimal example. 3 4load("//tensorflow/lite:build_def.bzl", "tflite_linkopts") 5 6package( 7 default_visibility = ["//visibility:public"], 8 licenses = ["notice"], # Apache 2.0 9) 10 11cc_binary( 12 name = "minimal", 13 srcs = [ 14 "minimal.cc", 15 ], 16 linkopts = tflite_linkopts() + select({ 17 "//tensorflow:android": [ 18 "-pie", # Android 5.0 and later supports only PIE 19 "-lm", # some builtin ops, e.g., tanh, need -lm 20 ], 21 "//conditions:default": [], 22 }), 23 deps = [ 24 "//tensorflow/lite:framework", 25 "//tensorflow/lite/kernels:builtin_ops", 26 ], 27) 28