100 Commits

Author SHA1 Message Date
Simon Hong
02dcecb0c9 Rebranding password_manager_strings.grdp
Also, store generated management_strings.grpd to //brave/components
2019-11-08 15:21:13 +09:00
Simon Hong
5c3d807328 Replace chrome branding strings in management_strings.grdp
This replaces chrome string in brave://management webui page.
2019-11-05 10:36:42 +09:00
Pranjal Jumde
b469064393 Issue 6434: Using vpython for lint 2019-10-28 22:44:18 -07:00
SergeyZhukovsky
e5a18aed13 Improves patches 2019-10-22 10:01:14 -04:00
SergeyZhukovsky
4624bb3988 get API key via define 2019-10-22 10:01:14 -04:00
SergeyZhukovsky
eb1371263c SafetyNet integration 2019-10-22 10:01:14 -04:00
Simon Hong
0232015508
replace strings in andorid_chrome_strings.grd (#6427)
Replace and write to android_chrome_strings.grd in brave core dir.
Then, it is coped as orignal grd in chrome dir.
2019-10-14 21:54:27 +02:00
Brian Clifton
1da5c910f1 Stub out the manifest.json file on Linux
We could update CI to download/unzip/install the CDM binaries (header, manifest, etc)... but that would only be appropriate if we wanted to bundle CDM. We don't intend to bundle Widevine, instead we are distributing using component updater.

Stub needed after Chromium change:

90c6eb5176

commit 90c6eb5176bf1347001dde9edd27aa8b70b74186
Author: John Rummell <jrummell@chromium.org>
Date:   Thu Aug 29 21:07:24 2019 +0000

    Move CDMs into platform specific paths on Linux

    Rather than including the CDMs in the base install directory, move them
    into subdirectories (e.g. Widevine would be located in
    <installdir>/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so).
    This allows the LICENSE and manifest.json file to be bundled with Chrome
    on Linux. Future CL's will use the manifest.json file to determine
    the capabilities of the CDM (rather than having them hardcoded as they
    are today).

    In addition to the unittests below, ran EME browser_tests (both ECK
    and Widevine) to check that the library can be loaded from it's new
    directory, and built "installer" (although I don't know if whatever
    package it creates is installable).

    Bug: 971433
2019-10-09 21:50:09 -04:00
mkarolin
9e5c310249 Workaround for depot_tools update on Windows.
Fixes brave/brave-browser#6001

After updating git submodule depot_tools manually checkout master and
reset to the latest if our version of depot_tools doesn't have the
commit yet that started tracking pylint.bat.

See https://bugs.chromium.org/p/chromium/issues/detail?id=996359

Also, modifies how depot_tools are cleaned on windows in submoduleSync
to avoid getting the 'in use' error.
2019-09-12 20:52:59 -04:00
Pete Miller
b4600e797e Handle missing directory when in 'update branding' stage of build 2019-08-22 14:10:23 -07:00
Pete Miller
f832ebb9cc Overwrite chromium theme/x/common directory for avatar placeholder 2019-08-20 14:06:29 -07:00
SergeyZhukovsky
cda8aba255 copy Android related resources 2019-07-31 19:48:39 +00:00
Michael Smith
6a338a7bad
Merge pull request #5052 from spinda/parallel-jobs
Add --gn and --ninja to npm run build
2019-07-16 14:36:36 -07:00
petemill
eddef11f6d Sync: realtime logging for git sync 2019-07-11 14:41:28 -07:00
petemill
aa2a9a55e6 Apply patches now only selectively resets repo paths and applies patches
Allow switching between brave-core branches and not incurring a lengthy build because all ~400 chromium source files were reset and had patches re-applied.
Instead, only reset target files and apply patches when appropriate: when either the patch file has changed or the chromium source file has been modified.

This is achieved by writing a corresponding .patchinfo file for each .patch file that is applied. This file contains a checksum of the .patch file, as well as a checksum of each target source file that the patch applies to. The checksum is calculated after the patch is applied.

Note that npm run sync -- --init will still always reset and re-apply all patches.
npm run sync -- --all however will run this more selective algorithm.

Also now applies v8 patches
2019-07-11 13:52:10 -07:00
Michael Smith
e378bfbc4b
Add --gn and --ninja to npm run build
Use --gn to pass through ad-hoc gn args. --gn=is_component_build:true
translates to is_component_build=true.

Use --ninja to add command line options for Ninja. --ninja=j:48
translates to -j 48.
2019-07-08 16:13:54 -07:00
PatOnTheBack
669c0edf9f Remove Identical Operand (#5050)
Added `widevineConfig.fakeWidevineCdmLibFilePath`

This fixes a [warning found by lgtm](49c71729b7/files/lib/util.js).
The same operand was used twice in an if statement.
2019-06-28 23:56:21 +09:00
Kyle Hickinson
c423530bbd
Add --xcode_gen option to build command for generating an Xcode workspace
- Adds `gn-project-generators` submodule for generating Xcode projects based on gn gen json output
- Also now displays the current working directory in utils.run
2019-06-18 15:11:27 -04:00
Simon Hong
5afc54419c Fix wrong src directory for widevine sig file generation on Windows
When signing is skipped on Windows, source directory should be output dir.
When signing is enabled, source bin files are located in different dir.
2019-06-13 07:08:36 +09:00
Simon Hong
3f75befaae Enable widevine cdm host verification (#4000)
* Enable widevine cdm host verification

brave_enable_cdm_host_verification build flag is introduced to enable/disable
cdm host verification during the build time. It will be set after checking several
prerequites for verification.

On MacOS, sig file is generated during the `create_dist`
In contrast to MacOS, sig file generation is done during the build step on Windows.
System python is needed for that because sig files can't be generated by python in gn.
It was very hard to use more external modules with python of gn.

Some binaries(ex, brave.exe, chrome.dll and chrome_child.dll) that are used for
cdm host verification are signed in advance to generate sig files from them
when signing is needed on Windows. And that signed files are copied during the
`create_dist` because signing again during the `create_dist` causes mismatch of generated
sig files. With this, sig files can be remained as a valid.
2019-06-12 06:04:03 +01:00
bridiver
70b047a832 add support for --target_os=ios 2019-06-03 13:35:41 -07:00
SergeyZhukovsky
72dc6a6943 Support of mono and modern apks 2019-05-24 12:05:13 -04:00
bridiver
b929567ed4 Add support for building android apk
fix https://github.com/brave/brave-browser/issues/2117
2019-05-08 16:10:39 -07:00
Mihai Plesa
1a5136e134 added cache_dir option to gclient 2019-04-16 11:40:34 +01:00
Simon Hong
ba29472d5b
Revert "Make build step sign binaries and generate widevine sig files on Windows" 2019-04-04 11:05:07 +09:00
Simon Hong
143328b43b
Revert "added widevine steps to pipeline" 2019-04-04 11:00:35 +09:00
Mihai Plesa
491324de83 added widevine steps to pipeline 2019-04-03 19:53:47 +01:00
Simon Hong
bc6de6ccd2 Make build step sign binaries and generate widevine sig files
Signing is moved from `create_dist` step because signed binaries are
needed to generate sig files. And sig files can't be generated by gn
because of python version of depot_tools.
So, build step signes and generates sig files by system python and they
will be used by installer packaging.
2019-04-03 11:29:37 +09:00
Pranjal Jumde
1088f5fc1a Options should be a map. 2019-03-04 18:19:39 -08:00
Pranjal Jumde
fe431f15ae Issue 3334: Fix lint script for uplift requests
script/lint.py uses GetCommonAncestorWithUpstream() returns common ancestor
with the master branch. This function returns the top_commit if the changes
have been pushed to the branch. This change fixes thelint script by passing
a base branch as an argument to the lint script to get the list of files
changed by the commit.

auditors: @bridiver, @mihaiplesa, @bsclifton
2019-03-04 17:49:04 -08:00
Simon Hong
66b7f715d2 Support widevine linux with bundle w/o default shipping
To build with bundling, we should provide widevine lib and header.
gn checkes that two files during the generation.
Header file is used by brave-core to get latest version and
download url. However, lib file isn't used by brave-core.
So, empty fake lib file is added just for gn.
Real cdm lib is downloaded and initialized when user accepts the
use of widevine.
2019-02-13 13:53:08 +09:00
petemill
c2549266e4 update_patches command becomes async 2019-01-24 12:37:34 -08:00
bridiver
5e4705b790 fix header guard 2019-01-22 16:34:42 -07:00
Terry Mancey
cbbf12b97c
Merge pull request #2795 from brave/issues/2794
add support for building/running signed app in development
2019-01-08 14:18:35 +00:00
bridiver
9b8d070ad2 add support for building/running signed app in development
fix https://github.com/brave/brave-browser/issues/2794
2019-01-07 17:17:43 -07:00
bridiver
89dd129810 add lint check for changes 2018-12-26 16:43:02 -07:00
Simon Hong
a01f684d69 Copy brave_behaviors.cc to chrome dir
With this copying, we don't need to modify
chrome/installer/setup/BUILD.gn to use our behaviors.cc file.
2018-11-02 16:27:13 +09:00
Simon Hong
d05c750950 Replace chrome branding on win8 welcome page with brave one 2018-10-26 13:35:48 +09:00
bridiver
9aeb237df8 always reset DEPS without rebasing when running init 2018-10-17 19:45:00 -07:00
Ben Kero
0e94d6653c lib/util.js: Add --with_tags flag to gclient sync
This commit adds the --with_tags flag to gclient sync in the hopes that
doing so will fix the error while building whereby some builds will fail
due to tags not existing in some repository clones.
2018-10-17 00:32:02 -07:00
Henrique Ferreiro
e4804f7845 Fix ninja -k parameter when ignoring compilation errors
`ninja -k 0` ignores all errors, as intended when using
`--ignore_compile_failure`.
2018-10-09 13:07:10 +02:00
bridiver
b390ac4a3c cleanup resources file handling 2018-10-03 21:36:18 -07:00
Jocelyn Liu
3e90d97581
Merge pull request #1389 from brave/webrtc_policy_setting
Copy brave_privacy_page resource folder for WebRTC policy setting
2018-10-02 08:57:31 -07:00
Jocelyn Liu
0f524762a8 Copy brave_privacy_page resource folder for WebRTC policy setting 2018-10-01 17:17:56 -07:00
Simon Hong
e214c6fa3e Introduce --ignore_compile_failure to build script
This option compiles files as many as possible regardless of compile error.
It would be useful when we trigger full build before going to bed.
2018-09-27 08:57:54 +09:00
Brian R. Bondy
ddaeac2de8 Default Brave shields copy html file
Requires: https://github.com/brave/brave-core/pull/436
Fix https://github.com/brave/brave-browser/issues/1288
2018-09-26 13:14:03 -04:00
Simon Hong
6cef6c6f8b Fix missing files during resource copying 2018-09-09 12:33:34 +09:00
Brian R. Bondy
b915275a43 Make sure dir exists when stat'ing
Otherwise an exception is thrown and things fail on an npm run init

Auditors: @bridiver
2018-09-08 00:00:36 -04:00
bridiver
43bb7835e1 use checksum for channel dependent files 2018-09-07 11:42:47 -07:00
bridiver
a42701ec69 only copy theme resources when they actually change
fix #989
2018-09-06 15:56:24 -07:00