Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
Provide deltachat/deltachat.h in builddir
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Floris Bruynooghe committed Apr 27, 2019
1 parent 671b891 commit 12ef73c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deltachat/meson.build
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 12ef73c

Please sign in to comment.