1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-03 01:39:16 +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:
Floris Bruynooghe 2019-04-27 12:31:03 +03:00
parent 671b891395
commit 12ef73c8e7
2 changed files with 10 additions and 0 deletions

8
deltachat/meson.build Normal file
View 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)

View file

@ -128,6 +128,8 @@ else
netpgp = netpgp_proj.get_variable('dep')
endif
# Provide deltachat/deltachat.h in the build directory
subdir('deltachat')
# Build the library, stored in `lib`.
subdir('src')