File: debug.qcm

package info (click to toggle)
psi 0.11-9
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 11,036 kB
  • ctags: 19,340
  • sloc: cpp: 130,316; ansic: 26,008; xml: 900; sh: 558; makefile: 225; python: 178; ruby: 21
file content (27 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
-----BEGIN QCMOD-----
name: Debugging support
arg: enable-debug,Enable debugging support
-----END QCMOD-----
*/

//----------------------------------------------------------------------------
// qc_debug
//----------------------------------------------------------------------------
class qc_debug : public ConfObj
{
public:
	qc_debug(Conf *c) : ConfObj(c) {}
	QString name() const { return "debugging support"; }
	QString shortname() const { return "debug"; }
	QString checkString() const { return QString(); }

	bool exec()
	{
		if (conf->getenv("QC_ENABLE_DEBUG").isEmpty())
			conf->addExtra("CONFIG += release");
		else
			conf->addExtra("CONFIG += debug");
		return true;
	}
};