As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
function SetBuildOptions(base){ if (PLATFORM == PLATFORM_MSW) { IO.Execute(_T("blahblah.bat")); } else { IO.Execute(_T("blahblah.sh")) }}
$if(PLATFORM == PLATFORM_MSW){ [[ print(_T("ls -l")); ]] }{ [[ print(_T("pwd")); ]] }
Code$if(PLATFORM == PLATFORM_MSW){ [[ print(_T("ls -l")); ]] }{ [[ print(_T("pwd")); ]] }
Have you tried to use http://wiki.codeblocks.org/index.php?title=Global_compiler_variables ?
function SetBuildOptions(base){ if (PLATFORM == PLATFORM_MSW) { IO.Execute(_T("qrc.bat")); base.AddLinkLib(_T("QtCore4")); base.AddLinkLib(_T("QtGui4")); base.AddLinkLib(_T("sqlite3")); } else if (PLATFORM == PLATFORM_GTK) { IO.Execute(_T("qrc.sh")) base.AddLinkLib(_T("QtCore")); base.AddLinkLib(_T("QtGui")); base.AddLinkLib(_T("sqlite3")); }}