-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build starboard shared library for linux-x64x11 (#4215)
b/365546355 Add build configuration for building starboard shared library for linux-x64x11 Note on how to build locally using same script as CI: chrobalt/build/gn.py -p linux-x64x11 -C devel --no-check autoninja -C out/linux-x64x11_devel/ starboard/libstarboard.so.17
- Loading branch information
1 parent
d6b8bb9
commit 32bc5fb
Showing
32 changed files
with
308 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 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 | ||
# | ||
# 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. | ||
|
||
config("chrobalt_config") { | ||
# TODO(b/371589344): Fix android build configs. | ||
if (target_os != "android") { | ||
configs = [ "//${starboard_path}/platform_configuration" ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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 | ||
# | ||
# 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. | ||
|
||
# Get the path to the starboard implementation and include its GN | ||
# configuration. | ||
|
||
chrobalt = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# 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 | ||
# | ||
# 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. | ||
|
||
# Get the path to the starboard implementation and include its GN | ||
# configuration. | ||
|
||
declare_args() { | ||
# Temporary gn arg for work on base/net update. | ||
cobalt_pending_clean_up = true | ||
|
||
build_type = "devel" | ||
|
||
is_starboard = true | ||
|
||
# Used to guard any customizations to Chromium or third-party code for builds | ||
# where the Starboard porting layer is not used. | ||
is_native_target_build = false | ||
|
||
is_internal_build = getenv("COBALT_USE_INTERNAL_BUILD") == "1" | ||
|
||
using_old_compiler = false | ||
|
||
build_with_separate_cobalt_toolchain = true | ||
} | ||
|
||
assert(!(is_starboard && is_native_target_build), | ||
"Targets should be built for Starboard or natively, but not both") | ||
|
||
# Used to guard customizations to Chromium or third-party code. We historically | ||
# used is_starboard for this, but we developed the need to distinguish between | ||
# a) customizations that should only be used for Starboard builds and b) | ||
# those that should only be used for native target builds (see | ||
# is_native_target_build). use_cobalt_customizations is a convenience in the | ||
# sense that it is functionally equivalent to | ||
# (is_starboard || is_native_target_build), but it should be used in lieu of | ||
# that since the intent is more clear. | ||
use_cobalt_customizations = true | ||
|
||
# TODO(b/371589344): Investigate if we need cobalt_is_debug which | ||
# avoids overriding chrome's is_debug. | ||
is_devel = build_type == "devel" | ||
is_qa = build_type == "qa" | ||
is_gold = build_type == "gold" | ||
|
||
# TODO(b/372141961): Investigate setting chromium flag | ||
# is_debug = true for debug builds | ||
# assert(is_debug || is_devel || is_qa || is_gold) | ||
|
||
if (is_mac) { | ||
declare_args() { | ||
use_system_xcode = true | ||
} | ||
} | ||
|
||
# Get the path to the starboard implementation and include its GN | ||
# configuration. | ||
import("//starboard/build/platform_path.gni") | ||
if (build_with_separate_cobalt_toolchain) { | ||
cobalt_toolchain = "//$starboard_path/toolchain:cobalt" | ||
starboard_toolchain = "//$starboard_path/toolchain:starboard" | ||
} else { | ||
cobalt_toolchain = default_toolchain | ||
starboard_toolchain = cobalt_toolchain | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 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 | ||
# | ||
# 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. | ||
|
||
# Get the path to the starboard implementation and include its GN | ||
# configuration. | ||
|
||
|
||
import("//$starboard_path/platform_configuration/configuration.gni") | ||
|
||
sb_is_modular = sb_is_evergreen || build_with_separate_cobalt_toolchain | ||
|
||
declare_args() { | ||
use_tsan = false | ||
} | ||
declare_args() { | ||
# TODO(b/371589344) : Enable ASAN | ||
use_asan = false | ||
} | ||
|
||
# TODO(b/371263047): Resolve issues and build evergreen. | ||
enable_evergreen_code = false | ||
|
||
# TODO(b/371606611): Build test targets with cobalt toolchain | ||
enable_test_targets = false | ||
|
||
# TODO(b/371642925): Fix install targets for chrobalt | ||
enable_install_targets = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.