Commit 17327132 authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

Clean up deprecated sources assignment filter in //components/nacl

Remove deprecated_default_sources_assignment_filter and replace
it with explicit is_win, is_mac, etc. sections.

Bug: 1018739
Change-Id: I276656a5128181e9b5c93fc8c93df9fd5d255999
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2445416Reviewed-by: default avatarDerek Schuff <dschuff@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814248}
parent 859443ca
...@@ -4,23 +4,12 @@ ...@@ -4,23 +4,12 @@
import("//components/nacl/features.gni") import("//components/nacl/features.gni")
# This file depends on the legacy global sources assignment filter. It should
# be converted to check target platform before assigning source files to the
# sources variable. Remove this import and set_sources_assignment_filter call
# when the file has been converted. See https://crbug.com/1018739 for details.
import("//build/config/deprecated_default_sources_assignment_filter.gni")
set_sources_assignment_filter(deprecated_default_sources_assignment_filter)
assert(enable_nacl) assert(enable_nacl)
static_library("browser") { static_library("browser") {
sources = [ sources = [
"bad_message.cc", "bad_message.cc",
"bad_message.h", "bad_message.h",
"nacl_broker_host_win.cc",
"nacl_broker_host_win.h",
"nacl_broker_service_win.cc",
"nacl_broker_service_win.h",
"nacl_browser.cc", "nacl_browser.cc",
"nacl_browser.h", "nacl_browser.h",
"nacl_file_host.cc", "nacl_file_host.cc",
...@@ -60,6 +49,15 @@ static_library("browser") { ...@@ -60,6 +49,15 @@ static_library("browser") {
data_deps = [] data_deps = []
if (is_win) {
sources += [
"nacl_broker_host_win.cc",
"nacl_broker_host_win.h",
"nacl_broker_service_win.cc",
"nacl_broker_service_win.h",
]
}
if (is_linux || is_chromeos) { if (is_linux || is_chromeos) {
sources += [ sources += [
"../zygote/nacl_fork_delegate_linux.cc", "../zygote/nacl_fork_delegate_linux.cc",
......
...@@ -6,13 +6,6 @@ import("//build/buildflag_header.gni") ...@@ -6,13 +6,6 @@ import("//build/buildflag_header.gni")
import("//components/nacl/features.gni") import("//components/nacl/features.gni")
import("//mojo/public/tools/bindings/mojom.gni") import("//mojo/public/tools/bindings/mojom.gni")
# This file depends on the legacy global sources assignment filter. It should
# be converted to check target platform before assigning source files to the
# sources variable. Remove this import and set_sources_assignment_filter call
# when the file has been converted. See https://crbug.com/1018739 for details.
import("//build/config/deprecated_default_sources_assignment_filter.gni")
set_sources_assignment_filter(deprecated_default_sources_assignment_filter)
if (enable_nacl) { if (enable_nacl) {
# This is separate so it can be used by ../broker:nacl64. # This is separate so it can be used by ../broker:nacl64.
static_library("minimal") { static_library("minimal") {
...@@ -99,12 +92,16 @@ if (enable_nacl) { ...@@ -99,12 +92,16 @@ if (enable_nacl) {
} }
source_set("debug_exception_handler") { source_set("debug_exception_handler") {
sources = [ sources = []
deps = [ "//base" ]
if (is_win) {
sources += [
"nacl_debug_exception_handler_win.cc", "nacl_debug_exception_handler_win.cc",
"nacl_debug_exception_handler_win.h", "nacl_debug_exception_handler_win.h",
] ]
}
deps = [ "//base" ]
} }
source_set("nacl_error_code") { source_set("nacl_error_code") {
......
...@@ -8,13 +8,6 @@ import("//build/config/nacl/config.gni") ...@@ -8,13 +8,6 @@ import("//build/config/nacl/config.gni")
import("//components/nacl/features.gni") import("//components/nacl/features.gni")
import("//testing/test.gni") import("//testing/test.gni")
# This file depends on the legacy global sources assignment filter. It should
# be converted to check target platform before assigning source files to the
# sources variable. Remove this import and set_sources_assignment_filter call
# when the file has been converted. See https://crbug.com/1018739 for details.
import("//build/config/deprecated_default_sources_assignment_filter.gni")
set_sources_assignment_filter(deprecated_default_sources_assignment_filter)
assert(enable_nacl) assert(enable_nacl)
# This is separate so it can be used by ../broker:nacl64. # This is separate so it can be used by ../broker:nacl64.
...@@ -26,9 +19,6 @@ source_set("minimal") { ...@@ -26,9 +19,6 @@ source_set("minimal") {
"nacl_listener.h", "nacl_listener.h",
"nacl_main.cc", "nacl_main.cc",
"nacl_main_platform_delegate.h", "nacl_main_platform_delegate.h",
"nacl_main_platform_delegate_linux.cc",
"nacl_main_platform_delegate_mac.mm",
"nacl_main_platform_delegate_win.cc",
"nacl_trusted_listener.cc", "nacl_trusted_listener.cc",
"nacl_trusted_listener.h", "nacl_trusted_listener.h",
"nacl_validation_db.h", "nacl_validation_db.h",
...@@ -50,6 +40,18 @@ source_set("minimal") { ...@@ -50,6 +40,18 @@ source_set("minimal") {
"//sandbox", "//sandbox",
"//services/service_manager/public/cpp", "//services/service_manager/public/cpp",
] ]
if (is_win) {
sources += [ "nacl_main_platform_delegate_win.cc" ]
}
if (is_mac) {
sources += [ "nacl_main_platform_delegate_mac.mm" ]
}
if (is_linux || is_chromeos) {
sources += [ "nacl_main_platform_delegate_linux.cc" ]
}
} }
# This exists just to make 'gn check' happy with :minimal and # This exists just to make 'gn check' happy with :minimal and
...@@ -61,11 +63,14 @@ source_set("minimal_content_dummy") { ...@@ -61,11 +63,14 @@ source_set("minimal_content_dummy") {
sources = [ sources = [
"//content/public/common/main_function_params.h", "//content/public/common/main_function_params.h",
"//content/public/common/sandbox_init.h", "//content/public/common/sandbox_init.h",
"//content/public/common/zygote/sandbox_support_linux.h",
] ]
# Deps required by the above headers. # Deps required by the above headers.
deps = [ "//media:media_buildflags" ] deps = [ "//media:media_buildflags" ]
if (is_linux || is_chromeos) {
sources += [ "//content/public/common/zygote/sandbox_support_linux.h" ]
}
} }
source_set("loader") { source_set("loader") {
...@@ -210,7 +215,6 @@ if (is_win && target_cpu == "x86" && current_cpu == "x64") { ...@@ -210,7 +215,6 @@ if (is_win && target_cpu == "x86" && current_cpu == "x64") {
if (is_nacl_nonsfi) { if (is_nacl_nonsfi) {
executable("nacl_helper_nonsfi_nexe") { executable("nacl_helper_nonsfi_nexe") {
output_name = "nacl_helper_nonsfi" output_name = "nacl_helper_nonsfi"
set_sources_assignment_filter([])
sources = [ sources = [
"nacl_helper_linux.cc", "nacl_helper_linux.cc",
"nacl_helper_linux.h", "nacl_helper_linux.h",
...@@ -247,7 +251,6 @@ if (is_nacl_nonsfi) { ...@@ -247,7 +251,6 @@ if (is_nacl_nonsfi) {
} }
source_set("nacl_helper_nonsfi_sandbox") { source_set("nacl_helper_nonsfi_sandbox") {
set_sources_assignment_filter([])
sources = [ sources = [
"nonsfi/nonsfi_sandbox.cc", "nonsfi/nonsfi_sandbox.cc",
"nonsfi/nonsfi_sandbox.h", "nonsfi/nonsfi_sandbox.h",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment