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