This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Compile from IDE
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 09, 2009
09:31 AM
Compile from IDE
Is there any way to determine if a script is being compiled from the IDE? We want to force our managers to use product builds that are marked as official on our build machines, instead of the ones we create for testing on our development machines.
I was wondering if there was a special preprocessor constant defined by the IDE that we could use in a preprocessor condition that would compile a special secition of code that marks the build as test only. If not, is there an environment variable like CL, that would tell the IDE to pass an extra command line argument to the compiler. I know we could do this manually, but I was wondering if there was some automatic way to detect this.
I was wondering if there was a special preprocessor constant defined by the IDE that we could use in a preprocessor condition that would compile a special secition of code that marks the build as test only. If not, is there an environment variable like CL, that would tell the IDE to pass an extra command line argument to the compiler. I know we could do this manually, but I was wondering if there was some automatic way to detect this.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 09, 2009
10:19 AM
I don't think the IDE defines anything special; in general our goal is to minimize the difference between IDE and command-line builds. It would probably be easier to do the reverse by adding something to your build script which defines a variable for your official builds.
(Although if you're tricky, you may be able to simulate your preference by setting a default define and overriding it to empty in your official build. Of course your code can do anything it wants with the #ifdef, so it's probably easier and safer to not expect anything from the IDE - a new release may not pick up the setting.)
(Although if you're tricky, you may be able to simulate your preference by setting a default define and overriding it to empty in your official build. Of course your code can do anything it wants with the #ifdef, so it's probably easier and safer to not expect anything from the IDE - a new release may not pick up the setting.)
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)