170 Commits

Author SHA1 Message Date
bridiver
66f2446724 don't copy java/res 2020-04-02 14:22:55 -07:00
samartnik
b9d5c6051c [Android] Fixes for dublicate resources error on build 2020-03-19 16:04:56 -04:00
samartnik
2415eb18c0 Visual changes for search accelerator button 2020-02-26 15:03:45 -05:00
SergeyZhukovsky
ec6009c121 fixes an app icons in debug mode 2020-02-10 16:09:14 -05:00
SergeyZhukovsky
9e44451e57 Fixes app icon on mono builds 2020-02-07 15:19:07 -05:00
mkarolin
a274f747d2 [Windows] chrome_child.dll is no longer being built.
Chromium change:

d09e3068c8

commit d09e3068c8a4b2d3db6c4cf2759dc0d95f46758d
Author: Chris Davis <chrdavis@microsoft.com>
Date:   Mon Oct 21 23:52:53 2019 +0000

    Reland "Set is_multi_dll_chrome to false by default"

    This is a reland of e0dffd8408545588cd11f68568be26be1e2ad551.
    706934 fixed the compile issue with headless code and the
    issues with the delayloads_unittests have been resolved.

    Original change's description:
    > Set is_multi_dll_chrome to false by default
    >
    > This change sets is_multi_dll_chrome to false by default thus merging
    > chrome.dll and chrome_child.dll to a single dll.  This saves disk space
    > and improves startup performance.  It is also consistent with all other
    > platforms (windows was the only platform the split was enabled by
    > default).
    >
    > Bug: 726150
    > Change-Id: Iade2c7f1bbe696d45ebac7483072f7e2e7e84ab4
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1850272
    > Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
    > Reviewed-by: Will Harris <wfh@chromium.org>
    > Reviewed-by: Nico Weber <thakis@chromium.org>
    > Commit-Queue: Nico Weber <thakis@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#705667}

    Bug: 726150
2020-01-29 07:41:12 -05:00
mkarolin
0ffa5cad6d [Android] android_chrome_strings.grd has moved.
chrome/android/java/strings -> chrome/browser/ui/android/strings

Moved android_brave_strings.grd to the same location.
Moved XTBs as well.

Chromium change:

c5ff0bef24

commit c5ff0bef24795c5e26308674f015ea75cc17225f
Author: Theresa Wellington <twellington@chromium.org>
Date:   Thu Nov 7 02:08:21 2019 +0000

    [Android] Create shared strings module

    Move android_chrome_strings.grd to its own separate build target
    and merge ui widget strings back into android_chrome_strings.grd.

    BUG=1002534
2020-01-29 07:41:12 -05:00
Simon Hong
507dd9cbb7 Replace incognito marker svg file
fix https://github.com/brave/brave-browser/issues/5368
2020-01-23 11:45:10 +09:00
AlexeyBarabash
707bdee1fd Copy res_template dir files for Android build; addresses brave-browser#4837 2020-01-15 16:33:00 +00:00
samartnik
7c3b717c44 Overwrite google default ntp tiles (android) 2020-01-13 11:43:18 -05:00
Simon Hong
d77b5dbccf F/u previous widevine signing refactorings
* Replace config.brave_enable_cdm_host_verification with
  newly introduced config.enableCDMHostVerification()
* Decouple signing and widevine sig file generation
* Fix some typos

F/u https://github.com/brave/brave-browser/pull/7518
Fix https://github.com/brave/brave-browser/issues/7601
2020-01-05 23:50:15 +09:00
bridiver
dd7917326e cleanup signing config 2019-12-31 10:36:05 -07:00
mkarolin
01ccdbe24d Install pywin32 into depot_tools's python.
depot_tools is currently missing pywin32 on Windows which is needed
by build/toolchain/win/tool_wrapper.py.

Fixes brave/brave-browser#7328
2019-12-11 20:22:21 -05:00
mkarolin
6ae091bc36 Updated util.js to copy android XTB files.
Fixes brave/brave-browser#6998
2019-11-27 15:54:07 -05:00
Brian Wignall
58d8c94c06 Fix typo 2019-11-23 22:02:55 -05:00
Jocelyn Liu
8cc6a14bc0 Copy Android night mode resources 2019-11-20 17:28:03 -08:00
mkarolin
0db468cfd9 Moved components_chromium_strings_*.xtb under components 2019-11-18 11:18:44 -05:00
mkarolin
151d255a02 Automatically add .grdp files when adding .grd.
Fixes brave/brave-browser#6907
2019-11-18 11:18:44 -05:00
Emerick Rogul
a54ebec3de Use appropriate icon set on Android 2019-11-15 10:25:52 -05:00
Simon Hong
0b6151c7af Move other component string files from brave/app to brave/components 2019-11-09 08:10:45 +09:00
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