You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cxx-qt-build: return an Interface from CxxQtBuilder (#1287)
* cxx-qt-build: split interface into a separate file
* cxx-qt-build: move write_manifest to export of Interface
This still needs more refactoring later but is a first step.
* cxx-qt-build: move write of exported include directories to interface
* cxx-qt-build: store manifest and dependencies in Interface for now
This allows export() to have no args meaning we can return an Interface
from the compile command next.
* cxx-qt-build: return an Interface rather than taking as input
* cxx-qt-build: check the links key when exporting
* cxx-qt-build: remove CxxQtBuilder::library instead use new and export
* cxx-qt-build: Add CXX-style automatic inclusion of header files
We however have two changes compared to CXX:
1. We allow you to change the root of the automatic include directory.
2. We allow you to include additional directories.
Both of these changes are there to accomodate crates like cxx-qt-lib,
that want to use e.g. `<cxx-qt-lib/qstring.h>` instead of
`<cxx-qt-lib/include/qstring.h>`.
Also cxx-qt-lib generates a definitions header which we need to include.
* cxx-qt-build: Remove Interface::export_include_dir
This is no longer needed.
Also clean up some documentation on the API.
* Only allow exporting a single Interface
The function will now panic if it is called multiple times.
---------
Co-authored-by: Andrew Hayzen <[email protected]>
0 commit comments