set(PARSER_PROTO_LIST
"${METADEF_PROTO_DIR}/om.proto"
"${METADEF_PROTO_DIR}/ge_ir.proto"
"${METADEF_PROTO_DIR}/task.proto"
"${METADEF_PROTO_DIR}/tensorflow/attr_value.proto"
"${METADEF_PROTO_DIR}/tensorflow/function.proto"
"${METADEF_PROTO_DIR}/tensorflow/graph.proto"
"${METADEF_PROTO_DIR}/tensorflow/graph_library.proto"
"${METADEF_PROTO_DIR}/tensorflow/node_def.proto"
"${METADEF_PROTO_DIR}/tensorflow/op_def.proto"
"${METADEF_PROTO_DIR}/tensorflow/resource_handle.proto"
"${METADEF_PROTO_DIR}/tensorflow/tensor.proto"
"${METADEF_PROTO_DIR}/tensorflow/tensor_shape.proto"
"${METADEF_PROTO_DIR}/tensorflow/types.proto"
"${METADEF_PROTO_DIR}/tensorflow/versions.proto"
"${METADEF_PROTO_DIR}/caffe/caffe.proto"
"${METADEF_PROTO_DIR}/onnx/ge_onnx.proto"
"${METADEF_PROTO_DIR}/ge_ir_mobile.proto"
"${METADEF_PROTO_DIR}/task_mobile.proto"
)
protobuf_generate(ge PARSER_PROTO_SRCS PARSER_PROTO_HDRS ${PARSER_PROTO_LIST})
file(GLOB_RECURSE SRCS RELATIVE ${CMAKE_CURRENT_LIST_DIR}
"src/attr_util_stub.cc"
"src/opp_so_manager_stub.cc"
)
include_directories(${CMAKE_CURRENT_LIST_DIR})
include_directories(${CMAKE_BINARY_DIR}/proto/ge)
include_directories(${CMAKE_BINARY_DIR}/proto/ge/proto)
include_directories(${METADEF_DIR})
add_library(attr_util_stub STATIC
${SRCS} ${PARSER_PROTO_HDRS}
)
target_compile_definitions(attr_util_stub PRIVATE
google=ascend_private
)
target_link_libraries(attr_util_stub PRIVATE
intf_llt_pub
ge_metadef_headers
air_headers
slog_headers
ascend_protobuf
c_sec
)