Skip to content

Commit

Permalink
Merge branch 'master' into fix-mas-build-73
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Mar 7, 2019
2 parents 240e6dd + 5791a2a commit cdcfd02
Show file tree
Hide file tree
Showing 82 changed files with 1,615 additions and 880 deletions.
103 changes: 103 additions & 0 deletions .circleci/config.yml
Expand Up @@ -231,6 +231,14 @@ step-gn-gen-default: &step-gn-gen-default
cd src
gn gen out/Default --args='import("'$GN_CONFIG'") cc_wrapper="'"$SCCACHE_PATH"'"'" $GN_EXTRA_ARGS"
step-gn-check: &step-gn-check
run:
name: GN check
command: |
cd src
gn check out/Default //electron:electron_lib
gn check out/Default //electron:electron_app
step-electron-build: &step-electron-build
run:
name: Electron build
Expand Down Expand Up @@ -568,6 +576,15 @@ steps-checkout: &steps-checkout
- depot_tools
- src

steps-electron-gn-check: &steps-electron-gn-check
steps:
- attach_workspace:
at: .
- *step-depot-tools-add-to-path
- *step-setup-env-for-build
- *step-gn-gen-default
- *step-gn-check

steps-electron-build: &steps-electron-build
steps:
- attach_workspace:
Expand Down Expand Up @@ -857,6 +874,13 @@ jobs:
<<: *env-enable-sccache
<<: *steps-electron-build

linux-x64-debug-gn-check:
<<: *machine-linux-medium
environment:
<<: *env-linux-medium
<<: *env-debug-build
<<: *steps-electron-gn-check

linux-x64-testing:
<<: *machine-linux-2xlarge
environment:
Expand All @@ -865,6 +889,13 @@ jobs:
<<: *env-enable-sccache
<<: *steps-electron-build-for-tests

linux-x64-testing-gn-check:
<<: *machine-linux-medium
environment:
<<: *env-linux-medium
<<: *env-testing-build
<<: *steps-electron-gn-check

linux-x64-chromedriver:
<<: *machine-linux-medium
environment:
Expand Down Expand Up @@ -1005,6 +1036,14 @@ jobs:
<<: *env-enable-sccache
<<: *steps-electron-build

linux-arm64-debug-gn-check:
<<: *machine-linux-medium
environment:
<<: *env-linux-medium
<<: *env-arm64
<<: *env-debug-build
<<: *steps-electron-gn-check

linux-arm64-testing:
<<: *machine-linux-2xlarge
environment:
Expand All @@ -1015,6 +1054,14 @@ jobs:
TRIGGER_ARM_TEST: true
<<: *steps-electron-build-for-tests

linux-arm64-testing-gn-check:
<<: *machine-linux-medium
environment:
<<: *env-linux-medium
<<: *env-arm64
<<: *env-testing-build
<<: *steps-electron-gn-check

linux-arm64-chromedriver:
<<: *machine-linux-medium
environment:
Expand Down Expand Up @@ -1062,6 +1109,20 @@ jobs:
<<: *env-enable-sccache
<<: *steps-electron-build-for-tests

osx-debug-gn-check:
<<: *machine-mac
environment:
<<: *env-machine-mac
<<: *env-debug-build
<<: *steps-electron-gn-check

osx-testing-gn-check:
<<: *machine-mac
environment:
<<: *env-machine-mac
<<: *env-testing-build
<<: *steps-electron-gn-check

osx-chromedriver:
<<: *machine-mac
environment:
Expand Down Expand Up @@ -1096,6 +1157,22 @@ jobs:
<<: *env-enable-sccache
<<: *steps-electron-build-for-tests

mas-debug-gn-check:
<<: *machine-mac
environment:
<<: *env-machine-mac
<<: *env-mas
<<: *env-debug-build
<<: *steps-electron-gn-check

mas-testing-gn-check:
<<: *machine-mac
environment:
<<: *env-machine-mac
<<: *env-mas
<<: *env-testing-build
<<: *steps-electron-gn-check

mas-chromedriver:
<<: *machine-mac
environment:
Expand Down Expand Up @@ -1353,9 +1430,15 @@ workflows:
- linux-x64-debug:
requires:
- linux-checkout
- linux-x64-debug-gn-check:
requires:
- linux-checkout
- linux-x64-testing:
requires:
- linux-checkout
- linux-x64-testing-gn-check:
requires:
- linux-checkout
- linux-x64-testing-tests:
requires:
- linux-x64-testing
Expand All @@ -1380,9 +1463,15 @@ workflows:
- linux-arm64-debug:
requires:
- linux-checkout
- linux-arm64-debug-gn-check:
requires:
- linux-checkout
- linux-arm64-testing:
requires:
- linux-checkout
- linux-arm64-testing-gn-check:
requires:
- linux-checkout

build-mac:
jobs:
Expand All @@ -1391,6 +1480,13 @@ workflows:
requires:
- mac-checkout

- osx-debug-gn-check:
requires:
- mac-checkout
- osx-testing-gn-check:
requires:
- mac-checkout

- osx-testing-tests:
requires:
- osx-testing
Expand All @@ -1399,6 +1495,13 @@ workflows:
requires:
- mac-checkout

- mas-debug-gn-check:
requires:
- mac-checkout
- mas-testing-gn-check:
requires:
- mac-checkout

- mas-testing-tests:
requires:
- mas-testing
Expand Down
20 changes: 16 additions & 4 deletions .eslintrc.json
@@ -1,21 +1,33 @@
{
"extends": "standard",
"parser": "typescript-eslint-parser",
"plugins": ["typescript"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"env": {
"browser": true
},
"rules": {
"no-var": "error",
"no-unused-vars": 0,
"no-global-assign": 0,
"typescript/no-unused-vars": "error",
"@typescript-eslint/no-unused-vars": ["error", {
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}],
"prefer-const": ["error", {
"destructuring": "all"
}]
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
}
},
"overrides": [
{
"files": "*.js",
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}
48 changes: 30 additions & 18 deletions BUILD.gn
Expand Up @@ -326,13 +326,13 @@ static_library("electron_lib") {

deps = [
":atom_js2c",
":resources",
"buildflags",
"chromium_src:chrome",
"manifests",
"native_mate",
"//base",
"//base:base_static",
"//base:i18n",
"//base/allocator:buildflags",
"//chrome/app/resources:platform_locale_settings",
"//components/certificate_transparency",
"//components/net_log",
Expand All @@ -341,10 +341,12 @@ static_library("electron_lib") {
"//components/spellcheck/renderer",
"//components/viz/host",
"//components/viz/service",
"//content/public/app:both",
"//content/public/browser",
"//content/public/child",
"//content/public/common:service_names",
"//content/public/renderer",
"//content/public/utility",
"//device/bluetooth",
"//gin",
"//media/capture/mojom:video_capture",
"//media/mojo/interfaces",
Expand All @@ -354,7 +356,9 @@ static_library("electron_lib") {
"//ppapi/host",
"//ppapi/proxy",
"//ppapi/shared_impl",
"//printing/buildflags",
"//services/audio/public/mojom:constants",
"//services/device/public/cpp/geolocation",
"//services/device/public/mojom",
"//services/proxy_resolver:lib",
"//services/video_capture/public/mojom:constants",
Expand All @@ -369,8 +373,17 @@ static_library("electron_lib") {
"//third_party/widevine/cdm:headers",
"//ui/events:dom_keycode_converter",
"//ui/gl",
"//ui/native_theme",
"//ui/shell_dialogs",
"//ui/views",
"//v8",
"//v8:v8_libplatform",
]

public_deps = [
"//base",
"//base:i18n",
"//content/public/app:both",
]

include_dirs = [
Expand Down Expand Up @@ -485,9 +498,6 @@ static_library("electron_lib") {
"//device/bluetooth",
"//ui/events/devices/x11",
"//ui/events/platform/x11",
"//ui/native_theme",
"//ui/views/controls/webview",
"//ui/wm",
]
configs += [ ":gio_unix" ]
defines += [
Expand All @@ -499,9 +509,20 @@ static_library("electron_lib") {
}
if (is_win) {
libs += [ "dwmapi.lib" ]
deps += [
"//third_party/breakpad:breakpad_handler",
"//third_party/breakpad:breakpad_sender",
"//ui/native_theme:native_theme_browser",
"//ui/wm/public",
]
public_deps += [ "//sandbox/win:sandbox" ]
}
if (is_linux || is_win) {
deps += [ "//third_party/breakpad:client" ]
deps += [
"//third_party/breakpad:client",
"//ui/views/controls/webview",
"//ui/wm",
]
include_dirs += [ "//third_party/breakpad" ]
}

Expand Down Expand Up @@ -866,6 +887,7 @@ if (is_mac) {
":electron_lib",
":packed_resources",
"//content:sandbox_helper_win",
"//electron/buildflags",
"//ui/strings",
]

Expand Down Expand Up @@ -894,17 +916,7 @@ if (is_mac) {
# TODO: we should be generating our .rc files more like how chrome does
"atom/browser/resources/win/atom.ico",
"atom/browser/resources/win/atom.rc",
"atom/browser/resources/win/resources.h",
]

deps += [
"//third_party/breakpad:breakpad_handler",
"//third_party/breakpad:breakpad_sender",
"//ui/native_theme:native_theme_browser",
"//ui/shell_dialogs",
"//ui/views/controls/webview",
"//ui/wm",
"//ui/wm/public",
"atom/browser/resources/win/resource.h",
]

libs = [
Expand Down
4 changes: 2 additions & 2 deletions DEPS
Expand Up @@ -10,9 +10,9 @@ gclient_gn_args = [

vars = {
'chromium_version':
'73.0.3683.61',
'73.0.3683.68',
'node_version':
'fac6d766c143db8db05bb3b0c0871df8f032363c',
'70a78f07b1c4d53f3da462b08cef42a4ff8f949f',

'boto_version': 'f7574aa6cc2c819430c1f05e9a1a1a666ef8169b',
'pyyaml_version': '3.12',
Expand Down
2 changes: 1 addition & 1 deletion ELECTRON_VERSION
@@ -1 +1 @@
6.0.0-nightly.20190227
6.0.0-nightly.20190307
2 changes: 2 additions & 0 deletions appveyor.yml
Expand Up @@ -56,6 +56,8 @@ build_script:
- cd src
- ps: $env:BUILD_CONFIG_PATH="//electron/build/args/%GN_CONFIG%.gn"
- gn gen out/Default "--args=import(\"%BUILD_CONFIG_PATH%\") %GN_EXTRA_ARGS%"
- gn check out/Default //electron:electron_lib
- gn check out/Default //electron:electron_app
- ninja -C out/Default electron:electron_app
- gn gen out/ffmpeg "--args=import(\"//electron/build/args/ffmpeg.gn\") %GN_EXTRA_ARGS%"
- ninja -C out/ffmpeg electron:electron_ffmpeg_zip
Expand Down
4 changes: 2 additions & 2 deletions atom/browser/api/atom_api_app.cc
Expand Up @@ -34,8 +34,8 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/icon_manager.h"
#include "chrome/common/chrome_paths.h"
#include "content/browser/gpu/compositor_util.h"
#include "content/browser/gpu/gpu_data_manager_impl.h"
#include "content/browser/gpu/compositor_util.h" // nogncheck
#include "content/browser/gpu/gpu_data_manager_impl.h" // nogncheck
#include "content/public/browser/browser_accessibility_state.h"
#include "content/public/browser/browser_child_process_host.h"
#include "content/public/browser/child_process_data.h"
Expand Down
4 changes: 2 additions & 2 deletions atom/browser/api/atom_api_browser_window.cc
Expand Up @@ -17,8 +17,8 @@
#include "atom/common/native_mate_converters/value_converter.h"
#include "atom/common/options_switches.h"
#include "base/threading/thread_task_runner_handle.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_owner_delegate.h"
#include "content/browser/renderer_host/render_widget_host_impl.h" // nogncheck
#include "content/browser/renderer_host/render_widget_host_owner_delegate.h" // nogncheck
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "gin/converter.h"
Expand Down

0 comments on commit cdcfd02

Please sign in to comment.