Project import generated by Copybara.
PiperOrigin-RevId: 263889205
This commit is contained in:
Vendored
+59
-2
@@ -38,6 +38,9 @@ cc_library(
|
||||
"//mediapipe:android_arm64": [
|
||||
"@android_opencv//:libopencv_arm64-v8a",
|
||||
],
|
||||
"//mediapipe:ios": [
|
||||
"@ios_opencv//:opencv",
|
||||
],
|
||||
"//mediapipe:macos": [
|
||||
"@macos_opencv//:opencv",
|
||||
],
|
||||
@@ -47,10 +50,29 @@ cc_library(
|
||||
}),
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "libffmpeg",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = select({
|
||||
"//mediapipe:android_x86": [],
|
||||
"//mediapipe:android_x86_64": [],
|
||||
"//mediapipe:android_armeabi": [],
|
||||
"//mediapipe:android_arm": [],
|
||||
"//mediapipe:android_arm64": [],
|
||||
"//mediapipe:ios": [],
|
||||
"//mediapipe:macos": [
|
||||
"@macos_ffmpeg//:libffmpeg",
|
||||
],
|
||||
"//conditions:default": [
|
||||
"@linux_ffmpeg//:libffmpeg",
|
||||
],
|
||||
}),
|
||||
)
|
||||
|
||||
android_library(
|
||||
name = "android_constraint_layout",
|
||||
name = "androidx_annotation",
|
||||
exports = [
|
||||
"@maven//:com_android_support_constraint_constraint_layout",
|
||||
"@maven//:androidx_annotation_annotation",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -61,6 +83,41 @@ android_library(
|
||||
],
|
||||
)
|
||||
|
||||
android_library(
|
||||
name = "androidx_constraint_layout",
|
||||
exports = [
|
||||
"@maven//:androidx_constraintlayout_constraintlayout",
|
||||
],
|
||||
)
|
||||
|
||||
android_library(
|
||||
name = "androidx_core",
|
||||
exports = [
|
||||
"@maven//:androidx_core_core",
|
||||
],
|
||||
)
|
||||
|
||||
android_library(
|
||||
name = "androidx_legacy_support_v4",
|
||||
exports = [
|
||||
"@maven//:androidx_legacy_legacy_support_v4",
|
||||
],
|
||||
)
|
||||
|
||||
android_library(
|
||||
name = "androidx_material",
|
||||
exports = [
|
||||
"@maven//:com_google_android_material_material",
|
||||
],
|
||||
)
|
||||
|
||||
android_library(
|
||||
name = "androidx_recyclerview",
|
||||
exports = [
|
||||
"@maven//:androidx_recyclerview_recyclerview",
|
||||
],
|
||||
)
|
||||
|
||||
# TODO: Get the AARs from Google's Maven Repository.
|
||||
aar_import(
|
||||
name = "camerax_core",
|
||||
|
||||
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
# Copyright 2019 The MediaPipe Authors.
|
||||
#
|
||||
# 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
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# 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.
|
||||
|
||||
licenses(["notice"]) # LGPL
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "libffmpeg",
|
||||
srcs = glob(
|
||||
[
|
||||
"lib/x86_64-linux-gnu/libav*.so*",
|
||||
],
|
||||
),
|
||||
hdrs = glob(["include/x86_64-linux-gnu/libav*/*.h"]),
|
||||
includes = ["include"],
|
||||
linkopts = [
|
||||
"-lavcodec",
|
||||
"-lavformat",
|
||||
"-lavutil",
|
||||
],
|
||||
linkstatic = 1,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
# Copyright 2019 The MediaPipe Authors.
|
||||
#
|
||||
# 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
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# 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.
|
||||
|
||||
licenses(["notice"]) # LGPL
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "libffmpeg",
|
||||
srcs = glob(
|
||||
[
|
||||
"local/opt/ffmpeg/lib/libav*.dylib",
|
||||
],
|
||||
),
|
||||
hdrs = glob(["local/opt/ffmpeg/include/libav*/*.h"]),
|
||||
includes = ["local/opt/ffmpeg/include/"],
|
||||
linkopts = [
|
||||
"-lavcodec",
|
||||
"-lavformat",
|
||||
"-lavutil",
|
||||
],
|
||||
linkstatic = 1,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
Vendored
+249
-13
@@ -17,9 +17,41 @@ licenses(["notice"])
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
config_setting(
|
||||
name = "android",
|
||||
name = "android_arm",
|
||||
values = {
|
||||
"crosstool_top": "//external:android/crosstool",
|
||||
"cpu": "armeabi-v7a",
|
||||
},
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "android_arm64",
|
||||
values = {
|
||||
"cpu": "arm64-v8a",
|
||||
},
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "ios_armv7",
|
||||
values = {
|
||||
"cpu": "ios_armv7",
|
||||
},
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "ios_arm64",
|
||||
values = {
|
||||
"cpu": "ios_arm64",
|
||||
},
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "ios_arm64e",
|
||||
values = {
|
||||
"cpu": "ios_arm64e",
|
||||
},
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
@@ -28,6 +60,7 @@ config_setting(
|
||||
name = "libunwind",
|
||||
values = {
|
||||
"define": "libunwind=true",
|
||||
"cpu": "k8",
|
||||
},
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
@@ -67,12 +100,20 @@ cc_library(
|
||||
"//conditions:default": [],
|
||||
}) + select({
|
||||
"//conditions:default": ["-lpthread"],
|
||||
":android": [],
|
||||
":android_arm": [],
|
||||
":android_arm64": [],
|
||||
":ios_armv7": [],
|
||||
":ios_arm64": [],
|
||||
":ios_arm64e": [],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = select({
|
||||
"//conditions:default": ["@com_github_gflags_gflags//:gflags"],
|
||||
":android": [],
|
||||
":android_arm": [],
|
||||
":android_arm64": [],
|
||||
":ios_armv7": [],
|
||||
":ios_arm64": [],
|
||||
":ios_arm64e": [],
|
||||
}),
|
||||
)
|
||||
|
||||
@@ -115,7 +156,11 @@ genrule(
|
||||
name = "config_h",
|
||||
srcs = select({
|
||||
"//conditions:default": ["config.h.tmp"],
|
||||
":android": ["config.h.android"],
|
||||
":android_arm": ["config.h.android_arm"],
|
||||
":android_arm64": ["config.h.android_arm"],
|
||||
":ios_armv7": ["config.h.ios_arm"],
|
||||
":ios_arm64": ["config.h.ios_arm"],
|
||||
":ios_arm64e": ["config.h.ios_arm"],
|
||||
}),
|
||||
outs = ["config.h"],
|
||||
cmd = "echo select $< to be the glog config file. && cp $< $@",
|
||||
@@ -125,16 +170,17 @@ genrule(
|
||||
name = "logging_h",
|
||||
srcs = select({
|
||||
"//conditions:default": ["src/glog/logging.h.tmp"],
|
||||
":android": ["src/glog/logging.h.android"],
|
||||
":android_arm": ["src/glog/logging.h.android_arm"],
|
||||
":android_arm64": ["src/glog/logging.h.android_arm"],
|
||||
}),
|
||||
outs = ["src/glog/logging.h"],
|
||||
cmd = "echo select $< to be the glog logging.h file. && cp $< $@",
|
||||
)
|
||||
|
||||
# Hardcoded android config header for glog library.
|
||||
# Hardcoded android arm config header for glog library.
|
||||
# TODO: This is a temporary workaround. We should generate the config
|
||||
# header by running the configure script with the right target toolchain.
|
||||
ANDROID_CONFIG = """
|
||||
ANDROID_ARM_CONFIG = """
|
||||
/* Define if glog does not use RTTI */
|
||||
/* #undef DISABLE_RTTI */
|
||||
|
||||
@@ -319,15 +365,15 @@ your system. */
|
||||
"""
|
||||
|
||||
genrule(
|
||||
name = "gen_android_config",
|
||||
outs = ["config.h.android"],
|
||||
cmd = ("echo '%s' > $(location config.h.android)" % ANDROID_CONFIG),
|
||||
name = "gen_android_arm_config",
|
||||
outs = ["config.h.android_arm"],
|
||||
cmd = ("echo '%s' > $(location config.h.android_arm)" % ANDROID_ARM_CONFIG),
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "generate_android_glog_logging_h",
|
||||
name = "generate_android_arm_glog_logging_h",
|
||||
srcs = ["src/glog/logging.h.in"],
|
||||
outs = ["src/glog/logging.h.android"],
|
||||
outs = ["src/glog/logging.h.android_arm"],
|
||||
cmd = ("sed -e 's/@ac_cv___attribute___noinline@/__attribute__((__noinline__))/g'" +
|
||||
" -e 's/@ac_cv___attribute___noreturn@/__attribute__((__noreturn__))/g'" +
|
||||
" -e 's/@ac_cv_have___builtin_expect@/1/g'" +
|
||||
@@ -344,3 +390,193 @@ genrule(
|
||||
" -e 's/@ac_google_start_namespace@/namespace google {/g'" +
|
||||
" $< > $@"),
|
||||
)
|
||||
|
||||
# Hardcoded ios arm config header for glog library.
|
||||
# TODO: This is a temporary workaround. We should generate the config
|
||||
# header by running the configure script with the right target toolchain.
|
||||
IOS_ARM_CONFIG = """
|
||||
/* define if glog doesnt use RTTI */
|
||||
/* #undef DISABLE_RTTI */
|
||||
|
||||
/* Namespace for Google classes */
|
||||
#define GOOGLE_NAMESPACE google
|
||||
|
||||
/* Define if you have the 'dladdr' function */
|
||||
#define HAVE_DLADDR 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the <execinfo.h> header file. */
|
||||
#define HAVE_EXECINFO_H 1
|
||||
|
||||
/* Define if you have the 'fcntl' function */
|
||||
#define HAVE_FCNTL 1
|
||||
|
||||
/* Define to 1 if you have the <glob.h> header file. */
|
||||
#define HAVE_GLOB_H 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the 'pthread' library (-lpthread). */
|
||||
#define HAVE_LIBPTHREAD 1
|
||||
|
||||
/* Define to 1 if you have the <libunwind.h> header file. */
|
||||
#define HAVE_LIBUNWIND_H 1
|
||||
|
||||
/* define if you have google gflags library */
|
||||
/* #undef HAVE_LIB_GFLAGS */
|
||||
|
||||
/* define if you have google gmock library */
|
||||
/* #undef HAVE_LIB_GMOCK */
|
||||
|
||||
/* define if you have google gtest library */
|
||||
/* #undef HAVE_LIB_GTEST */
|
||||
|
||||
/* define if you have libunwind */
|
||||
/* #undef HAVE_LIB_UNWIND */
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* define if the compiler implements namespaces */
|
||||
#define HAVE_NAMESPACES 1
|
||||
|
||||
/* Define if you have the 'pread' function */
|
||||
#define HAVE_PREAD 1
|
||||
|
||||
/* Define if you have POSIX threads libraries and header files. */
|
||||
#define HAVE_PTHREAD 1
|
||||
|
||||
/* Define to 1 if you have the <pwd.h> header file. */
|
||||
#define HAVE_PWD_H 1
|
||||
|
||||
/* Define if you have the 'pwrite' function */
|
||||
#define HAVE_PWRITE 1
|
||||
|
||||
/* define if the compiler implements pthread_rwlock_* */
|
||||
#define HAVE_RWLOCK 1
|
||||
|
||||
/* Define if you have the 'sigaction' function */
|
||||
#define HAVE_SIGACTION 1
|
||||
|
||||
/* Define if you have the 'sigaltstack' function */
|
||||
#define HAVE_SIGALTSTACK 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the <syscall.h> header file. */
|
||||
/* #undef HAVE_SYSCALL_H */
|
||||
|
||||
/* Define to 1 if you have the <syslog.h> header file. */
|
||||
#define HAVE_SYSLOG_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/syscall.h> header file. */
|
||||
#define HAVE_SYS_SYSCALL_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
#define HAVE_SYS_TIME_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/ucontext.h> header file. */
|
||||
#define HAVE_SYS_UCONTEXT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/utsname.h> header file. */
|
||||
#define HAVE_SYS_UTSNAME_H 1
|
||||
|
||||
/* Define to 1 if you have the <ucontext.h> header file. */
|
||||
/* #undef HAVE_UCONTEXT_H */
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the <unwind.h> header file. */
|
||||
#define HAVE_UNWIND_H 1
|
||||
|
||||
/* define if the compiler supports using expression for operator */
|
||||
#define HAVE_USING_OPERATOR 1
|
||||
|
||||
/* define if your compiler has __attribute__ */
|
||||
#define HAVE___ATTRIBUTE__ 1
|
||||
|
||||
/* define if your compiler has __builtin_expect */
|
||||
#define HAVE___BUILTIN_EXPECT 1
|
||||
|
||||
/* define if your compiler has __sync_val_compare_and_swap */
|
||||
#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#define LT_OBJDIR ".libs/"
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "glog"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "[email protected]"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "glog"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "glog 0.3.5"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "glog"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "0.3.5"
|
||||
|
||||
/* How to access the PC from a struct ucontext */
|
||||
/* #undef PC_FROM_UCONTEXT */
|
||||
|
||||
/* Define to necessary symbol if this constant uses a non-standard name on
|
||||
your system. */
|
||||
/* #undef PTHREAD_CREATE_JOINABLE */
|
||||
|
||||
/* The size of 'void *', as computed by sizeof. */
|
||||
#define SIZEOF_VOID_P 8
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
/* #undef STDC_HEADERS */
|
||||
|
||||
/* the namespace where STL code like vector<> is defined */
|
||||
#define STL_NAMESPACE std
|
||||
|
||||
/* location of source code */
|
||||
#define TEST_SRC_DIR "external/com_google_glog"
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "0.3.5"
|
||||
|
||||
/* Stops putting the code inside the Google namespace */
|
||||
#define _END_GOOGLE_NAMESPACE_ }
|
||||
|
||||
/* Puts following code inside the Google namespace */
|
||||
#define _START_GOOGLE_NAMESPACE_ namespace google {
|
||||
"""
|
||||
|
||||
genrule(
|
||||
name = "gen_ios_arm_config",
|
||||
outs = ["config.h.ios_arm"],
|
||||
cmd = ("echo '%s' > $(location config.h.ios_arm)" % IOS_ARM_CONFIG),
|
||||
)
|
||||
|
||||
+509
@@ -0,0 +1,509 @@
|
||||
# Description:
|
||||
# A collection of source from different Google projects that may be of use to
|
||||
# developers working other Mac projects.
|
||||
|
||||
# To run all the test from the command line:
|
||||
# bazel test \
|
||||
# --build_tests_only \
|
||||
# @google_toolbox_for_mac///...
|
||||
|
||||
package(default_visibility = ["//visibility:private"])
|
||||
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
exports_files(
|
||||
["UnitTest-Info.plist"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_Defines",
|
||||
hdrs = ["GTMDefines.h"],
|
||||
includes = ["."],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_TypeCasting",
|
||||
hdrs = [
|
||||
"DebugUtils/GTMTypeCasting.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_LocalizedString",
|
||||
hdrs = [
|
||||
"Foundation/GTMLocalizedString.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_NSStringURLArguments",
|
||||
srcs = [
|
||||
"Foundation/GTMNSString+URLArguments.m",
|
||||
],
|
||||
hdrs = [
|
||||
"Foundation/GTMNSString+URLArguments.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_GeometryUtils",
|
||||
srcs = [
|
||||
"Foundation/GTMGeometryUtils.m",
|
||||
],
|
||||
hdrs = [
|
||||
"Foundation/GTMGeometryUtils.h",
|
||||
],
|
||||
sdk_frameworks = ["CoreGraphics"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
# Since this is just .h files, it is ok to not divide this into sub targets as it
|
||||
# doesn't cause any extra code to be linked in when some just wants a subset of
|
||||
# it.
|
||||
objc_library(
|
||||
name = "GTM_DebugUtils",
|
||||
hdrs = [
|
||||
"DebugUtils/GTMDebugSelectorValidation.h",
|
||||
"DebugUtils/GTMDebugThreadValidation.h",
|
||||
"DebugUtils/GTMMethodCheck.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_SynchronizationAsserts",
|
||||
srcs = [
|
||||
"DebugUtils/GTMSynchronizationAsserts.m",
|
||||
],
|
||||
hdrs = [
|
||||
"DebugUtils/GTMSynchronizationAsserts.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_KVO",
|
||||
hdrs = [
|
||||
"Foundation/GTMNSObject+KeyValueObserving.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMNSObject+KeyValueObserving.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_DebugUtils",
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_Regex",
|
||||
hdrs = [
|
||||
"Foundation/GTMRegex.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMRegex.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_StringEncoding",
|
||||
hdrs = [
|
||||
"Foundation/GTMStringEncoding.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMStringEncoding.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_NSScannerJSON",
|
||||
srcs = [
|
||||
"Foundation/GTMNSScanner+JSON.m",
|
||||
],
|
||||
hdrs = [
|
||||
"Foundation/GTMNSScanner+JSON.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_NSStringHTML",
|
||||
hdrs = [
|
||||
"Foundation/GTMNSString+HTML.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMNSString+HTML.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_NSStringXML",
|
||||
srcs = [
|
||||
"Foundation/GTMNSString+XML.m",
|
||||
],
|
||||
hdrs = [
|
||||
"Foundation/GTMNSString+XML.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_NSThreadBlocks",
|
||||
hdrs = [
|
||||
"Foundation/GTMNSThread+Blocks.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMNSThread+Blocks.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_TimeUtils",
|
||||
hdrs = [
|
||||
"Foundation/GTMTimeUtils.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMTimeUtils.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_SQLite",
|
||||
hdrs = [
|
||||
"Foundation/GTMSQLite.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMSQLite.m",
|
||||
],
|
||||
sdk_dylibs = ["libsqlite3"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_DebugUtils",
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_SystemVersion",
|
||||
hdrs = [
|
||||
"Foundation/GTMSystemVersion.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMSystemVersion.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_GTMURLBuilder",
|
||||
hdrs = [
|
||||
"Foundation/GTMURLBuilder.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMURLBuilder.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Logger",
|
||||
":GTM_NSDictionaryURLArguments",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_NSDictionaryURLArguments",
|
||||
srcs = [
|
||||
"Foundation/GTMNSDictionary+URLArguments.m",
|
||||
],
|
||||
hdrs = [
|
||||
"Foundation/GTMNSDictionary+URLArguments.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_DebugUtils",
|
||||
":GTM_NSStringURLArguments",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_StackTrace",
|
||||
hdrs = [
|
||||
"Foundation/GTMStackTrace.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMStackTrace.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_NSDataZlib",
|
||||
srcs = [
|
||||
"Foundation/GTMNSData+zlib.m",
|
||||
],
|
||||
hdrs = [
|
||||
"Foundation/GTMNSData+zlib.h",
|
||||
],
|
||||
sdk_dylibs = [
|
||||
"libz",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_NSFileHandleUniqueName",
|
||||
hdrs = [
|
||||
"Foundation/GTMNSFileHandle+UniqueName.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMNSFileHandle+UniqueName.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_UIFontLineHeight",
|
||||
srcs = [
|
||||
"iPhone/GTMUIFont+LineHeight.m",
|
||||
],
|
||||
hdrs = [
|
||||
"iPhone/GTMUIFont+LineHeight.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_RoundedRectPath",
|
||||
srcs = [
|
||||
"iPhone/GTMRoundedRectPath.m",
|
||||
],
|
||||
hdrs = [
|
||||
"iPhone/GTMRoundedRectPath.h",
|
||||
],
|
||||
sdk_frameworks = ["CoreGraphics"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_UIImageResize",
|
||||
srcs = [
|
||||
"iPhone/GTMUIImage+Resize.m",
|
||||
],
|
||||
hdrs = [
|
||||
"iPhone/GTMUIImage+Resize.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_FadeTruncatingLabel",
|
||||
hdrs = [
|
||||
"iPhone/GTMFadeTruncatingLabel.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"iPhone/GTMFadeTruncatingLabel.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_UILocalizer",
|
||||
hdrs = select({
|
||||
"//mediapipe:macos": ["AppKit/GTMUILocalizer.h"],
|
||||
"//conditions:default": ["iPhone/GTMUILocalizer.h"],
|
||||
}),
|
||||
non_arc_srcs = select({
|
||||
"//mediapipe:macos": ["AppKit/GTMUILocalizer.m"],
|
||||
"//conditions:default": ["iPhone/GTMUILocalizer.m"],
|
||||
}),
|
||||
sdk_frameworks = select({
|
||||
"//mediapipe:macos": ["AppKit"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
# On MacOS, mark alwayslink in case this is referenced only from a XIB and
|
||||
# would otherwise be stripped.
|
||||
alwayslink = select({
|
||||
"//mediapipe:ios": 0,
|
||||
"//conditions:default": 1,
|
||||
}),
|
||||
)
|
||||
|
||||
# NOTE: This target is only available for MacOS, not iPhone.
|
||||
objc_library(
|
||||
name = "GTM_UILocalizerAndLayoutTweaker",
|
||||
hdrs = ["AppKit/GTMUILocalizerAndLayoutTweaker.h"],
|
||||
non_arc_srcs = ["AppKit/GTMUILocalizerAndLayoutTweaker.m"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
":GTM_UILocalizer",
|
||||
],
|
||||
# Mark alwayslink in case this is referenced only from a XIB and would
|
||||
# otherwise be stripped.
|
||||
alwayslink = 1,
|
||||
)
|
||||
|
||||
GTM_UNITTESTING_HDRS = [
|
||||
"UnitTesting/GTMFoundationUnitTestingUtilities.h",
|
||||
"UnitTesting/GTMSenTestCase.h",
|
||||
"UnitTesting/GTMTestTimer.h",
|
||||
]
|
||||
|
||||
GTM_UNITTESTING_NON_ARC_SRCS = [
|
||||
"UnitTesting/GTMFoundationUnitTestingUtilities.m",
|
||||
"UnitTesting/GTMSenTestCase.m",
|
||||
]
|
||||
|
||||
GTM_UNITTESTING_SDK_FRAMEWORKS = [
|
||||
"CoreGraphics",
|
||||
"QuartzCore",
|
||||
]
|
||||
|
||||
GTM_UNITTESTING_DEPS = [
|
||||
":GTM_Regex",
|
||||
":GTM_SystemVersion",
|
||||
]
|
||||
|
||||
objc_library(
|
||||
name = "GTM_UnitTesting",
|
||||
testonly = 1,
|
||||
hdrs = GTM_UNITTESTING_HDRS,
|
||||
non_arc_srcs = GTM_UNITTESTING_NON_ARC_SRCS,
|
||||
sdk_frameworks = GTM_UNITTESTING_SDK_FRAMEWORKS,
|
||||
visibility = ["//visibility:public"],
|
||||
deps = GTM_UNITTESTING_DEPS,
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_UnitTesting_GTM_USING_XCTEST",
|
||||
testonly = 1,
|
||||
hdrs = GTM_UNITTESTING_HDRS,
|
||||
defines = ["GTM_USING_XCTEST=1"],
|
||||
non_arc_srcs = GTM_UNITTESTING_NON_ARC_SRCS,
|
||||
sdk_frameworks = GTM_UNITTESTING_SDK_FRAMEWORKS,
|
||||
visibility = ["//visibility:public"],
|
||||
deps = GTM_UNITTESTING_DEPS,
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_UnitTestingAppLib",
|
||||
testonly = 1,
|
||||
hdrs = [
|
||||
"UnitTesting/GTMCodeCoverageApp.h",
|
||||
"UnitTesting/GTMIPhoneUnitTestDelegate.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"UnitTesting/GTMIPhoneUnitTestDelegate.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_UnitTesting",
|
||||
],
|
||||
)
|
||||
|
||||
# No Test for GTM_UnitTestingAppLib, use a build test.
|
||||
objc_library(
|
||||
name = "GTM_Logger",
|
||||
hdrs = [
|
||||
"Foundation/GTMLogger.h",
|
||||
],
|
||||
non_arc_srcs = [
|
||||
"Foundation/GTMLogger.m",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":GTM_Defines",
|
||||
],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_Logger_ASL",
|
||||
hdrs = ["Foundation/GTMLogger+ASL.h"],
|
||||
non_arc_srcs = ["Foundation/GTMLogger+ASL.m"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [":GTM_Logger"],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "GTM_LoggerRingBufferWriter",
|
||||
hdrs = ["Foundation/GTMLoggerRingBufferWriter.h"],
|
||||
non_arc_srcs = ["Foundation/GTMLoggerRingBufferWriter.m"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [":GTM_Logger"],
|
||||
)
|
||||
Vendored
+48
@@ -0,0 +1,48 @@
|
||||
# Description:
|
||||
# OpenCV libraries for video/image processing on iOS
|
||||
|
||||
licenses(["notice"]) # BSD license
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
load(
|
||||
"@build_bazel_rules_apple//apple:apple.bzl",
|
||||
"apple_static_framework_import",
|
||||
)
|
||||
|
||||
apple_static_framework_import(
|
||||
name = "OpencvFramework",
|
||||
framework_imports = glob(["opencv2.framework/**"]),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "opencv_objc_lib",
|
||||
deps = [":OpencvFramework"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "opencv",
|
||||
hdrs = glob([
|
||||
"opencv2.framework/Versions/A/Headers/**/*.h*",
|
||||
]),
|
||||
copts = [
|
||||
"-std=c++11",
|
||||
"-x objective-c++",
|
||||
],
|
||||
include_prefix = "opencv2",
|
||||
linkopts = [
|
||||
"-framework AssetsLibrary",
|
||||
"-framework CoreFoundation",
|
||||
"-framework CoreGraphics",
|
||||
"-framework CoreMedia",
|
||||
"-framework Accelerate",
|
||||
"-framework CoreImage",
|
||||
"-framework AVFoundation",
|
||||
"-framework CoreVideo",
|
||||
"-framework QuartzCore",
|
||||
],
|
||||
strip_include_prefix = "opencv2.framework/Versions/A/Headers",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [":opencv_objc_lib"],
|
||||
)
|
||||
Vendored
+1
-1
@@ -21,7 +21,7 @@ cc_library(
|
||||
"lib/x86_64-linux-gnu/libopencv_videoio.so*",
|
||||
],
|
||||
),
|
||||
hdrs = glob(["include/opencv/*.h*"]),
|
||||
hdrs = glob(["include/opencv2/**/*.h*"]),
|
||||
includes = ["include"],
|
||||
linkstatic = 1,
|
||||
visibility = ["//visibility:public"],
|
||||
|
||||
Vendored
+1
@@ -16,6 +16,7 @@ cc_library(
|
||||
"local/opt/opencv/lib/libopencv_highgui.dylib",
|
||||
"local/opt/opencv/lib/libopencv_imgcodecs.dylib",
|
||||
"local/opt/opencv/lib/libopencv_imgproc.dylib",
|
||||
"local/opt/opencv/lib/libopencv_optflow.dylib",
|
||||
"local/opt/opencv/lib/libopencv_video.dylib",
|
||||
"local/opt/opencv/lib/libopencv_videoio.dylib",
|
||||
],
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
commit c0863d0596ae6b769a29fa3fb72ff036444fd249 (HEAD -> py3)
|
||||
Author: Camillo Lugaresi <[email protected]>
|
||||
Date: Fri Aug 16 00:13:16 2019 -0700
|
||||
|
||||
Fix codesigningtool.py py3 compatibility.
|
||||
|
||||
In recent versions of plistlib, binary data entries are returned as instances of the built-in bytes class, and plistlib.Data is deprecated.
|
||||
Since this script was expecting a plistlib.Data, it would fail with the error "AttributeError: 'bytes' object has no attribute 'data'".
|
||||
This change makes it compatible with both new and old versions of plistlib.
|
||||
|
||||
diff --git a/tools/codesigningtool/codesigningtool.py b/tools/codesigningtool/codesigningtool.py
|
||||
index 59f3841..40cdcf3 100644
|
||||
--- a/tools/codesigningtool/codesigningtool.py
|
||||
+++ b/tools/codesigningtool/codesigningtool.py
|
||||
@@ -102,7 +102,9 @@ def _certificate_fingerprint(identity):
|
||||
def _get_identities_from_provisioning_profile(mpf):
|
||||
"""Iterates through all the identities in a provisioning profile, lazily."""
|
||||
for identity in mpf["DeveloperCertificates"]:
|
||||
- yield _certificate_fingerprint(identity.data)
|
||||
+ if not _PY3:
|
||||
+ identity = identity.data
|
||||
+ yield _certificate_fingerprint(identity)
|
||||
|
||||
|
||||
def _find_codesign_identities(identity=None):
|
||||
@@ -0,0 +1,22 @@
|
||||
commit 065c20bf79253257c87bd4614bb9a7fdef015cbb
|
||||
Author: Camillo Lugaresi <[email protected]>
|
||||
Date: Thu Aug 15 18:34:41 2019 -0700
|
||||
|
||||
Use python3 if available to run gen_git_source.py.
|
||||
|
||||
gen_git_source.py fails with an "ImportError: No module named builtins" on a default installation of Python 2 (at least, the one that comes with macOS). This can be worked around by installing the "future" package from pip. However, instead of requiring users to go through this extra step, we can simply run the script using Python 3 if it's installed. The script works on a default installation of Python 3, without requiring extra packages.
|
||||
|
||||
diff --git a/third_party/git/git_configure.bzl b/third_party/git/git_configure.bzl
|
||||
index fc18fdb988..3ce64242af 100644
|
||||
--- a/third_party/git/git_configure.bzl
|
||||
+++ b/third_party/git/git_configure.bzl
|
||||
@@ -18,6 +18,9 @@ def _get_python_bin(repository_ctx):
|
||||
python_bin = repository_ctx.os.environ.get(_PYTHON_BIN_PATH)
|
||||
if python_bin != None:
|
||||
return python_bin
|
||||
+ python_bin_path = repository_ctx.which("python3")
|
||||
+ if python_bin_path != None:
|
||||
+ return str(python_bin_path)
|
||||
python_bin_path = repository_ctx.which("python")
|
||||
if python_bin_path != None:
|
||||
return str(python_bin_path)
|
||||
@@ -0,0 +1,24 @@
|
||||
commit f67fcbefce906cd419e4657f0d41e21019b71abd (HEAD -> formediapipe)
|
||||
Author: Camillo Lugaresi <[email protected]>
|
||||
Date: Fri Aug 16 12:24:58 2019 -0700
|
||||
|
||||
elementwise requires C++14
|
||||
|
||||
This file fails to compile when using C++11, which is the default. This can be worked around by passing --cxxopt='-std=c++14' as a global build option to Bazel, but it is more convenient for users if we just configure this cc_library to be built with C++14 by default.
|
||||
|
||||
The authors may also want to change it to be compatible with C++11, but that's out of scope for this change.
|
||||
|
||||
diff --git a/tensorflow/lite/delegates/gpu/metal/kernels/BUILD b/tensorflow/lite/delegates/gpu/metal/kernels/BUILD
|
||||
index 17e59e70eb..4302a1f644 100644
|
||||
--- a/tensorflow/lite/delegates/gpu/metal/kernels/BUILD
|
||||
+++ b/tensorflow/lite/delegates/gpu/metal/kernels/BUILD
|
||||
@@ -197,6 +197,9 @@ cc_library(
|
||||
name = "elementwise",
|
||||
srcs = ["elementwise.cc"],
|
||||
hdrs = ["elementwise.h"],
|
||||
+ copts = [
|
||||
+ "-std=c++14",
|
||||
+ ],
|
||||
deps = [
|
||||
"//tensorflow/lite/delegates/gpu/common:model",
|
||||
"//tensorflow/lite/delegates/gpu/common:operations",
|
||||
Reference in New Issue
Block a user