473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to add a response file to the project dependences?

Hi!

I have a VC++.Net project. Project specific defines and include paths
are saved in an external file (response file). I use the file during
compilation giving it by means of the @ compiler option that is
provided through project properties: C/C++ -> Command Line ->
Additional Options.

Now is the problem. After project build if I change the response file,
the compiler does not note this and does not perform a new build. (In
case of a make file this would be simply :(( )

Is it possible to include this file in the dependencies chain so that
the compiler makes a complete build?
Perhaps there are other ideas how to get desired behaviour?
Thanks
Nov 17 '05 #1
2 1060
za*******@yahoo.com (Alexander Zauzolkov) wrote in
news:87**************************@posting.google.c om:
I have a VC++.Net project. Project specific defines and include
paths are saved in an external file (response file). I use the
file during compilation giving it by means of the @ compiler
option that is provided through project properties: C/C++ ->
Command Line -> Additional Options.
I'm guessing you're doing this to share command-line across multiple
projects?
Now is the problem. After project build if I change the response
file, the compiler does not note this and does not perform a new
build. (In case of a make file this would be simply :(( )

Is it possible to include this file in the dependencies chain so
that the compiler makes a complete build?
VC++ build system does not expose a way to specify custom file
dependencies for .cpp files.
Perhaps there are other ideas how to get desired behaviour?


If I'm right about why you're using .rsp files, we expose a way in
VS2005 to share properties across multiple projects. This would
eliminate the need for you creating your own .rsp files.

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Nov 17 '05 #2
Hello!

Thanks for your response.

"Tarek Madkour [MSFT]" <ta****@online.microsoft.com> wrote in message

I'm guessing you're doing this to share command-line across multiple
projects?

You are right. I share these options even across different compilers.
To do this I have a configuration table of a special format, which
will be processed by means a perl script to generate compiler specific
options.

VC++ build system does not expose a way to specify custom file
dependencies for .cpp files.

I have found one way. The script generates additionally a header file,
which will be added to the project (compiler) properties through /FI
option.
That means, once the configuration is changed (it should be added to
the project) the script runs and generates a new header file that will
take part in the dependencies check.
Regards,
Alexander Zauzolkov
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Boni | last post by:
Dear all, I have a solution consisting of multiple projects. The some projects depend on other projects from this solution. So when I compile the solution from IDE all works fine. Now I need...
0
by: Boni | last post by:
Dear all, I have a solution consisting of multiple projects. The some projects depend on other projects from this solution. So when I compile the solution from IDE all works fine. Now I need...
3
by: JoNaS | last post by:
As a lot of us might now, the input file (aka browse button) in html does not allow for multiple file selection or for filtering file types. The File Open dialog used in WinForms allow these things...
9
by: gzinger | last post by:
I have an assembly with some internal methods that I have to access from my web service. I learned that I can use “InternalsVisibleTo” to enable such access. Since I have control over both the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.