1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 22:43:17 +02:00

Introduce an include directory for header files

Move all header files to the new `include` directory.
Adapt include directives and build systems to the new directory.

Change-Id: Iaddd6bbfa0624b166d422f665877f096983bf4cf
Signed-off-by: Felix Singer <felix.singer@secunet.com>
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/58622
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:
Thomas Heijligen
2022-04-14 13:50:55 +02:00
committed by Anastasia Klimchuk
parent bfbec45de0
commit 87d7b110d6
28 changed files with 16 additions and 9 deletions

View File

@ -379,10 +379,12 @@ libdir = join_paths(prefix, get_option('libdir'))
mandir = join_paths(prefix, get_option('mandir'))
install_headers([
'libflashrom.h',
'include/libflashrom.h',
],
)
include_dir = include_directories('include')
# core modules needed by both the library and the CLI
srcs += '82802ab.c'
srcs += 'at45db.c'
@ -423,6 +425,7 @@ flashrom = library(
sources : [
srcs,
],
include_directories : include_dir,
soversion : lt_current,
version : lt_version,
dependencies : [
@ -466,7 +469,7 @@ configure_file(
flashrom_dep = declare_dependency(
link_with : flashrom,
include_directories : include_directories('.'),
include_directories : include_dir,
dependencies : deps
)
@ -493,6 +496,7 @@ executable(
'cli_output.c',
'flashrom.c',
],
include_directories : include_dir,
dependencies : [
deps,
],
@ -512,7 +516,7 @@ cmocka_dep = dependency(
required: false
)
flashrom_test_dep = declare_dependency(
include_directories : include_directories('.'),
include_directories : include_dir,
sources : [
srcs,
'cli_common.c',