Skip to content

Commit

Permalink
Strip cobalt binary
Browse files Browse the repository at this point in the history
Issue: 390205588
Reviewed-on: #4865
  • Loading branch information
dahlstrom-g committed Feb 7, 2025
1 parent f88d345 commit bb0ac5d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cobalt/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build/linux/strip_binary.gni")
import("//testing/test.gni")

group("gn_all") {
Expand All @@ -23,7 +24,7 @@ group("gn_all") {
"//starboard/nplb",
]
if (!is_android) {
deps += [ ":cobalt" ]
deps += [ ":strip_cobalt_binary" ]
} else {
# TODO(cobalt): reuse build rules below to define Android target.
deps += [ "android:cobalt_apk" ]
Expand Down Expand Up @@ -65,6 +66,12 @@ if (!is_android) {

configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
}

strip_binary("strip_cobalt_binary") {
binary_input = "$root_out_dir/cobalt"
deps = [ ":cobalt" ]
testonly = true
}
}

action("cobalt_build_info") {
Expand Down

0 comments on commit bb0ac5d

Please sign in to comment.