Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (16 sloc) 950 Bytes
project('cpuid', 'c')
compiler = meson.get_compiler('c')
gen_build_h = custom_target('build.h',
input : [],
output : ['build.h'],
command : [meson.current_source_dir() + '/tools/build.pl', '@OUTPUT@'])
gen_license_h = custom_target('license.h',
input : ['COPYING'],
output : ['license.h'],
command : [meson.current_source_dir() + '/tools/license.pl', '@INPUT@', '@OUTPUT@'])
src = ['cache.c', 'clock.c', 'cpuid.c', 'feature.c', 'handlers.c', 'main.c', 'sanity.c', 'threads.c', 'util.c', 'version.c']
incdirs = include_directories('.')
lm = compiler.find_library('m')
threads = dependency('threads')
executable('cpuid', src, gen_build_h, gen_license_h, include_directories : incdirs, link_args : '-pthread', dependencies : [lm, threads])
# vim: set ts=4 sts=4 sw=4 et:
You can’t perform that action at this time.