Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
show compiler flags switches in checklistbox text
tiwag:
following the recent discussion in this thread
http://forums.codeblocks.org/index.php/topic,662.0.html
i added code to the sdk/compileroptions.cpp in order to show the compiler option switches
in the checklistbox text - in the format " descriptive text of option [-switch] "
screenshot
patch: "sdk/compileroptions.cpp"
--- Code: ---Index: sdk/compileroptions.cpp
===================================================================
RCS file: /cvsroot/codeblocks/codeblocks/src/sdk/compileroptions.cpp,v
retrieving revision 1.3
diff -u -r1.3 compileroptions.cpp
--- sdk/compileroptions.cpp 19 May 2005 13:16:16 -0000 1.3
+++ sdk/compileroptions.cpp 4 Aug 2005 14:07:25 -0000
@@ -79,7 +79,7 @@
if (name.IsEmpty() || (option.IsEmpty() && additionalLibs.IsEmpty()))
return;
CompOption* coption = new CompOption;
- coption->name = name;
+ coption->name = name + " [" + option + "]";
coption->option = option;
coption->additionalLibs = additionalLibs;
coption->enabled = false;
--- End code ---
what are you out there thinking about that ?
kagerato:
That was quick :shock: .
Good job; always good to know what options you're really toggling.
David Perfors:
I think it is a good thing to add.
takeshimiya:
This is a must :)
What happened to "Strip all symbols from binary (minimizes size) []" ?
BTW, don't forget always to put _() or _T() to make unicode friendly =)
tiwag:
--- Quote from: takeshimiya on August 04, 2005, 07:23:44 pm ---What happened to "Strip all symbols from binary (minimizes size) []" ?
--- End quote ---
This one would need an extra treatment for Linker-options - but i don't know if this is universal for all compilers - so i didn't implement Linker-options for now.
--- Quote from: takeshimiya on August 04, 2005, 07:23:44 pm ---BTW, don't forget always to put _() or _T() to make unicode friendly =)
--- End quote ---
8)
Navigation
[0] Message Index
[#] Next page
Go to full version