diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2022-09-19 05:38:56 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-09-19 06:34:51 -0400 |
| commit | c11724686c145e8074d46b2289e2a857613ea4a2 (patch) | |
| tree | 5bb93ce4e334fb9b9043468cd7a477a65a96b80c /include | |
| parent | c8d5b43bbcf0bb04d0d20602248c0eb905b2c81f (diff) | |
| download | libgit2-c11724686c145e8074d46b2289e2a857613ea4a2.tar.gz | |
cmake: provide empty experimental.h for non-cmake users
Not everybody builds libgit2 using cmake; provide an `experimental.h`
with no experiments configured for those that do not. To support this,
we also now create compile definitions for experimental functionality,
to supplant that empty `experimental.h`. cmake will continue to generate
the proper `experimental.h` file for use with `make install`.
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/experimental.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/git2/experimental.h b/include/git2/experimental.h new file mode 100644 index 000000000..06435f9a7 --- /dev/null +++ b/include/git2/experimental.h @@ -0,0 +1,20 @@ +/* + * Copyright (C) the libgit2 contributors. All rights reserved. + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ + +#ifndef INCLUDE_experimental_h__ +#define INCLUDE_experimental_h__ + +/* + * This file exists to support users who build libgit2 with a bespoke + * build system and do not use our cmake configuration. Normally, cmake + * will create `experimental.h` from the `experimental.h.in` file and + * will include the generated file instead of this one. For non-cmake + * users, we bundle this `experimental.h` file which will be used + * instead. + */ + +#endif |
