1*49fe348cSAndroid Build Coastguard Worker# Copyright © 2022 Intel Corporation 2*49fe348cSAndroid Build Coastguard Worker# 3*49fe348cSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 4*49fe348cSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 5*49fe348cSAndroid Build Coastguard Worker# You may obtain a copy of the License at: 6*49fe348cSAndroid Build Coastguard Worker# 7*49fe348cSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 8*49fe348cSAndroid Build Coastguard Worker# 9*49fe348cSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 10*49fe348cSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 11*49fe348cSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*49fe348cSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 13*49fe348cSAndroid Build Coastguard Worker# limitations under the License. 14*49fe348cSAndroid Build Coastguard Worker 15*49fe348cSAndroid Build Coastguard Workerproject('lc3', 'c', 16*49fe348cSAndroid Build Coastguard Worker version: '1.1.0', 17*49fe348cSAndroid Build Coastguard Worker license: 'Apache-2.0', 18*49fe348cSAndroid Build Coastguard Worker meson_version: '>= 0.48.0', 19*49fe348cSAndroid Build Coastguard Worker default_options: ['buildtype=release', 'b_lto=true']) 20*49fe348cSAndroid Build Coastguard Worker 21*49fe348cSAndroid Build Coastguard Workercc = meson.get_compiler('c') 22*49fe348cSAndroid Build Coastguard Worker 23*49fe348cSAndroid Build Coastguard Workerif cc.get_id() == 'msvc' 24*49fe348cSAndroid Build Coastguard Worker add_project_arguments(['/wd4244', '/wd4305', '/fp:fast'], language: 'c') 25*49fe348cSAndroid Build Coastguard Workerelse 26*49fe348cSAndroid Build Coastguard Worker add_project_arguments('-ffast-math', language: 'c') 27*49fe348cSAndroid Build Coastguard Workerendif 28*49fe348cSAndroid Build Coastguard Worker 29*49fe348cSAndroid Build Coastguard Worker 30*49fe348cSAndroid Build Coastguard Workerm_dep = cc.find_library('m', required: false) 31*49fe348cSAndroid Build Coastguard Worker 32*49fe348cSAndroid Build Coastguard Workersubdir('src') 33*49fe348cSAndroid Build Coastguard Worker 34*49fe348cSAndroid Build Coastguard Workerif get_option('tools') 35*49fe348cSAndroid Build Coastguard Worker subdir('tools') 36*49fe348cSAndroid Build Coastguard Workerendif 37*49fe348cSAndroid Build Coastguard Worker 38*49fe348cSAndroid Build Coastguard Workerif get_option('python') 39*49fe348cSAndroid Build Coastguard Worker subdir('python') 40*49fe348cSAndroid Build Coastguard Workerendif 41