2020-01-17 21:05:03 +08:00
|
|
|
# Copyright 2019 Google LLC
|
2019-05-06 20:03:29 +08:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
2022-01-28 17:38:27 +08:00
|
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
2019-05-06 20:03:29 +08:00
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
# sandboxed_api/sandbox2/unwind:ptrace_hook
|
|
|
|
add_library(sandbox2_ptrace_hook STATIC
|
|
|
|
ptrace_hook.cc
|
|
|
|
ptrace_hook.h
|
|
|
|
)
|
|
|
|
add_library(sandbox2::ptrace_hook ALIAS sandbox2_ptrace_hook)
|
2021-04-22 21:56:22 +08:00
|
|
|
target_link_libraries(sandbox2_ptrace_hook
|
|
|
|
PRIVATE sapi::base
|
|
|
|
PUBLIC absl::strings
|
2019-05-06 20:03:29 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# sandboxed_api/sandbox2/unwind:unwind
|
|
|
|
add_library(sandbox2_unwind STATIC
|
|
|
|
unwind.cc
|
|
|
|
unwind.h
|
|
|
|
)
|
|
|
|
add_library(sandbox2::unwind ALIAS sandbox2_unwind)
|
|
|
|
target_link_libraries(sandbox2_unwind PRIVATE
|
2022-02-08 22:23:13 +08:00
|
|
|
absl::cleanup
|
2021-06-28 17:02:35 +08:00
|
|
|
absl::statusor
|
2021-04-28 22:48:48 +08:00
|
|
|
absl::strings
|
2019-05-06 20:03:29 +08:00
|
|
|
sandbox2::comms
|
|
|
|
sandbox2::maps_parser
|
|
|
|
sandbox2::minielf
|
2020-07-17 18:20:18 +08:00
|
|
|
sandbox2::ptrace_hook
|
2021-01-14 01:25:25 +08:00
|
|
|
sapi::strerror
|
2019-05-06 20:03:29 +08:00
|
|
|
sandbox2::unwind_proto
|
|
|
|
sapi::base
|
2021-04-28 22:48:48 +08:00
|
|
|
sapi::file_helpers
|
2019-05-06 20:03:29 +08:00
|
|
|
sapi::raw_logging
|
2021-06-28 17:02:35 +08:00
|
|
|
sapi::status
|
2019-05-06 20:03:29 +08:00
|
|
|
unwind::unwind_ptrace_wrapped
|
|
|
|
)
|
|
|
|
|
|
|
|
# sandboxed_api/sandbox2/unwind:unwind_proto
|
2020-03-19 01:47:02 +08:00
|
|
|
sapi_protobuf_generate_cpp(_sandbox2_unwind_pb_h _sandbox2_unwind_pb_cc
|
2019-05-06 20:03:29 +08:00
|
|
|
unwind.proto
|
|
|
|
)
|
|
|
|
add_library(sandbox2_unwind_proto STATIC
|
|
|
|
${_sandbox2_unwind_pb_cc}
|
|
|
|
${_sandbox2_unwind_pb_h}
|
|
|
|
)
|
|
|
|
add_library(sandbox2::unwind_proto ALIAS sandbox2_unwind_proto)
|
|
|
|
target_link_libraries(sandbox2_unwind_proto PRIVATE
|
|
|
|
protobuf::libprotobuf
|
|
|
|
sapi::base
|
|
|
|
)
|