Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #24497 from KevinGrandon/bug_967516_part_2_device_…
Browse files Browse the repository at this point in the history
…debug_pref

Bug 967516 - Enable DEVICE_DEBUG by default for non production builds
  • Loading branch information
KevinGrandon committed Oct 1, 2014
2 parents 7ccded7 + 2cf5528 commit e1c71d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
23 changes: 13 additions & 10 deletions Makefile
Expand Up @@ -114,16 +114,6 @@ REMOTE_DEBUGGER?=0
# Debug mode for build process
BUILD_DEBUG?=0

ifeq ($(DEVICE_DEBUG),1)
REMOTE_DEBUGGER=1
NO_LOCK_SCREEN=1
SCREEN_TIMEOUT=300
endif

ifeq ($(SIMULATOR),1)
SCREEN_TIMEOUT=0
endif

# We also disable FTU when running in Firefox or in debug mode
ifeq ($(DEBUG),1)
NOFTU=1
Expand Down Expand Up @@ -195,6 +185,19 @@ endif
ifeq ($(PRODUCTION), 1)
GAIA_OPTIMIZE=1
GAIA_APP_TARGET=production
else ifneq ($(DEBUG),1)
# Enable DEVICE_DEBUG for non-production, non-debug builds.
DEVICE_DEBUG=1
endif

ifeq ($(DEVICE_DEBUG),1)
REMOTE_DEBUGGER=1
SCREEN_TIMEOUT=300
endif

ifeq ($(SIMULATOR),1)
SCREEN_TIMEOUT=0
NO_LOCK_SCREEN=1
endif

ifeq ($(DOGFOOD), 1)
Expand Down
3 changes: 2 additions & 1 deletion build/test/integration/build.test.js
Expand Up @@ -363,7 +363,8 @@ suite('Build Integration tests', function() {
var ignoreSettings = [
'apz.force-enable',
'debug.console.enabled',
'developer.menu.enabled'
'developer.menu.enabled',
'screen.timeout'
];
ignoreSettings.forEach(function(key) {
if (commonSettings[key] !== undefined) {
Expand Down

0 comments on commit e1c71d9

Please sign in to comment.