Skip to content
Snippets Groups Projects
Commit 52c34a59 authored by Balasankar "Balu" C's avatar Balasankar "Balu" C
Browse files

Build libtensorflow_lite and use it in spamcheck build

parent 4657acee
No related branches found
No related tags found
2 merge requests!65heptapod#658: intermediate release to test the shift,!64GitLab 14.8
......@@ -145,6 +145,9 @@
pcre2:
remote: "git@dev.gitlab.org:omnibus-mirror/pcre2.git"
alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/pcre2.git"
libtensorflow_lite:
remote: "git@dev.gitlab.org:omnibus-mirror/tensorflow.git"
alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/tensorflow.git"
spamcheck:
remote: "git@dev.gitlab.org:gitlab/spamcheck.git"
alternative: "https://gitlab.com/gitlab-com/gl-security/engineering-and-research/automation-team/spam/spamcheck.git"
#
## Copyright:: Copyright (c) 2021 GitLab Inc.
## License:: Apache License, Version 2.0
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
#
name 'libtensorflow_lite'
version = Gitlab::Version.new('libtensorflow_lite', '2.5.0')
default_version version.print
source git: version.remote
license 'Apache-2.0'
license_file 'LICENSE'
skip_transitive_dependency_licensing true
build do
build_dir = "#{Omnibus::Config.source_dir}/libtensorflow_lite/tflite_build"
command "mkdir -p #{install_dir}/embedded/lib #{build_dir}"
command "cmake #{Omnibus::Config.source_dir}/libtensorflow_lite/tensorflow/lite/c", cwd: build_dir
command "cmake --build . -j #{workers}", cwd: build_dir
move "#{build_dir}/libtensorflowlite_c.*", "#{install_dir}/embedded/lib"
end
......@@ -23,6 +23,8 @@
license 'MIT'
dependency 'libtensorflow_lite'
source git: version.remote
relative_path 'src/gitlab-org/spamcheck'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment