Merge pull request #2291 from centricular/fix-custom-target-includes-ordering
backends: Add custom target inc dirs before target inc dirspull/2308/head
commit
77bf63d663
9 changed files with 37 additions and 11 deletions
@ -0,0 +1,6 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
import sys |
||||
import shutil |
||||
|
||||
shutil.copyfile(sys.argv[1], sys.argv[2]) |
@ -0,0 +1 @@ |
||||
#error "ctsub/main.h included" |
@ -0,0 +1,9 @@ |
||||
# https://github.com/mesonbuild/meson/pull/2291 |
||||
copy = find_program('copyfile.py') |
||||
configure_file(input : 'main.h', |
||||
output : 'main.h', |
||||
command : [copy, '@INPUT@', '@OUTPUT@']) |
||||
ctfile = custom_target('emptyfile', |
||||
input : 'emptyfile.c', |
||||
output : 'emptyfile.c', |
||||
command : [copy, '@INPUT@', '@OUTPUT@']) |
Loading…
Reference in new issue