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