Source code
Revision control
Copy as Markdown
Other Tools
/* -*- Mode: Groovy; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
ext.configureVariantDebugLevel = { variant ->
// Like 'debug' or 'release'.
def buildType = variant.buildType.name
// The default is 'lines,source,vars', which includes debugging information
// that is quite large: roughly 500kb for Fennec. Therefore we remove
// 'vars' unless we're producing a debug build, where it is useful.
if (!'debug'.equals(buildType) || mozconfig.substs.MOZILLA_OFFICIAL) {
variant.javaCompileProvider.get().options.debugOptions.debugLevel = 'lines,source'
}
}