Skip to content

Commit a89a934

Browse files
author
Danijel Domazet
committed
Save meson script which builds TF C API from sources.
1 parent 15ed514 commit a89a934

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

meson.build-build_from_sources

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Build a TensorFlow library
2+
project('TensorFlow Lite C API library', 'c', version : '2.8.0')
3+
4+
# Call a script which will call CMake
5+
script_name = 'tensorflow_build.sh'
6+
script_path = join_paths(meson.current_source_dir(), script_name)
7+
sourcedir_path = meson.current_source_dir()
8+
builddir_path = meson.current_build_dir()
9+
10+
# Custom target to build TensorFlow library
11+
tensorflow_ctg = custom_target('tensorflow_ctg',
12+
command: [script_path, sourcedir_path, builddir_path],
13+
build_always_stale: true,
14+
output: 'libtensorflowlite_c.so')
15+
16+
# Declare dependancy
17+
tensorflow_dep = declare_dependency( link_with: tensorflow_ctg, include_directories: '.')

0 commit comments

Comments
 (0)