Skip to content

Commit

Permalink
Replace generated files with proto_library rule
Browse files Browse the repository at this point in the history
… for storage.proto added by Change Ie5135529.

Issue: 280803912
  • Loading branch information
dahlstrom-g committed Mar 25, 2024
1 parent a652624 commit 393c610
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2,838 deletions.
11 changes: 9 additions & 2 deletions cobalt/storage/store/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import("//third_party/protobuf/proto_library.gni")

proto_library("storage_proto") {
sources = [ "storage.proto" ]
generate_python = false
}

static_library("memory_store") {
sources = [
"memory_store.cc",
"memory_store.h",
"storage.pb.cc",
"storage.pb.h",
]

deps = [
":storage_proto",
"//cobalt/base",
"//cobalt/loader:origin",
"//cobalt/storage:storage_constants",
Expand All @@ -37,6 +43,7 @@ target(gtest_target_type, "memory_store_test") {

deps = [
":memory_store",
":storage_proto",
"//cobalt/base",
"//cobalt/storage:storage_constants",
"//cobalt/test:run_all_unittests",
Expand Down
Loading

0 comments on commit 393c610

Please sign in to comment.