Specifying relative paths for scripts and output
Posted: Thu Feb 09, 2006 3:40 pm
Our build system can be located in any directory on the build computer (depends on version)
In most cases, including all the files, we have set up to use a compiler variable to specify the root directory of the source files.
I have found a couple of issues however with some of the other parts of the build.
1) when i specify the output directory using a compiler variable, the build works fine, but if you try to debug the script it stops saying you need to generate a debug build (I have already build an uncompressed version).
If i hardcode the output directory to the same as the compiler variable, it works fine.
2) included scripts
Our build uses a couple of included scripts that we have written, these are located in the same directory as the main script.
If you edit the mpr file and remove the path for these scripts it opens without a problem, but every time you save the project, the absolute path is saved back in for the script location.
It is not a huge problem at the moment, but as our next release gets closer it will become more so as we will need to keep 2 seperate installations synchronised.
Cheers
In most cases, including all the files, we have set up to use a compiler variable to specify the root directory of the source files.
I have found a couple of issues however with some of the other parts of the build.
1) when i specify the output directory using a compiler variable, the build works fine, but if you try to debug the script it stops saying you need to generate a debug build (I have already build an uncompressed version).
If i hardcode the output directory to the same as the compiler variable, it works fine.
2) included scripts
Our build uses a couple of included scripts that we have written, these are located in the same directory as the main script.
If you edit the mpr file and remove the path for these scripts it opens without a problem, but every time you save the project, the absolute path is saved back in for the script location.
It is not a huge problem at the moment, but as our next release gets closer it will become more so as we will need to keep 2 seperate installations synchronised.
Cheers