[rules_cc] Add rules_cc/protobuf repository def

Change-Id: I1912f3797ac06cbfd3e95e84122413d129e18da8
Reviewed-on: https://fuchsia-review.googlesource.com/c/drivers/rtc/nxp/pcf8563/+/1354964
Reviewed-by: Chase Latta <chaselatta@google.com>
Commit-Queue: Jiaming Li <lijiaming@google.com>
diff --git a/.gitmodules b/.gitmodules
index 8a1ce6b..a47960e 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -12,4 +12,10 @@
 	url = https://fuchsia.googlesource.com/third_party/github.com/bazelbuild/rules_python/
 [submodule "third_party/rules_license"]
 	path = third_party/rules_license
-	url = https://fuchsia.googlesource.com/third_party/github.com/bazelbuild/rules_license/
\ No newline at end of file
+	url = https://fuchsia.googlesource.com/third_party/github.com/bazelbuild/rules_license/
+[submodule "third_party/rules_cc"]
+	path = third_party/rules_cc
+	url = https://fuchsia.googlesource.com/third_party/github.com/bazelbuild/rules_cc
+[submodule "third_party/protobuf"]
+	path = third_party/protobuf
+	url = https://fuchsia.googlesource.com/third_party/protobuf
diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel
index fc68a52..cc0c029 100644
--- a/WORKSPACE.bazel
+++ b/WORKSPACE.bazel
@@ -35,6 +35,17 @@
 )
 
 local_repository(
+    name = "rules_cc",
+    path = "third_party/rules_cc",
+)
+
+# protobuf
+local_repository(
+    name = "com_google_protobuf",
+    path = "third_party/protobuf",
+)
+
+local_repository(
     name = "platforms",
     path = "third_party/platforms",
 )
diff --git a/third_party/protobuf b/third_party/protobuf
new file mode 160000
index 0000000..a978b75
--- /dev/null
+++ b/third_party/protobuf
@@ -0,0 +1 @@
+Subproject commit a978b75794a6ce4547c9db08a115c458d9190934
diff --git a/third_party/rules_cc b/third_party/rules_cc
new file mode 160000
index 0000000..a116227
--- /dev/null
+++ b/third_party/rules_cc
@@ -0,0 +1 @@
+Subproject commit a1162270a0bb680190e8b4f3dab066f15a1ede6c