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
include <elektra/kdb.h> #817
Comments
@domhof Is this a 1.0 issue? |
If the alternative “Macro magic to support both inclusion options“ means that we do not need to install each header file twice, then I am for that option. How about creating a link |
What is so bad about installing the files twice? They are not really large... (388K)
You are right, actually we do not need to install them twice. (even the symlink does not seem to be necessary.) We simply internally always use Within the source repo, however, we would need to create a folder called |
It’s not that bad, but I am usually a fan of keeping things small and tidy.
Provided that this solution works, creating an additional subfolder does not sound that bad. I certainly could live with it. |
lets do it |
Includes for <kdb.h> and "kdb.h" were replaced by <elektra/kdb.h> and "elektra/kdb.h". Targeted files: *.h/*.hpp/*.c/*.cpp/*.chs/*.i (including matching files with suffix .in) in folders src, tests, examples, benchmarks. Resolving ElektraInitiative#817 Script used for replacement: replace() { if [[ $(sed -i "s/$2/$3/gw /dev/stdout" $1) ]] then echo "$1" fi } for file in $(find libelektra/src libelektra/tests libelektra/examples libelektra/benchmarks -regex ".*\.\(h\|\(hpp\)\|c\|\(cpp\)\|\(chs\)\|i\)\(\.in\)?"); do replace "$file" '#include <kdb\.h>' '#include <elektra\/kdb\.h>' replace "$file" '#include "kdb\.h"' '#include "elektra\/kdb\.h"' replace "$file" '%include "kdb\.h"' '%include "elektra\/kdb\.h"' done
kdb.h.in moved into subfolder elektra, so that kdb.h can be included by <elektra/kdb.h> and "elektra/kdb.h". The configure_file and install commands in the CMakeLists.txt were moved/updated. For custom target elektra_config_headers the path of kdb.h was updated. Resolving ElektraInitiative#817
Includes for <kdb.h> and "kdb.h" were replaced by <elektra/kdb.h> and "elektra/kdb.h". Targeted files: *.h/*.hpp/*.c/*.cpp/*.chs/*.i (including matching files with suffix .in) in folders src, tests, examples, benchmarks. Resolving ElektraInitiative#817 Script used for replacement: replace() { if [[ $(sed -i "s/$2/$3/gw /dev/stdout" $1) ]] then echo "$1" fi } for file in $(find libelektra/src libelektra/tests libelektra/examples libelektra/benchmarks -regex ".*\.\(h\|\(hpp\)\|c\|\(cpp\)\|\(chs\)\|i\)\(\.in\)?"); do replace "$file" '#include <kdb\.h>' '#include <elektra\/kdb\.h>' replace "$file" '#include "kdb\.h"' '#include "elektra\/kdb\.h"' replace "$file" '%include "kdb\.h"' '%include "elektra\/kdb\.h"' done
kdb.h.in moved into subfolder elektra, so that kdb.h can be included by <elektra/kdb.h> and "elektra/kdb.h". The configure_file and install commands in the CMakeLists.txt were moved/updated. For custom target elektra_config_headers the path of kdb.h was updated. Resolving ElektraInitiative#817
Includes for <kdb.h> and "kdb.h" were replaced by <elektra/kdb.h> and "elektra/kdb.h". Targeted files: *.h/*.hpp/*.c/*.cpp/*.chs/*.i (including matching files with suffix .in) in folders src, tests, examples, benchmarks. Resolving ElektraInitiative#817 Script used for replacement: replace() { if [[ $(sed -i "s/$2/$3/gw /dev/stdout" $1) ]] then echo "$1" fi } for file in $(find libelektra/src libelektra/tests libelektra/examples libelektra/benchmarks -regex ".*\.\(h\|\(hpp\)\|c\|\(cpp\)\|\(chs\)\|i\)\(\.in\)?"); do replace "$file" '#include <kdb\.h>' '#include <elektra\/kdb\.h>' replace "$file" '#include "kdb\.h"' '#include "elektra\/kdb\.h"' replace "$file" '%include "kdb\.h"' '%include "elektra\/kdb\.h"' done
kdb.h.in moved into subfolder elektra, so that kdb.h can be included by <elektra/kdb.h> and "elektra/kdb.h". The configure_file and install commands in the CMakeLists.txt were moved/updated. For custom target elektra_config_headers the path of kdb.h was updated. Resolving ElektraInitiative#817
Includes for <kdb.h> and "kdb.h" were replaced by <elektra/kdb.h> and "elektra/kdb.h". Targeted files: *.h/*.hpp/*.c/*.cpp/*.chs/*.i (including matching files with suffix .in) in folders src, tests, examples, benchmarks. Resolving ElektraInitiative#817 Script used for replacement: replace() { if [[ $(sed -i "s/$2/$3/gw /dev/stdout" $1) ]] then echo "$1" fi } for file in $(find libelektra/src libelektra/tests libelektra/examples libelektra/benchmarks -regex ".*\.\(h\|\(hpp\)\|c\|\(cpp\)\|\(chs\)\|i\)\(\.in\)?"); do replace "$file" '#include <kdb\.h>' '#include <elektra\/kdb\.h>' replace "$file" '#include "kdb\.h"' '#include "elektra\/kdb\.h"' replace "$file" '%include "kdb\.h"' '%include "elektra\/kdb\.h"' done
kdb.h.in moved into subfolder elektra, so that kdb.h can be included by <elektra/kdb.h> and "elektra/kdb.h". The configure_file and install commands in the CMakeLists.txt were moved/updated. For custom target elektra_config_headers the path of kdb.h was updated. Resolving ElektraInitiative#817
I think a big issue here is also that we often use e.g. |
Includes for <kdb.h> and "kdb.h" were replaced by <elektra/kdb.h> and "elektra/kdb.h". Targeted files: *.h/*.hpp/*.c/*.cpp/*.chs/*.i (including matching files with suffix .in) in folders src, tests, examples, benchmarks. Resolving ElektraInitiative#817 Script used for replacement: replace() { if [[ $(sed -i "s/$2/$3/gw /dev/stdout" $1) ]] then echo "$1" fi } for file in $(find libelektra/src libelektra/tests libelektra/examples libelektra/benchmarks -regex ".*\.\(h\|\(hpp\)\|c\|\(cpp\)\|\(chs\)\|i\)\(\.in\)?"); do replace "$file" '#include <kdb\.h>' '#include <elektra\/kdb\.h>' replace "$file" '#include "kdb\.h"' '#include "elektra\/kdb\.h"' replace "$file" '%include "kdb\.h"' '%include "elektra\/kdb\.h"' done
kdb.h.in moved into subfolder elektra, so that kdb.h can be included by <elektra/kdb.h> and "elektra/kdb.h". The configure_file and install commands in the CMakeLists.txt were moved/updated. For custom target elektra_config_headers the path of kdb.h was updated. Resolving ElektraInitiative#817
As discussed in #3813 we do not need any legacy header files. The only supported way to include files should be |
To proceed with this, we have to move all the header files into the |
This issue is a bit outdated. We now have a few decisions that describe what the everything should look like:
There are also some decisions that are tangentially related:
For this issue I'd say the main part is |
Thank you for the feedback, I will continue with that! |
We could install all header files also to
/usr/include/elektra
, which allows us toinclude <elektra/kdb.h>
without any include path.The text was updated successfully, but these errors were encountered: