• 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/zlib:zpipe_sandbox
16add_executable(sandbox2_zpipe_sandbox
17  zpipe_sandbox.cc
18)
19add_executable(sandbox2::zpipe_sandbox ALIAS sandbox2_zpipe_sandbox)
20add_dependencies(sandbox2_zpipe_sandbox
21  sandbox2::zpipe
22)
23target_link_libraries(sandbox2_zpipe_sandbox PRIVATE
24  absl::check
25  absl::flags
26  absl::flags_parse
27  absl::log
28  absl::log_globals
29  absl::log_initialize
30  absl::log_severity
31  absl::strings
32  absl::time
33  sandbox2::bpf_helper
34  sandbox2::comms
35  sapi::runfiles
36  sandbox2::sandbox2
37  sapi::base
38)
39
40# sandboxed_api/sandbox2/examples/zlib:zpipe
41add_executable(sandbox2_zpipe
42  zpipe.c
43)
44set_target_properties(sandbox2_zpipe PROPERTIES OUTPUT_NAME zpipe)
45add_executable(sandbox2::zpipe ALIAS sandbox2_zpipe)
46target_link_libraries(sandbox2_zpipe PRIVATE
47  -static
48  ZLIB::ZLIB
49)
50