blob: c64599d0977915a12336f9e4885c166d4a136c71 [file] [log] [blame]
# Copyright 2021 Google LLC
#
# 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.
libcr51sign_deps = [
dependency('libcrypto'),
]
libcr51sign_cflags = [
'-DOMIT_VARIABLE_ARRAYS',
]
libcr51sign_pre = declare_dependency(
include_directories: libcr51sign_includes,
compile_args: libcr51sign_cflags,
dependencies: libcr51sign_deps)
libcr51sign_lib = library(
'cr51sign',
'libcr51sign.c',
'libcr51sign_support.c',
dependencies: libcr51sign_pre,
implicit_include_directories: false,
version: meson.project_version(),
install: true)
libcr51sign_dep = declare_dependency(
link_with: libcr51sign_lib,
dependencies: libcr51sign_pre)
libcr51sign_reqs = []
foreach dep : libcr51sign_deps
if dep.type_name() == 'pkgconfig'
libcr51sign_reqs += dep
endif
endforeach
import('pkgconfig').generate(
libcr51sign_lib,
name: 'libcr51sign',
description: 'CR51 signing verification utilities',
requires: libcr51sign_reqs,
extra_cflags: libcr51sign_cflags,
version: meson.project_version())