• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1libteflon = shared_library(
2  'teflon',
3  [ 'target.c' ],
4  include_directories : [ inc_src, inc_util, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_winsys, inc_gallium_drivers ],
5  link_whole : [ libteflon_st ],
6  link_with : [libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri, libgallium ],
7  gnu_symbol_visibility : 'hidden',
8  link_args : ld_args_build_id,
9  dependencies : [
10    driver_etnaviv,
11    idep_nir,
12  ],
13  install : true,
14)
15
16if with_tests
17  tensorflow_lite = shared_library(
18    'tensorflow-lite',
19    [ 'tflite-stub.c' ],
20    include_directories : [ inc_include ],
21    install : false,
22  )
23
24  tflite_flatbuffer_h_name = 'tflite-schema-v2.15.0_generated.h'
25  tflite_flatbuffer_h = custom_target('tflite_flatbuffer.h',
26    output: tflite_flatbuffer_h_name,
27    input: 'tflite-schema-v2.15.0.fbs',
28    command : [
29      prog_flatc,
30      '--cpp',
31      '--cpp-ptr-type', 'std::shared_ptr',
32      '--gen-object-api',
33      '-o', meson.current_build_dir(),
34      '@INPUT@'
35    ],
36  )
37
38  executable(
39    'test_teflon',
40    'test_teflon.cpp',
41    'test_executor.cpp',
42    tflite_flatbuffer_h,
43    dependencies : [ idep_mesautil, idep_gtest ],
44    link_with : [ tensorflow_lite ],
45    include_directories : [ inc_include ],
46  )
47endif
48