Skip to content

Commit

Permalink
Dependencies on switches
Browse files Browse the repository at this point in the history
  • Loading branch information
jellefoks committed Dec 16, 2024
1 parent fc0864c commit 3550f0b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
4 changes: 4 additions & 0 deletions cobalt/browser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ source_set("browser_switches") {
"switches.cc",
"switches.h",
]
deps = [
"//cobalt/css_parser:switches",
"//cobalt/network:switches",
]
public_deps = [ "//starboard:starboard_headers_only" ]
}

Expand Down
12 changes: 10 additions & 2 deletions cobalt/css_parser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ action("css_grammar") {
]
}

source_set("switches") {
has_pedantic_warnings = true
sources = [
"switches.cc",
"switches.h",
]
public_deps = [ "//starboard:starboard_headers_only" ]
}

static_library("css_parser") {
has_pedantic_warnings = true

Expand Down Expand Up @@ -76,8 +85,6 @@ static_library("css_parser") {
"shadow_property_parse_structures.cc",
"shadow_property_parse_structures.h",
"string_pool.h",
"switches.cc",
"switches.h",
"text_decoration_shorthand_property_parse_structures.cc",
"text_decoration_shorthand_property_parse_structures.h",
"transition_shorthand_property_parse_structures.cc",
Expand All @@ -94,6 +101,7 @@ static_library("css_parser") {

deps = [
":css_grammar",
":switches",
"//base",
"//cobalt/base",
"//cobalt/cssom",
Expand Down
13 changes: 11 additions & 2 deletions cobalt/network/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ config("network_all_dependent_config") {
}
}

source_set("switches") {
has_pedantic_warnings = true
sources = [
"switches.cc",
"switches.h",
]
public_deps = [ "//starboard:starboard_headers_only" ]
}


static_library("network") {
has_pedantic_warnings = true

Expand Down Expand Up @@ -74,8 +84,6 @@ static_library("network") {
"socket_address_parser.h",
"starboard/network_system.cc",
"starboard/proxy_config_service.cc",
"switches.cc",
"switches.h",
"url_request_context.cc",
"url_request_context.h",
"url_request_context_getter.cc",
Expand All @@ -86,6 +94,7 @@ static_library("network") {

deps = [
":copy_ssl_certificates",
":switches",
"//cobalt/base",
"//cobalt/build:cobalt_build_id",
"//cobalt/configuration",
Expand Down

0 comments on commit 3550f0b

Please sign in to comment.