mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-03 17:59:19 +02:00
Provide deltachat/deltachat.h in builddir
This makes sure that there is a deltachat/deltacht.h file in the build directory before it is installed. This allows code to to #include <deltachat/deltachat.h> when building against an uninstalled library just like they would for building against an installed library.
This commit is contained in:
parent
671b891395
commit
12ef73c8e7
2 changed files with 10 additions and 0 deletions
8
deltachat/meson.build
Normal file
8
deltachat/meson.build
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# This source directory only exists so we can have a
|
||||||
|
# deltachat/deltachat.h in the build directory. This allows C code to
|
||||||
|
# always `#include <deltachat/deltachat.h>` even to build against an
|
||||||
|
# uninstalled library by -I to point at the build directory.
|
||||||
|
configure_file(input: '../src/deltachat.h',
|
||||||
|
output: 'deltachat.h',
|
||||||
|
copy: true,
|
||||||
|
install: false)
|
|
@ -128,6 +128,8 @@ else
|
||||||
netpgp = netpgp_proj.get_variable('dep')
|
netpgp = netpgp_proj.get_variable('dep')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Provide deltachat/deltachat.h in the build directory
|
||||||
|
subdir('deltachat')
|
||||||
|
|
||||||
# Build the library, stored in `lib`.
|
# Build the library, stored in `lib`.
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue