|
@@ -40,7 +40,7 @@ if (is_linux) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-branding = read_file("atom/app/BRANDING.json", "json")
|
|
|
+branding = read_file("shell/app/BRANDING.json", "json")
|
|
|
electron_project_name = branding.project_name
|
|
|
electron_product_name = branding.product_name
|
|
|
electron_mac_bundle_id = branding.mac_bundle_id
|
|
@@ -286,14 +286,14 @@ if (is_linux) {
|
|
|
|
|
|
source_set("manifests") {
|
|
|
sources = [
|
|
|
- "//electron/atom/app/manifests.cc",
|
|
|
- "//electron/atom/app/manifests.h",
|
|
|
+ "//electron/shell/app/manifests.cc",
|
|
|
+ "//electron/shell/app/manifests.h",
|
|
|
]
|
|
|
|
|
|
include_dirs = [ "//electron" ]
|
|
|
|
|
|
deps = [
|
|
|
- "//electron/atom/common/api:mojo",
|
|
|
+ "//electron/shell/common/api:mojo",
|
|
|
"//printing/buildflags",
|
|
|
"//services/proxy_resolver/public/cpp:manifest",
|
|
|
"//services/service_manager/public/cpp",
|
|
@@ -345,10 +345,10 @@ static_library("electron_lib") {
|
|
|
":electron_version_header",
|
|
|
":manifests",
|
|
|
":resources",
|
|
|
- "atom/common/api:mojo",
|
|
|
"buildflags",
|
|
|
"chromium_src:chrome",
|
|
|
"native_mate",
|
|
|
+ "shell/common/api:mojo",
|
|
|
"//base:base_static",
|
|
|
"//base/allocator:buildflags",
|
|
|
"//chrome/app/resources:platform_locale_settings",
|
|
@@ -465,8 +465,8 @@ static_library("electron_lib") {
|
|
|
|
|
|
if (enable_fake_location_provider) {
|
|
|
sources += [
|
|
|
- "atom/browser/fake_location_provider.cc",
|
|
|
- "atom/browser/fake_location_provider.h",
|
|
|
+ "shell/browser/fake_location_provider.cc",
|
|
|
+ "shell/browser/fake_location_provider.h",
|
|
|
]
|
|
|
}
|
|
|
|
|
@@ -476,15 +476,15 @@ static_library("electron_lib") {
|
|
|
"//ui/accelerated_widget_mac",
|
|
|
]
|
|
|
sources += [
|
|
|
- "atom/browser/ui/views/autofill_popup_view.cc",
|
|
|
- "atom/browser/ui/views/autofill_popup_view.h",
|
|
|
+ "shell/browser/ui/views/autofill_popup_view.cc",
|
|
|
+ "shell/browser/ui/views/autofill_popup_view.h",
|
|
|
]
|
|
|
if (is_mas_build) {
|
|
|
- sources += [ "atom/browser/api/atom_api_app_mas.mm" ]
|
|
|
+ sources += [ "shell/browser/api/atom_api_app_mas.mm" ]
|
|
|
sources -= [
|
|
|
- "atom/browser/auto_updater_mac.mm",
|
|
|
- "atom/common/crash_reporter/crash_reporter_mac.h",
|
|
|
- "atom/common/crash_reporter/crash_reporter_mac.mm",
|
|
|
+ "shell/browser/auto_updater_mac.mm",
|
|
|
+ "shell/common/crash_reporter/crash_reporter_mac.h",
|
|
|
+ "shell/common/crash_reporter/crash_reporter_mac.mm",
|
|
|
]
|
|
|
defines += [ "MAS_BUILD" ]
|
|
|
} else {
|
|
@@ -540,8 +540,8 @@ static_library("electron_lib") {
|
|
|
|
|
|
if ((is_mac && !is_mas_build) || is_win) {
|
|
|
sources += [
|
|
|
- "atom/common/crash_reporter/crash_reporter_crashpad.cc",
|
|
|
- "atom/common/crash_reporter/crash_reporter_crashpad.h",
|
|
|
+ "shell/common/crash_reporter/crash_reporter_crashpad.cc",
|
|
|
+ "shell/common/crash_reporter/crash_reporter_crashpad.h",
|
|
|
]
|
|
|
deps += [ "//third_party/crashpad/crashpad/client" ]
|
|
|
}
|
|
@@ -552,25 +552,25 @@ static_library("electron_lib") {
|
|
|
|
|
|
if (enable_run_as_node) {
|
|
|
sources += [
|
|
|
- "atom/app/node_main.cc",
|
|
|
- "atom/app/node_main.h",
|
|
|
+ "shell/app/node_main.cc",
|
|
|
+ "shell/app/node_main.h",
|
|
|
]
|
|
|
}
|
|
|
|
|
|
if (enable_osr) {
|
|
|
sources += [
|
|
|
- "atom/browser/osr/osr_host_display_client.cc",
|
|
|
- "atom/browser/osr/osr_host_display_client.h",
|
|
|
- "atom/browser/osr/osr_host_display_client_mac.mm",
|
|
|
- "atom/browser/osr/osr_render_widget_host_view.cc",
|
|
|
- "atom/browser/osr/osr_render_widget_host_view.h",
|
|
|
- "atom/browser/osr/osr_video_consumer.cc",
|
|
|
- "atom/browser/osr/osr_video_consumer.h",
|
|
|
- "atom/browser/osr/osr_view_proxy.cc",
|
|
|
- "atom/browser/osr/osr_view_proxy.h",
|
|
|
- "atom/browser/osr/osr_web_contents_view.cc",
|
|
|
- "atom/browser/osr/osr_web_contents_view.h",
|
|
|
- "atom/browser/osr/osr_web_contents_view_mac.mm",
|
|
|
+ "shell/browser/osr/osr_host_display_client.cc",
|
|
|
+ "shell/browser/osr/osr_host_display_client.h",
|
|
|
+ "shell/browser/osr/osr_host_display_client_mac.mm",
|
|
|
+ "shell/browser/osr/osr_render_widget_host_view.cc",
|
|
|
+ "shell/browser/osr/osr_render_widget_host_view.h",
|
|
|
+ "shell/browser/osr/osr_video_consumer.cc",
|
|
|
+ "shell/browser/osr/osr_video_consumer.h",
|
|
|
+ "shell/browser/osr/osr_view_proxy.cc",
|
|
|
+ "shell/browser/osr/osr_view_proxy.h",
|
|
|
+ "shell/browser/osr/osr_web_contents_view.cc",
|
|
|
+ "shell/browser/osr/osr_web_contents_view.h",
|
|
|
+ "shell/browser/osr/osr_web_contents_view_mac.mm",
|
|
|
]
|
|
|
deps += [
|
|
|
"//components/viz/service",
|
|
@@ -586,36 +586,36 @@ static_library("electron_lib") {
|
|
|
deps += [ "//third_party/webrtc/modules/desktop_capture" ]
|
|
|
}
|
|
|
sources += [
|
|
|
- "atom/browser/api/atom_api_desktop_capturer.cc",
|
|
|
- "atom/browser/api/atom_api_desktop_capturer.h",
|
|
|
+ "shell/browser/api/atom_api_desktop_capturer.cc",
|
|
|
+ "shell/browser/api/atom_api_desktop_capturer.h",
|
|
|
]
|
|
|
}
|
|
|
|
|
|
if (enable_view_api) {
|
|
|
sources += [
|
|
|
- "atom/browser/api/views/atom_api_box_layout.cc",
|
|
|
- "atom/browser/api/views/atom_api_box_layout.h",
|
|
|
- "atom/browser/api/views/atom_api_button.cc",
|
|
|
- "atom/browser/api/views/atom_api_button.h",
|
|
|
- "atom/browser/api/views/atom_api_label_button.cc",
|
|
|
- "atom/browser/api/views/atom_api_label_button.h",
|
|
|
- "atom/browser/api/views/atom_api_layout_manager.cc",
|
|
|
- "atom/browser/api/views/atom_api_layout_manager.h",
|
|
|
- "atom/browser/api/views/atom_api_md_text_button.cc",
|
|
|
- "atom/browser/api/views/atom_api_md_text_button.h",
|
|
|
- "atom/browser/api/views/atom_api_resize_area.cc",
|
|
|
- "atom/browser/api/views/atom_api_resize_area.h",
|
|
|
- "atom/browser/api/views/atom_api_text_field.cc",
|
|
|
- "atom/browser/api/views/atom_api_text_field.h",
|
|
|
+ "shell/browser/api/views/atom_api_box_layout.cc",
|
|
|
+ "shell/browser/api/views/atom_api_box_layout.h",
|
|
|
+ "shell/browser/api/views/atom_api_button.cc",
|
|
|
+ "shell/browser/api/views/atom_api_button.h",
|
|
|
+ "shell/browser/api/views/atom_api_label_button.cc",
|
|
|
+ "shell/browser/api/views/atom_api_label_button.h",
|
|
|
+ "shell/browser/api/views/atom_api_layout_manager.cc",
|
|
|
+ "shell/browser/api/views/atom_api_layout_manager.h",
|
|
|
+ "shell/browser/api/views/atom_api_md_text_button.cc",
|
|
|
+ "shell/browser/api/views/atom_api_md_text_button.h",
|
|
|
+ "shell/browser/api/views/atom_api_resize_area.cc",
|
|
|
+ "shell/browser/api/views/atom_api_resize_area.h",
|
|
|
+ "shell/browser/api/views/atom_api_text_field.cc",
|
|
|
+ "shell/browser/api/views/atom_api_text_field.h",
|
|
|
]
|
|
|
}
|
|
|
|
|
|
if (enable_basic_printing) {
|
|
|
sources += [
|
|
|
- "atom/browser/printing/print_preview_message_handler.cc",
|
|
|
- "atom/browser/printing/print_preview_message_handler.h",
|
|
|
- "atom/renderer/printing/print_render_frame_helper_delegate.cc",
|
|
|
- "atom/renderer/printing/print_render_frame_helper_delegate.h",
|
|
|
+ "shell/browser/printing/print_preview_message_handler.cc",
|
|
|
+ "shell/browser/printing/print_preview_message_handler.h",
|
|
|
+ "shell/renderer/printing/print_render_frame_helper_delegate.cc",
|
|
|
+ "shell/renderer/printing/print_render_frame_helper_delegate.h",
|
|
|
]
|
|
|
}
|
|
|
|
|
@@ -711,7 +711,7 @@ if (is_mac) {
|
|
|
if (!is_mas_build) {
|
|
|
deps += [ ":electron_crashpad_helper" ]
|
|
|
}
|
|
|
- info_plist = "atom/common/resources/mac/Info.plist"
|
|
|
+ info_plist = "shell/common/resources/mac/Info.plist"
|
|
|
|
|
|
electron_version = read_file("ELECTRON_VERSION", "trim string")
|
|
|
extra_substitutions = [
|
|
@@ -763,9 +763,9 @@ if (is_mac) {
|
|
|
}
|
|
|
defines = [ "HELPER_EXECUTABLE" ]
|
|
|
sources = filenames.app_sources
|
|
|
- sources += [ "atom/common/atom_constants.cc" ]
|
|
|
+ sources += [ "shell/common/atom_constants.cc" ]
|
|
|
include_dirs = [ "." ]
|
|
|
- info_plist = "atom/renderer/resources/mac/Info.plist"
|
|
|
+ info_plist = "shell/renderer/resources/mac/Info.plist"
|
|
|
extra_substitutions =
|
|
|
[ "ELECTRON_BUNDLE_ID=$electron_mac_bundle_id.helper" ]
|
|
|
ldflags = [
|
|
@@ -806,7 +806,7 @@ if (is_mac) {
|
|
|
sources = filenames.login_helper_sources
|
|
|
include_dirs = [ "." ]
|
|
|
libs = [ "AppKit.framework" ]
|
|
|
- info_plist = "atom/app/resources/mac/loginhelper-Info.plist"
|
|
|
+ info_plist = "shell/app/resources/mac/loginhelper-Info.plist"
|
|
|
extra_substitutions =
|
|
|
[ "ELECTRON_BUNDLE_ID=$electron_mac_bundle_id.loginhelper" ]
|
|
|
}
|
|
@@ -860,7 +860,7 @@ if (is_mac) {
|
|
|
]
|
|
|
sources = [
|
|
|
"$root_out_dir/resources/default_app.asar",
|
|
|
- "atom/browser/resources/mac/electron.icns",
|
|
|
+ "shell/browser/resources/mac/electron.icns",
|
|
|
]
|
|
|
outputs = [
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
@@ -870,7 +870,7 @@ if (is_mac) {
|
|
|
mac_app_bundle("electron_app") {
|
|
|
output_name = electron_product_name
|
|
|
sources = filenames.app_sources
|
|
|
- sources += [ "atom/common/atom_constants.cc" ]
|
|
|
+ sources += [ "shell/common/atom_constants.cc" ]
|
|
|
include_dirs = [ "." ]
|
|
|
deps = [
|
|
|
":electron_app_framework_bundle_data",
|
|
@@ -879,7 +879,7 @@ if (is_mac) {
|
|
|
if (is_mas_build) {
|
|
|
deps += [ ":electron_login_helper_app" ]
|
|
|
}
|
|
|
- info_plist = "atom/browser/resources/mac/Info.plist"
|
|
|
+ info_plist = "shell/browser/resources/mac/Info.plist"
|
|
|
electron_version = read_file("ELECTRON_VERSION", "trim string")
|
|
|
extra_substitutions = [
|
|
|
"ELECTRON_BUNDLE_ID=$electron_mac_bundle_id",
|
|
@@ -893,8 +893,8 @@ if (is_mac) {
|
|
|
} else {
|
|
|
windows_manifest("electron_app_manifest") {
|
|
|
sources = [
|
|
|
- "atom/browser/resources/win/disable_window_filtering.manifest",
|
|
|
- "atom/browser/resources/win/dpi_aware.manifest",
|
|
|
+ "shell/browser/resources/win/disable_window_filtering.manifest",
|
|
|
+ "shell/browser/resources/win/dpi_aware.manifest",
|
|
|
as_invoker_manifest,
|
|
|
common_controls_manifest,
|
|
|
default_compatibility_manifest,
|
|
@@ -937,9 +937,9 @@ if (is_mac) {
|
|
|
if (is_win) {
|
|
|
sources += [
|
|
|
# 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/resource.h",
|
|
|
+ "shell/browser/resources/win/atom.ico",
|
|
|
+ "shell/browser/resources/win/atom.rc",
|
|
|
+ "shell/browser/resources/win/resource.h",
|
|
|
]
|
|
|
|
|
|
libs = [
|