1# Copyright 2021 Google LLC 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15libcr51sign_deps = [ 16 dependency('libcrypto'), 17] 18 19libcr51sign_pre = declare_dependency( 20 include_directories: libcr51sign_includes, 21 compile_args: '-DOMIT_VARIABLE_ARRAYS', 22 dependencies: libcr51sign_deps) 23 24libcr51sign_lib = library( 25 'cr51sign', 26 'libcr51sign.c', 27 'libcr51sign_support.c', 28 dependencies: libcr51sign_pre, 29 implicit_include_directories: false, 30 version: meson.project_version(), 31 install: true) 32 33libcr51sign_dep = declare_dependency( 34 link_with: libcr51sign_lib, 35 dependencies: libcr51sign_pre) 36 37libcr51sign_reqs = [] 38foreach dep : libcr51sign_deps 39 if dep.type_name() == 'pkgconfig' 40 libcr51sign_reqs += dep 41 endif 42endforeach 43 44import('pkgconfig').generate( 45 libcr51sign_lib, 46 name: 'libcr51sign', 47 description: 'CR51 signing verification utilities', 48 requires: libcr51sign_reqs, 49 version: meson.project_version()) 50