The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
386 B
19 lines
386 B
project('mixed C and C++ pch test', 'cpp', 'c') |
|
|
|
|
|
exe = executable( |
|
'prog', |
|
files('main.cc', 'func.c'), |
|
c_pch : ['pch/func.h', 'pch/func_pch.c'], |
|
cpp_pch : ['pch/main_pch.cc', 'pch/main.h'], |
|
) |
|
|
|
cc = meson.get_compiler('c') |
|
if cc.get_id() != 'msvc' |
|
exe2 = executable( |
|
'prog2', |
|
files('main.cc', 'func.c'), |
|
c_pch : 'pch/func.h', |
|
cpp_pch : 'pch/main.h', |
|
) |
|
endif
|
|
|