b6e680647c
GitOrigin-RevId: d1277f8cb42aa228165e96775687ff2e0effffcf
76 lines
2.2 KiB
Plaintext
76 lines
2.2 KiB
Plaintext
# The bazelrc file for MediaPipe OSS.
|
|
|
|
# Basic build settings
|
|
build --jobs 128
|
|
build --define='absl=1'
|
|
build --cxxopt='-std=c++14'
|
|
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'
|
|
|
|
# Tensorflow needs remote repo
|
|
build --experimental_repo_remote_exec
|
|
|
|
# Sets the default Apple platform to macOS.
|
|
build --apple_platform_type=macos
|
|
|
|
# Allow debugging with XCODE
|
|
build --apple_generate_dsym
|
|
|
|
# Android configs.
|
|
# 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.
|
|
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
|
|
|
|
# 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
|
|
|
|
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
|