PowerKiKi
30th October 2007, 12:29
Hi,
I came across a problem with qmake and Makefile.
I have this kind of directory structure :
src/NameSpace1/builder.cpp
src/NameSpace2/builder.cpp
Some statements :
There is many namespaces
Each namespace has its own directory
Each namespace is owned by a developper who is responsible for it
Developpers don't know what's in others' namepsaces
As you can see in the sample, some name collisions will happen. There is no problem at the C++ level, but during the compilation stage some targets will have the same name.
For instance:
$> qmake -project "DESTDIR = debug" -o MyApp.pro && qmake
$> make
It will output all object files in debug/. Considering the first example, it will be two same targets "debug/builder.o".
Is there any easy solution to create the same directory structure for object files as the source files ?
It should be something like that:
debug/NameSpace1/builder.o
debug/NameSpace2/builder.o
I came across a problem with qmake and Makefile.
I have this kind of directory structure :
src/NameSpace1/builder.cpp
src/NameSpace2/builder.cpp
Some statements :
There is many namespaces
Each namespace has its own directory
Each namespace is owned by a developper who is responsible for it
Developpers don't know what's in others' namepsaces
As you can see in the sample, some name collisions will happen. There is no problem at the C++ level, but during the compilation stage some targets will have the same name.
For instance:
$> qmake -project "DESTDIR = debug" -o MyApp.pro && qmake
$> make
It will output all object files in debug/. Considering the first example, it will be two same targets "debug/builder.o".
Is there any easy solution to create the same directory structure for object files as the source files ?
It should be something like that:
debug/NameSpace1/builder.o
debug/NameSpace2/builder.o