1# Copyright 2021 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15package(default_visibility = ["//visibility:public"]) 16 17licenses(["notice"]) 18 19constraint_setting( 20 name = "rtos", 21 default_constraint_value = "none", 22) 23 24constraint_value( 25 name = "none", 26 constraint_setting = ":rtos", 27) 28 29config_setting( 30 name = "none_setting", 31 flag_values = { 32 "//targets:target_rtos": ":none", 33 }, 34) 35 36constraint_value( 37 name = "embos", 38 constraint_setting = ":rtos", 39) 40 41config_setting( 42 name = "embos_setting", 43 flag_values = { 44 "//targets:target_rtos": ":embos", 45 }, 46) 47 48constraint_value( 49 name = "freertos", 50 constraint_setting = ":rtos", 51) 52 53config_setting( 54 name = "freertos_setting", 55 flag_values = { 56 "//targets:target_rtos": ":freertos", 57 }, 58) 59 60constraint_value( 61 name = "threadx", 62 constraint_setting = ":rtos", 63) 64 65config_setting( 66 name = "threadx_setting", 67 flag_values = { 68 "//targets:target_rtos": ":threadx", 69 }, 70) 71