• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 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# sandboxed_api/sandbox2/examples/network:network_sandbox
16add_executable(sandbox2_network_sandbox
17  network_sandbox.cc
18)
19add_executable(sandbox2::network_sandbox ALIAS sandbox2_network_sandbox)
20add_dependencies(sandbox2_network_sandbox
21  sandbox2::network_bin
22)
23target_link_libraries(sandbox2_network_sandbox PRIVATE
24  absl::flags
25  absl::flags_parse
26  absl::log
27  absl::log_globals
28  absl::log_initialize
29  absl::log_severity
30  absl::statusor
31  absl::strings
32  absl::time
33  sandbox2::bpf_helper
34  sandbox2::comms
35  sandbox2::network_proxy_testing
36  sapi::runfiles
37  sandbox2::sandbox2
38  sapi::base
39)
40
41# sandboxed_api/sandbox2/examples/network_bin:network_bin
42add_executable(sandbox2_network_bin
43  network_bin.cc
44)
45set_target_properties(sandbox2_network_bin PROPERTIES OUTPUT_NAME network_bin)
46add_executable(sandbox2::network_bin ALIAS sandbox2_network_bin)
47target_link_libraries(sandbox2_network_bin PRIVATE
48  absl::str_format
49  sandbox2::client
50  sandbox2::comms
51  sapi::fileops
52  sapi::base
53)
54