blob: a96a204a79dc1f51672b4fd328fbee3c7c33ca8c [file] [log] [blame]
Nan Zhou7a337042021-07-26 21:05:21 -07001# 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
15project('libcr51sign', 'c',
16 version: '0.1', meson_version: '>=0.57.0',
17 default_options: [
18 'warning_level=2',
19 'werror=false',
20 'cpp_std=c++20'
21 ])
22
23# libssl part of openssl isn't used.
24openssl = dependency('libcrypto')
25
26libcr51sign_headers = include_directories('.')
27
28libcr51sign_lib = library(
29 'libcr51sign',
30 'libcr51sign.c',
31 'libcr51sign_support.c',
32 include_directories: libcr51sign_headers,
33 dependencies: openssl,
34 implicit_include_directories: false,
35 version: meson.project_version(),
36 install: true)
37
38pkg = import('pkgconfig')
39pkg.generate(
40 libcr51sign_lib,
41 name: 'libcr51sign',
42 description: 'CR51 signing verification utilities',
43 requires: openssl,
44 version: meson.project_version())
45
46install_headers(
47 'cr51_image_descriptor.h',
48 'libcr51sign.h',
49 'libcr51sign_support.h',
50 subdir: 'libcr51sign')