.so from bazel.BUILD

66 views
Skip to first unread message

priya_cast_23

unread,
Jan 2, 2024, 8:34:24 AMJan 2
to Protocol Buffers
I am trying to generate the .so from bazel.

I added this in the bazel.BUILD


cc_library(
    name = "libprotobuf.so",
    srcs =  [
        ":dist_files",
        "//src/google/protobuf:dist_files",
        "//src/google/protobuf/compiler:dist_files",
        "//src/google/protobuf/compiler/cpp:dist_files",
        "//src/google/protobuf/compiler/csharp:dist_files",
        "//src/google/protobuf/compiler/java:dist_files",
        "//src/google/protobuf/compiler/objectivec:dist_files",
        "//src/google/protobuf/compiler/php:dist_files",
        "//src/google/protobuf/compiler/python:dist_files",
        "//src/google/protobuf/compiler/ruby:dist_files",
        "//src/google/protobuf/io:dist_files",
        "//src/google/protobuf/stubs:dist_files",
        "//src/google/protobuf/testing:dist_files",
        "//src/google/protobuf/util:dist_files",
    ],
    linkshared = 1,
    alwayslink = True,
    linkstatic = True,
    visibility = ["//visibility:public"],
)

priya_cast_23

unread,
Jan 2, 2024, 8:41:07 AMJan 2
to Protocol Buffers
But it did not work
Reply all
Reply to author
Forward
0 new messages