Skip to content

Commit

Permalink
Merge branch 'main' into maxz-sb16-printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxz-lab authored Dec 13, 2023
2 parents ac088cb + d481619 commit 460d537
Show file tree
Hide file tree
Showing 954 changed files with 21,618 additions and 44,465 deletions.
2 changes: 1 addition & 1 deletion base/i18n/icu_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace i18n {
#if defined(STARBOARD)

bool InitializeICU() {
SbIcuInit();
IcuInit();
return true;
}

Expand Down
4 changes: 3 additions & 1 deletion base/test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ if (!is_starboard) {
}
}

static_library("run_all_unittests") {
# TODO: b/315170518 - Revert to static library after fixing
# symbol visibility issues for windows based modular platform builds.
source_set("run_all_unittests") {
testonly = true
sources = [
"run_all_unittests.cc",
Expand Down
11 changes: 10 additions & 1 deletion build/toolchain/gcc_toolchain.gni
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import("//build/toolchain/goma.gni")
import("//build/toolchain/rbe.gni")
import("//build/toolchain/toolchain.gni")

if (use_cobalt_customizations) {
import("//starboard/build/config/os_definitions.gni")
}

if (is_nacl) {
# To keep NaCl variables out of builds that don't include NaCl, all
# variables defined in nacl/config.gni referenced here should be protected by
Expand Down Expand Up @@ -610,7 +614,12 @@ template("gcc_toolchain") {
if (using_old_compiler) {
link_command = "$ld {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" $start_group_flag @\"$rspfile\" {{solibs}} $end_group_flag {{libs}} $tail_lib_dependencies"
} else {
link_command = "$ld {{ldflags}}${extra_ldflags} {{libs}} -o \"$unstripped_outfile\" $start_group_flag @\"$rspfile\" {{solibs}} $end_group_flag$tail_lib_dependencies"
# Windows based platform modular builds dont link directly with the shared library.
if (is_host_win && sb_is_modular) {
link_command = "$ld {{ldflags}}${extra_ldflags} {{libs}} -o \"$unstripped_outfile\" $start_group_flag @\"$rspfile\" $end_group_flag$tail_lib_dependencies"
} else {
link_command = "$ld {{ldflags}}${extra_ldflags} {{libs}} -o \"$unstripped_outfile\" $start_group_flag @\"$rspfile\" {{solibs}} $end_group_flag$tail_lib_dependencies"
}
}

# Generate a map file to be used for binary size analysis.
Expand Down
34 changes: 0 additions & 34 deletions cobalt/bindings/_env.py

This file was deleted.

7 changes: 6 additions & 1 deletion cobalt/bindings/code_generator_cobalt.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
import os
import sys

import _env # pylint: disable=unused-import
bindings_dir = os.path.join(
os.path.dirname(__file__),
'../../third_party/blink/Source/bindings/scripts')
sys.path.insert(0, bindings_dir)

# pylint:disable=wrong-import-position
from cobalt.bindings import path_generator
from cobalt.bindings.contexts import ContextBuilder
from cobalt.bindings.name_conversion import get_interface_name
Expand Down
1 change: 0 additions & 1 deletion cobalt/bindings/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
dicts that will be used by Jinja in JS bindings generation.
"""

import _env # pylint: disable=unused-import
from cobalt.bindings.name_conversion import capitalize_function_name
from cobalt.bindings.name_conversion import convert_to_cobalt_constant_name
from cobalt.bindings.name_conversion import convert_to_cobalt_enumeration_value
Expand Down
1 change: 0 additions & 1 deletion cobalt/bindings/flatten_idls_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import platform
import unittest

from . import _env # pylint: disable=unused-import
from cobalt.bindings import flatten_idls


Expand Down
7 changes: 7 additions & 0 deletions cobalt/bindings/generate_conversion_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@
from optparse import OptionParser # pylint: disable=deprecated-module
import os
import pickle
import sys

bindings_dir = os.path.join(
os.path.dirname(__file__),
'../../third_party/blink/Source/bindings/scripts')
sys.path.insert(0, bindings_dir)

# pylint:disable=wrong-import-position
from utilities import ComponentInfoProviderCobalt
from utilities import write_file

Expand Down
1 change: 0 additions & 1 deletion cobalt/bindings/idl_compiler_cobalt.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import os
import pickle

import _env # pylint: disable=unused-import
from idl_compiler import IdlCompiler
from utilities import ComponentInfoProviderCobalt
from utilities import idl_filename_to_interface_name
Expand Down
1 change: 0 additions & 1 deletion cobalt/bindings/path_generator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import unittest

from . import _env # pylint: disable=unused-import
from cobalt.bindings.path_generator import PathBuilder


Expand Down
1 change: 0 additions & 1 deletion cobalt/bindings/run_cobalt_bindings_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import argparse
import os
import sys
import _env # pylint: disable=unused-import

from cobalt.bindings.idl_compiler_cobalt import IdlCompilerCobalt
from cobalt.bindings.v8c.code_generator_v8c import CodeGeneratorV8c
Expand Down
26 changes: 0 additions & 26 deletions cobalt/bindings/v8c/_env.py

This file was deleted.

1 change: 0 additions & 1 deletion cobalt/bindings/v8c/generate_conversion_header_v8c.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import sys

import _env # pylint: disable=unused-import
from cobalt.bindings.generate_conversion_header import generate_header
from cobalt.bindings.v8c.code_generator_v8c import CodeGeneratorV8c

Expand Down
8 changes: 7 additions & 1 deletion cobalt/bindings/v8c/idl_compiler_v8c.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@

import logging
import sys
import os

import _env #pylint: disable=import-error,unused-import
bindings_dir = os.path.join(
os.path.dirname(__file__),
'../../../third_party/blink/Source/bindings/scripts')
sys.path.insert(0, bindings_dir)

# pylint:disable=wrong-import-position
from cobalt.bindings.idl_compiler_cobalt import generate_bindings
from cobalt.bindings.v8c.code_generator_v8c import CodeGeneratorV8c

Expand Down
4 changes: 2 additions & 2 deletions cobalt/build/build_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
FILE_DIR = os.path.dirname(__file__)
COMMIT_COUNT_BUILD_ID_OFFSET = 1000000

_BUILD_ID_PATTERN = '^BUILD_NUMBER=([1-9][0-9]{6,})$'
_BUILD_ID_PATTERN = '^(Build-Id: |BUILD_NUMBER=)([1-9][0-9]{6,})$'
_GIT_REV_PATTERN = '^GitOrigin-RevId: ([0-9a-f]{40})$'
_COBALT_VERSION_PATTERN = '^#define COBALT_VERSION "(.*)"$'

Expand All @@ -40,7 +40,7 @@ def get_build_id_and_git_rev_from_commits(cwd):
match_build_id = compiled_build_id_pattern.search(output)
if not match_build_id:
return None, None
build_id = match_build_id.group(1)
build_id = match_build_id.group(2)

# Gets git rev.
compiled_git_rev_pattern = re.compile(_GIT_REV_PATTERN, flags=re.MULTILINE)
Expand Down
Loading

0 comments on commit 460d537

Please sign in to comment.