diff options
author | Alan McGovern <alan.mcgovern@gmail.com> | 2011-08-30 03:16:34 +0400 |
---|---|---|
committer | Alan McGovern <alan.mcgovern@gmail.com> | 2011-08-31 13:07:00 +0400 |
commit | 2e70815a3f21cd53b8f16e0f08814ba882958713 (patch) | |
tree | 697cc328d9d98fee2969173b2f1460cb18917c4f /main/src/addins/VBNetBinding | |
parent | 16590c81ca0389dfd172e4e0b5e6f3fda71bc6a1 (diff) |
[Core] Allow projects to add/remove compilation defines
Add some API to ConfigurationParameters to allow symbols which need
to be defined at compile time to be easily modified by other code.
Diffstat (limited to 'main/src/addins/VBNetBinding')
-rw-r--r-- | main/src/addins/VBNetBinding/Project/VBCompilerParameters.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/src/addins/VBNetBinding/Project/VBCompilerParameters.cs b/main/src/addins/VBNetBinding/Project/VBCompilerParameters.cs index 0ad44f32c0..e09c4748d1 100644 --- a/main/src/addins/VBNetBinding/Project/VBCompilerParameters.cs +++ b/main/src/addins/VBNetBinding/Project/VBCompilerParameters.cs @@ -103,6 +103,16 @@ namespace MonoDevelop.VBNetBinding [ItemProperty ("AdditionalParameters")]
string additionalParameters = String.Empty;
+ + public override void AddDefineSymbol (string symbol) + { + DefineConstants += symbol + ";"; + } + + public override void RemoveDefineSymbol (string symbol) + { + DefineConstants = DefineConstants.Replace (symbol + ";", ""); + } public bool DefineDebug { get { return defineDebug; } |