2019-06-17 01:03:25 +02:00
|
|
|
# The bazelrc file for MediaPipe OSS.
|
|
|
|
|
|
|
|
# Basic build settings
|
|
|
|
build --jobs 128
|
|
|
|
build --define='absl=1'
|
2019-11-15 20:38:21 +01:00
|
|
|
build --cxxopt='-std=c++14'
|
2019-06-17 01:03:25 +02:00
|
|
|
build --copt='-Wno-sign-compare'
|
|
|
|
build --copt='-Wno-unused-function'
|
|
|
|
build --copt='-Wno-uninitialized'
|
|
|
|
build --copt='-Wno-unused-result'
|
|
|
|
build --copt='-Wno-comment'
|
|
|
|
build --copt='-Wno-return-type'
|
|
|
|
build --copt='-Wno-unused-local-typedefs'
|
|
|
|
build --copt='-Wno-ignored-attributes'
|
2020-04-07 04:10:12 +02:00
|
|
|
|
|
|
|
# Tensorflow needs remote repo
|
|
|
|
build --experimental_repo_remote_exec
|
2019-06-17 01:03:25 +02:00
|
|
|
|
|
|
|
# Sets the default Apple platform to macOS.
|
|
|
|
build --apple_platform_type=macos
|
|
|
|
|
2019-12-07 00:33:11 +01:00
|
|
|
# Allow debugging with XCODE
|
|
|
|
build --apple_generate_dsym
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
# Android configs.
|
2020-04-07 04:10:12 +02:00
|
|
|
# Note: the documentation tells us to use @androidndk//:default_crosstool, but
|
|
|
|
# the automatic configuration transition uses //external:android/crosstool.
|
|
|
|
# Using it here works and spares us from having two different config_settings
|
|
|
|
# for Android.
|
2019-06-17 01:03:25 +02:00
|
|
|
build:android --crosstool_top=//external:android/crosstool
|
|
|
|
build:android --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
|
|
|
|
build:android --linkopt=-landroid
|
|
|
|
build:android --linkopt=-ldl
|
|
|
|
build:android --linkopt=-llog
|
|
|
|
build:android --linkopt=-lm
|
|
|
|
build:android --linkopt=-Wl,--gc-sections
|
|
|
|
|
|
|
|
build:android_arm --config=android
|
|
|
|
build:android_arm --cpu=armeabi-v7a
|
|
|
|
build:android_arm --fat_apk_cpu=armeabi-v7a
|
|
|
|
|
|
|
|
build:android_arm64 --config=android
|
|
|
|
build:android_arm64 --cpu=arm64-v8a
|
|
|
|
build:android_arm64 --fat_apk_cpu=arm64-v8a
|
2019-08-17 03:49:25 +02:00
|
|
|
|
|
|
|
# iOS configs.
|
|
|
|
build:ios --apple_platform_type=ios
|
|
|
|
|
|
|
|
build:ios_i386 --config=ios
|
|
|
|
build:ios_i386 --cpu=ios_i386
|
|
|
|
build:ios_i386 --watchos_cpus=i386
|
|
|
|
|
|
|
|
build:ios_x86_64 --config=ios
|
|
|
|
build:ios_x86_64 --cpu=ios_x86_64
|
|
|
|
build:ios_x86_64 --watchos_cpus=i386
|
|
|
|
|
|
|
|
build:ios_armv7 --config=ios
|
|
|
|
build:ios_armv7 --cpu=ios_armv7
|
|
|
|
build:ios_armv7 --watchos_cpus=armv7k
|
|
|
|
|
|
|
|
build:ios_arm64 --config=ios
|
|
|
|
build:ios_arm64 --cpu=ios_arm64
|
|
|
|
build:ios_arm64 --watchos_cpus=armv7k
|
|
|
|
|
|
|
|
build:ios_arm64e --config=ios
|
|
|
|
build:ios_arm64e --cpu=ios_arm64e
|
|
|
|
build:ios_arm64e --watchos_cpus=armv7k
|
|
|
|
|
|
|
|
build:ios_fat --config=ios
|
|
|
|
build:ios_fat --ios_multi_cpus=armv7,arm64
|
|
|
|
build:ios_fat --watchos_cpus=armv7k
|
2020-04-24 23:06:05 +02:00
|
|
|
|
|
|
|
build:darwin_x86_64 --apple_platform_type=macos
|
|
|
|
build:darwin_x86_64 --macos_minimum_os=10.12
|
|
|
|
build:darwin_x86_64 --cpu=darwin_x86_64
|