Project import generated by Copybara.

GitOrigin-RevId: 0f2489d226f1e2a5d718a8b9efe5e8198ba4ab3b
This commit is contained in:
MediaPipe Team
2022-06-29 18:45:02 +00:00
committed by Sebastian Schmidt
parent c688862570
commit 63e679d99c
11 changed files with 27 additions and 16 deletions
@@ -30,6 +30,10 @@ mediapipe::FieldData ReadFileDescriptorSet(const std::string& pb) {
*result.mutable_message_value()->mutable_type_url() =
"proto2.FileDescriptorSet";
*result.mutable_message_value()->mutable_value() = pb;
// Force linking of the generated options protobuf.
mediapipe::proto_ns::LinkMessageReflection<
MP_OPTION_TYPE_NS::MP_OPTION_TYPE_NAME>();
return result;
}
+3
View File
@@ -243,6 +243,9 @@ std::string GetTestOutputsDir() {
size_t n = confstr(_CS_DARWIN_USER_TEMP_DIR, path, sizeof(path));
if (n > 0 && n < sizeof(path)) return path;
#endif // __APPLE__
#ifdef __ANDROID__
return "/data/local/tmp/";
#endif // __ANDROID__
output_dir = "/tmp";
}
return output_dir;