Skip to content

Commit

Permalink
Fix up GN dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidokert committed Sep 17, 2024
1 parent 454b0eb commit 1273c17
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 10 deletions.
10 changes: 8 additions & 2 deletions base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,10 @@ component("base") {
}

if (is_starboard && current_toolchain != host_toolchain) {
deps += [ "//starboard:starboard_group" ]
deps += [
"//starboard/common",
"//starboard:starboard_group"
]
}

# `raw_ptr` cannot be made a component due to CRT symbol issues.
Expand Down Expand Up @@ -2702,7 +2705,10 @@ static_library("base_static") {
deps = [ "//build:chromeos_buildflags" ]

if (is_starboard && current_toolchain != host_toolchain) {
deps += [ "//starboard:starboard_group" ]
deps += [
"//starboard/common",
"//starboard:starboard_group"
]
}

if (is_win) {
Expand Down
1 change: 1 addition & 0 deletions cobalt/debug/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ static_library("debug") {
"//net",
"//net/server:http_server",
"//starboard:starboard_group",
"//starboard/common",
"//third_party/devtools:devtools_frontend_resources",
]

Expand Down
1 change: 1 addition & 0 deletions cobalt/h5vcc/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ static_library("h5vcc") {
"//cobalt/worker",
"//net",
"//starboard:starboard_group",
"//starboard/common",
"//third_party/protobuf:protobuf_lite",
]
if (enable_in_app_dial) {
Expand Down
1 change: 1 addition & 0 deletions cobalt/media/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ component("media") {
"//media",
"//net",
"//starboard:starboard_group",
"//starboard/common",
"//third_party/protobuf:protobuf_lite",
"//ui/gfx:gfx",
"//url",
Expand Down
1 change: 1 addition & 0 deletions cobalt/media/sandbox/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ target(final_executable_type, "web_media_player_sandbox") {
"//cobalt/trace_event",
"//media",
"//starboard:starboard_group",
"//starboard/common",
"//ui/gfx:gfx",
"//url",
]
Expand Down
1 change: 1 addition & 0 deletions media/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ component("media") {
"//build:chromecast_buildflags",
"//build:chromeos_buildflags",
"//net",
"//starboard/common",
"//starboard:starboard_group",
"//third_party/abseil-cpp/absl/types:optional",
"//ui/gfx:gfx",
Expand Down
1 change: 1 addition & 0 deletions starboard/client_porting/eztime/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ target(gtest_target_type, "eztime_test") {
deps = [
":eztime",
"//starboard:starboard_group",
"//starboard/common",
"//testing/gmock",
"//testing/gtest",
]
Expand Down
5 changes: 4 additions & 1 deletion starboard/examples/glclear/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@

target(final_executable_type, "starboard_glclear_example") {
sources = [ "main.cc" ]
deps = [ "//starboard:starboard_group" ]
deps = [
"//starboard:starboard_group",
"//starboard/common",
]
}
5 changes: 4 additions & 1 deletion starboard/examples/window/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ target(final_executable_type, "starboard_window_example") {
testonly = true

sources = [ "main.cc" ]
public_deps = [ "//starboard:starboard_group" ]
public_deps = [
"//starboard:starboard_group",
"//starboard/common",
]
}
10 changes: 9 additions & 1 deletion starboard/loader_app/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ static_library("app_key_files") {
"app_key_files.cc",
"app_key_files.h",
]
deps = [ "//starboard:starboard_group" ]
deps = [
"//starboard:starboard_group",
"//starboard/common",
]
}

if (sb_is_evergreen) {
Expand All @@ -181,6 +184,7 @@ static_library("app_key") {
]
deps = [
"//starboard:starboard_group",
"//starboard/common",
"//third_party/modp_b64",
]
}
Expand Down Expand Up @@ -231,6 +235,7 @@ if (sb_is_evergreen) {
deps = [
":drain_file",
":drain_file_helper",
"//starboard/common",
"//testing/gmock",
"//testing/gtest",
]
Expand Down Expand Up @@ -258,6 +263,7 @@ static_library("installation_manager") {
":pending_restart",
":record_loader_app_status",
"//starboard:starboard_group",
"//starboard/common",
]
}

Expand Down Expand Up @@ -292,6 +298,7 @@ static_library("slot_management") {
":drain_file",
":installation_manager",
"//starboard:starboard_group",
"//starboard/common",
"//starboard/elf_loader",
"//starboard/elf_loader:constants",
"//starboard/elf_loader:sabi_string",
Expand Down Expand Up @@ -322,6 +329,7 @@ if (sb_is_evergreen) {
":installation_store_proto",
":slot_management",
"//starboard:starboard_with_main",
"//starboard/common",
"//starboard/elf_loader:sabi_string",
"//testing/gmock",
"//testing/gtest",
Expand Down
5 changes: 4 additions & 1 deletion third_party/QR-Code-generator/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ static_library("qr_code_generator") {
"cpp/QrSegment.hpp",
]
include_dirs = [ "." ]
deps = [ "//starboard:starboard_group", ]
deps = [
"//starboard/common",
"//starboard:starboard_group",
]
}
5 changes: 4 additions & 1 deletion third_party/abseil-cpp/absl/time/internal/cctz/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ absl_source_set("time_zone") {
]
}
if (is_starboard) {
deps += [ "//starboard:starboard_group" ]
deps += [
"//starboard/common",
"//starboard:starboard_group"
]
}
}
9 changes: 7 additions & 2 deletions third_party/googletest/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ source_set("gtest") {
configs += [ "//build/config/compiler:no_chromium_code" ]

defines = []
deps = []
deps = [
"//starboard/common",
]
public_deps = []
if (is_nacl || !build_with_chromium) {
defines += [ "GTEST_DISABLE_PRINT_STACK_TRACE" ]
Expand Down Expand Up @@ -197,7 +199,10 @@ source_set("gmock") {
"src/googlemock/src/gmock.cc",
]

public_deps = [ ":gtest" ]
public_deps = [
":gtest",
"//starboard/common",
]

public_configs = [ ":gmock_config" ]
}
Expand Down
2 changes: 1 addition & 1 deletion third_party/icu/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ template("generate_icuuc") {
if (is_starboard) {
public_deps = [
"//starboard:starboard_headers_only",
"//starboard/common:common",
"//starboard/common",
]
defines += [
"U_HAVE_NL_LANGINFO_CODESET=0",
Expand Down

0 comments on commit 1273c17

Please sign in to comment.