1 Star 0 Fork 11

康哈哈/native-turbo

forked from openEuler/native-turbo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
meson.build 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
# SPDX-License-Identifier: MulanPSL-2.0
project('DFE', 'C',
version: run_command(find_program('cat', 'more'), files('VERSION'), check: true).stdout().strip(),
license: 'MulanPSL',
default_options: [
'buildtype=release',
'default_library=static',
'warning_level=2',
],
meson_version: '>= 0.49.2'
)
# set up some global vars for compiler, platform, configuration, etc.
cc = meson.get_compiler('c')
si_source_root = meson.current_source_dir()
si_build_root = meson.current_build_dir()
si_static_libraries = []
abi_version_file = files('ABI_VERSION')
if host_machine.cpu_family().startswith('x86')
arch_subdir = 'x86'
elif host_machine.cpu_family().startswith('arm') or host_machine.cpu_family().startswith('aarch')
arch_subdir = 'arm'
elif host_machine.cpu_family().startswith('riscv')
arch_subdir = 'riscv'
endif
machine_args = ['-Wall', '-Werror', '-Wextra', '-Wformat', '-D_GNU_SOURCE',
'-fno-jump-tables', '-Wl,-z,relro,-z,now', '-Bsymbolic', '-zcommon-page-size=2097152', '-zmax-page-size=2097152']
lk_args = ['-Wl,--emit-relocs', '-Wl,-z,relro,-z,now']
global_inc = include_directories('.',
'lib/sys/include',
#'lib/sys/@0@/include'.format(host_machine.system()),
#'lib/sys/@0@/include'.format(arch_subdir),
)
# build libs
subdir('lib')
subdir('tests')
# final output, list all the libs and drivers to be built
# this does not affect any part of the build, for information only.
output_message = '\n=================\nLibraries Enabled\n=================\n'
output_message += '\nlibs:\n\t'
output_count = 0
foreach lib:enabled_libs
output_message += lib + ', '
output_count += 1
if output_count == 8
output_message += '\n\t'
output_count = 0
endif
endforeach
message(output_message + '\n')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kang_yan_hong/native-turbo.git
git@gitee.com:kang_yan_hong/native-turbo.git
kang_yan_hong
native-turbo
native-turbo
master

搜索帮助