Skip to content

Commit

Permalink
Add check for new brave_enable_cdm_host_verification config option
Browse files Browse the repository at this point in the history
If set to `true` via .npmrc, Widevine Host Verification will be enabled for the build
This functionality also requires brave/brave-core#515

Fixes #1310
  • Loading branch information
bsclifton committed Oct 2, 2018
1 parent d95374b commit 6cb4019
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const Config = function () {
this.sccache = getNPMConfig(['sccache'])
this.braveReferralsApiKey = getNPMConfig(['brave_referrals_api_key']) || ''
this.ignore_compile_failure = false
this.braveEnableCdmHostVerification = JSON.parse(getNPMConfig(['brave_enable_cdm_host_verification']) || false)
}

Config.prototype.buildArgs = function () {
Expand Down Expand Up @@ -83,6 +84,7 @@ Config.prototype.buildArgs = function () {
chrome_version_string: this.chromeVersion,
safebrowsing_api_endpoint: this.safeBrowsingApiEndpoint,
brave_referrals_api_key: this.braveReferralsApiKey,
brave_enable_cdm_host_verification: this.braveEnableCdmHostVerification
}

if (process.platform === 'darwin') {
Expand Down

0 comments on commit 6cb4019

Please sign in to comment.