Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to make a copy of headers in include/level_zero #261

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Maetveis
Copy link
Contributor

This is to allow users consuming the headers from a
clone of the repository to be able to refer to the api headers
the same way as it would be if the level-zero headers were installed.
As in after running this script the following will compile

#include <level_zero/ze_api.h>

when <path-to-repo>/include is part of the include directory.

Symlinks or alternatively wrapper header files could be added that would
forward to the previous location, but I stuck with copies, since the
files are generated anyway and any solution outside of full copies might
have corner cases. (Symlinks are not always supported on windows,
the build system might be grepping in the contents of the header etc.).

This PR also does not deprecate the current location of the headers.

This is to allow users consuming the headers from a
clone of the repository to be able to refer to the api headers
the same way as it would be if the level-zero headers were installed.
As in after running this script the following will compile
```c++
 #include <level_zero/ze_api.h>
```
when `<path-to-repo>/include` is part of the include directory.

Symlinks or alternatively wrapper header files could be added that would
forward to the previous location, but I stuck with copies, since the
files are generated anyway and any solution outside of full copies might
have corner cases. (Symlinks are not always supported on windows,
the build system might be grepping in the contents of the header etc.).

This PR also does not deprecate the current location of the headers.

The copies of the files will be checked in the next commit.

Signed-off-by: gergely.meszaros <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant