Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jellefoks committed Jan 16, 2024
1 parent 533296a commit 132e6a5
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 41 deletions.
1 change: 1 addition & 0 deletions third_party/abseil-cpp/absl/base/internal/raw_logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#if defined(STARBOARD)
#include "starboard/log.h"
#endif

// We know how to perform low-level writes to stderr in POSIX and Windows. For
// these platforms, we define the token ABSL_LOW_LEVEL_WRITE_SUPPORTED.
// Much of raw_logging.cc becomes a no-op when we can't output messages,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2017 The Abseil Authors.
// Copyright 2024 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// This file is a Posix-specific part of spinlock_wait.cc

// This file is a Starboard-specific part of spinlock_wait.cc

#if defined(STARBOARD)
#include "starboard/thread.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ TEST(IntVec, PopBackNoOverflow) {
EXPECT_EQ(v.size(), 0u);
}

// ABSL_BASE_INTERNAL_EXPECT_FAIL doesn't work (yet) for
// TODO(b/320478127): ABSL_BASE_INTERNAL_EXPECT_FAIL doesn't work (yet) for
// googletest in Cobalt.
#if !defined(STARBOARD)
TEST(IntVec, AtThrows) {
Expand Down
4 changes: 2 additions & 2 deletions third_party/abseil-cpp/absl/log/check_test_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ TEST(CHECKTest, TestCheckInMethod) {
v.MethodWithCheck(1);
}

// EXPECT_DEATH_IF_SUPPORTED() doesn't work with HasSubstr() (yet) for
// googletest in Cobalt.
// TODO(b/320478127): EXPECT_DEATH_IF_SUPPORTED() doesn't work with HasSubstr()
// (yet) for googletest in Cobalt.
#if !defined(STARBOARD)

TEST(CHECKDeathTest, TestUserDefinedStreaming_DISABLED) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ TEST(StderrLogSinkDeathTest, ErrorMessagesInStderr) {
"ERROR message");
}

// EXPECT_DEATH_IF_SUPPORTED() doesn't work with AllOf() (yet) for googletest
// in Cobalt.
// TODO(b/320478127): EXPECT_DEATH_IF_SUPPORTED() doesn't work with AllOf()
// (yet) for googletest in Cobalt.
#if !defined(STARBOARD)

TEST(StderrLogSinkDeathTest, FatalMessagesInStderr_DISBALED) {
Expand Down
4 changes: 4 additions & 0 deletions third_party/abseil-cpp/absl/synchronization/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ absl_test("kernel_timeout_internal_test") {
}

absl_source_set("synchronization") {
# Synchronization is not Starboardized since at this time it's banned for use
# in Chromium code.
if (!use_cobalt_customizations) {
sources = [
"barrier.cc",
Expand Down Expand Up @@ -92,6 +94,8 @@ absl_source_set("synchronization") {
}

absl_test("waiter_test") {
# Synchronization is not Starboardized since at this time it's banned for use
# in Chromium code.
if (!use_cobalt_customizations) {
sources = [ "internal/waiter_test.cc" ]
deps = [
Expand Down
15 changes: 9 additions & 6 deletions third_party/boringssl/BUILD.generated.gni
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ crypto_sources = [
"src/crypto/base64/base64.c",
"src/crypto/bio/bio.c",
"src/crypto/bio/bio_mem.c",
"src/crypto/bio/connect.c",
"src/crypto/bio/fd.c",
"src/crypto/bio/file.c",
"src/crypto/bio/hexdump.c",
"src/crypto/bio/internal.h",
"src/crypto/bio/pair.c",
"src/crypto/bio/printf.c",
"src/crypto/bio/socket.c",
"src/crypto/bio/socket_helper.c",
"src/crypto/bn_extra/bn_asn1.c",
"src/crypto/bn_extra/convert.c",
Expand Down Expand Up @@ -273,12 +276,12 @@ crypto_sources = [
"src/third_party/fiat/p256_64.h",
]

if (is_native_target_build) {
crypto_sources += [
"src/crypto/bio/connect.c",
"src/crypto/bio/fd.c",
"src/crypto/bio/socket.c",
]
if (is_starboard) {
crypto_sources -= [
"src/crypto/bio/connect.c",
"src/crypto/bio/fd.c",
"src/crypto/bio/socket.c",
]
}

crypto_headers = [
Expand Down
64 changes: 38 additions & 26 deletions third_party/chromium/media/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ config("media_config") {
cflags = [
"/wd4267", # Conversion from 'size_t' to 'type', possible loss of data.
"/wd4715", # Not all control paths return a value.

# Conversion from 'size_t' to 'int' requires a narrowing conversion.
"/wd4838",
]
Expand All @@ -34,11 +35,21 @@ config("media_config") {

config("media_config_public") {
# TODO: Make include_dirs other than the first one private.
include_dirs = [ "//third_party/abseil-cpp", "..", "cobalt", "../../skia" ]
include_dirs = [
"//third_party/abseil-cpp",
"..",
"cobalt",
"../../skia",
]
}

config("external_config") {
include_dirs = [ "//third_party/abseil-cpp", "..", "cobalt", "../../skia" ]
include_dirs = [
"//third_party/abseil-cpp",
"..",
"cobalt",
"../../skia",
]
}

component("media") {
Expand All @@ -63,10 +74,10 @@ component("media") {
"base/decrypt_config.h",
"base/demuxer.cc",
"base/demuxer.h",
"base/demuxer_memory_limit.h",
"base/demuxer_memory_limit_starboard.cc",
"base/demuxer_stream.cc",
"base/demuxer_stream.h",
"base/demuxer_memory_limit.h",
"base/encryption_pattern.cc",
"base/encryption_pattern.h",
"base/encryption_scheme.cc",
Expand All @@ -78,10 +89,10 @@ component("media") {
"base/media_track.h",
"base/media_tracks.cc",
"base/media_tracks.h",
"base/media_util.cc",
"base/media_util.h",
"base/media_url_params.cc",
"base/media_url_params.h",
"base/media_util.cc",
"base/media_util.h",
"base/mime_util.cc",
"base/mime_util.h",
"base/mime_util_internal.cc",
Expand All @@ -104,10 +115,10 @@ component("media") {
"base/text_track_config.h",
"base/video_aspect_ratio.cc",
"base/video_aspect_ratio.h",
"base/video_color_space.cc",
"base/video_color_space.h",
"base/video_codecs.cc",
"base/video_codecs.h",
"base/video_color_space.cc",
"base/video_color_space.h",
"base/video_decoder_config.cc",
"base/video_decoder_config.h",
"base/video_transformation.cc",
Expand Down Expand Up @@ -203,33 +214,34 @@ component("media") {
]

sources += [
"cobalt/base/bind_post_task.h",
"cobalt/base/check.h",
"cobalt/base/check_op.h",
"cobalt/base/cxx17_backports.h",
"cobalt/base/hash/md5.h",
"cobalt/base/notreached.h",
"cobalt/base/types/strong_alias.h",
"cobalt/net/cookies/site_for_cookies.h",

#"cobalt/ui/gfx/hdr_metadata.cc",
"cobalt/ui/gfx/color_space.h",
"cobalt/ui/gfx/color_space_export.h",
"cobalt/ui/gfx/geometry/point.cc",
"cobalt/ui/gfx/geometry/point.h",
"cobalt/ui/gfx/geometry/point3_f.h",
"cobalt/ui/gfx/geometry/point_base.h",
"cobalt/ui/gfx/geometry/rect.h",
"cobalt/ui/gfx/geometry/size_base.h",
"cobalt/ui/gfx/geometry/rect_base_impl.h",
"cobalt/ui/gfx/geometry/vector2d_f.h",
"cobalt/ui/gfx/geometry/rect_base.h",
"cobalt/ui/gfx/geometry/size_f.h",
"cobalt/ui/gfx/geometry/point_f.cc",
"cobalt/ui/gfx/geometry/point_f.h",
"cobalt/ui/gfx/geometry/point.cc",
"cobalt/ui/gfx/geometry/point.h",
"cobalt/ui/gfx/geometry/rect.h",
"cobalt/ui/gfx/geometry/rect_base.h",
"cobalt/ui/gfx/geometry/rect_base_impl.h",
"cobalt/ui/gfx/geometry/size.h",
"cobalt/ui/gfx/geometry/size_base.h",
"cobalt/ui/gfx/geometry/size_f.h",
"cobalt/ui/gfx/geometry/vector2d.h",
"cobalt/ui/gfx/color_space_export.h",
"cobalt/ui/gfx/geometry/vector2d_f.h",
"cobalt/ui/gfx/hdr_metadata.h",
"cobalt/ui/gfx/native_pixmap_handle.h",
#"cobalt/ui/gfx/hdr_metadata.cc",
"cobalt/ui/gfx/color_space.h",
"cobalt/base/notreached.h",
"cobalt/base/cxx17_backports.h",
"cobalt/base/bind_post_task.h",
"cobalt/base/check.h",
"cobalt/base/types/strong_alias.h",
"cobalt/base/hash/md5.h",
"cobalt/base/check_op.h",
"cobalt/net/cookies/site_for_cookies.h",
]

configs -= [ "//starboard/build/config:size" ]
Expand Down

0 comments on commit 132e6a5

Please sign in to comment.