Fixed indendation issues

This commit is contained in:
Prianka Liz Kariat 2023-04-27 02:31:30 +05:30
parent 9c98435027
commit 1e776e8e01
2 changed files with 17 additions and 19 deletions

View File

@ -153,7 +153,6 @@ apple_static_library(
name = "MediaPipeTaskGraphs_library",
minimum_os_version = MPP_TASK_MINIMUM_OS_VERSION,
platform_type = "ios",
minimum_os_version = MPP_TASK_MINIMUM_OS_VERSION,
deps = [
"//mediapipe/tasks/cc/vision/image_classifier:image_classifier_graph",
"//mediapipe/tasks/cc/vision/object_detector:object_detector_graph",

View File

@ -47,7 +47,7 @@ if [ -z ${FRAMEWORK_NAME+x} ]; then
fi
case $FRAMEWORK_NAME in
"MediaPipeTasksText")
"MediaPipeTasksCommon")
;;
"MediaPipeTasksVision")
;;
@ -123,8 +123,8 @@ function build_ios_frameworks_and_libraries {
local IOS_DEVICE_LIBRARY_CQUERY_COMMAND="-c opt --config=ios_arm64 --apple_generate_dsym=false //mediapipe/tasks/ios:MediaPipeTaskGraphs_library"
IOS_GRAPHS_DEVICE_LIBRARY_PATH="$(build_target "${IOS_DEVICE_LIBRARY_CQUERY_COMMAND}")"
;;
*)
;;
*)
;;
esac
}
@ -149,26 +149,25 @@ function create_framework_archive {
# libraries should be copied to the output directory which is to be archived.
case $FRAMEWORK_NAME in
"MediaPipeTasksCommon")
local GRAPH_LIBRARIES_DIR="graph_libraries"
# Create the parent folder which will hold the graph libraries of all architectures.
mkdir -p "${FRAMEWORKS_DIR}/${GRAPH_LIBRARIES_DIR}"
local GRAPH_LIBRARIES_DIR="graph_libraries"
local SIMULATOR_GRAPH_LIBRARY_PATH="${FRAMEWORKS_DIR}/${GRAPH_LIBRARIES_DIR}/lib${FRAMEWORK_NAME}_simulator_graph.a"
# Create the parent folder which will hold the graph libraries of all architectures.
mkdir -p "${FRAMEWORKS_DIR}/${GRAPH_LIBRARIES_DIR}"
# Copy ios simulator fat library into a separate directory.
echo ${IOS_GRAPHS_SIMULATOR_LIBRARY_PATH}
cp "${IOS_GRAPHS_SIMULATOR_LIBRARY_PATH}" "${SIMULATOR_GRAPH_LIBRARY_PATH}"
local SIMULATOR_GRAPH_LIBRARY_PATH="${FRAMEWORKS_DIR}/${GRAPH_LIBRARIES_DIR}/lib${FRAMEWORK_NAME}_simulator_graph.a"
local IOS_DEVICE_GRAPH_LIBRARY_PATH="${FRAMEWORKS_DIR}/${GRAPH_LIBRARIES_DIR}/lib${FRAMEWORK_NAME}_device_graph.a"
# Copy ios simulator fat library into a separate directory.
echo ${IOS_GRAPHS_SIMULATOR_LIBRARY_PATH}
cp "${IOS_GRAPHS_SIMULATOR_LIBRARY_PATH}" "${SIMULATOR_GRAPH_LIBRARY_PATH}"
local IOS_DEVICE_GRAPH_LIBRARY_PATH="${FRAMEWORKS_DIR}/${GRAPH_LIBRARIES_DIR}/lib${FRAMEWORK_NAME}_device_graph.a"
# Copy ios device library into a separate directory.
echo ${IOS_GRAPHS_DEVICE_LIBRARY_PATH}
cp "${IOS_GRAPHS_DEVICE_LIBRARY_PATH}" "${IOS_DEVICE_GRAPH_LIBRARY_PATH}"
# Copy ios device library into a separate directory.
echo ${IOS_GRAPHS_DEVICE_LIBRARY_PATH}
cp "${IOS_GRAPHS_DEVICE_LIBRARY_PATH}" "${IOS_DEVICE_GRAPH_LIBRARY_PATH}"
;;
*)
;;
esac
#----- (3) Move the framework to the destination -----
if [[ "${ARCHIVE_FRAMEWORK}" == true ]]; then