Skip to content

Commit d8b5e7c

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
Internal Change
PiperOrigin-RevId: 929988279
1 parent d2a8a78 commit d8b5e7c

9 files changed

Lines changed: 2670 additions & 0 deletions

internal/BUILD

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,75 @@ cc_library(
152152
deps = ["@com_google_absl//absl/base:config"],
153153
)
154154

155+
cc_library(
156+
name = "ipaddress",
157+
hdrs = ["ipaddress.h"],
158+
deps = [
159+
":ipaddress_oss", # cel:oss-only(ipaddress)
160+
],
161+
)
162+
163+
cc_library(
164+
name = "ipaddress_util",
165+
hdrs = ["ipaddress_util.h"],
166+
deps = [
167+
":ipaddress_util_oss", # cel:oss-only(ipaddress)
168+
],
169+
)
170+
171+
cc_library(
172+
name = "ipaddress_oss",
173+
srcs = ["ipaddress_oss.cc"],
174+
hdrs = ["ipaddress_oss.h"],
175+
deps = [
176+
"@com_google_absl//absl/base:core_headers",
177+
"@com_google_absl//absl/log",
178+
"@com_google_absl//absl/log:absl_check",
179+
"@com_google_absl//absl/log:absl_log",
180+
"@com_google_absl//absl/log:check",
181+
"@com_google_absl//absl/numeric:int128",
182+
"@com_google_absl//absl/status",
183+
"@com_google_absl//absl/status:statusor",
184+
"@com_google_absl//absl/strings",
185+
"@com_google_absl//absl/strings:str_format",
186+
],
187+
)
188+
189+
cc_library(
190+
name = "ipaddress_util_oss",
191+
srcs = ["ipaddress_util_oss.cc"],
192+
hdrs = ["ipaddress_util_oss.h"],
193+
deps = [
194+
":ipaddress_oss",
195+
"@com_google_absl//absl/log:absl_check",
196+
],
197+
)
198+
199+
cc_test(
200+
name = "ipaddress_oss_test",
201+
srcs = ["ipaddress_oss_test.cc"],
202+
deps = [
203+
":ipaddress_oss",
204+
":testing",
205+
"@com_google_absl//absl/log:absl_check",
206+
"@com_google_absl//absl/numeric:int128",
207+
"@com_google_absl//absl/status",
208+
"@com_google_absl//absl/status:status_matchers",
209+
"@com_google_absl//absl/strings",
210+
"@com_google_absl//absl/strings:str_format",
211+
],
212+
)
213+
214+
cc_test(
215+
name = "ipaddress_util_oss_test",
216+
srcs = ["ipaddress_util_oss_test.cc"],
217+
deps = [
218+
":ipaddress_oss",
219+
":ipaddress_util_oss",
220+
":testing",
221+
],
222+
)
223+
155224
cc_library(
156225
name = "status_macros",
157226
hdrs = ["status_macros.h"],

internal/ipaddress.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#ifndef THIRD_PARTY_CEL_CPP_INTERNAL_IPADDRESS_H_
16+
#define THIRD_PARTY_CEL_CPP_INTERNAL_IPADDRESS_H_
17+
18+
#include "internal/ipaddress_oss.h"
19+
20+
#endif // THIRD_PARTY_CEL_CPP_INTERNAL_IPADDRESS_H_

0 commit comments

Comments
 (0)