Skip to content

Commit

Permalink
meson: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dudemanguy committed Oct 28, 2023
1 parent 891efca commit b852c3c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ tools_directory = join_paths(source_root, 'TOOLS')
docutils_wrapper = find_program(join_paths(tools_directory, 'docutils-wrapper.py'))
file2string = find_program(join_paths(tools_directory, 'file2string.py'))
matroska = find_program(join_paths(tools_directory, 'matroska.py'))
testing_python = find_program('testing_python.py')

ebml_defs = custom_target('ebml_defs.inc',
output: 'ebml_defs.inc',
Expand All @@ -579,7 +580,12 @@ ebml_types = custom_target('ebml_types.h',
command: [matroska, '--generate-header', '@OUTPUT@'],
)

sources += [ebml_defs, ebml_types]
fake = custom_target('fake.h',
output: 'fake.h',
command: [python, testing_python, '@OUTPUT@'],
)

sources += [ebml_defs, ebml_types, fake]

subdir('common')
subdir('etc')
Expand Down
6 changes: 6 additions & 0 deletions testing_python.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env python3
import sys

if __name__ == "__main__":
with open(sys.argv[1], 'w') as f:
f.write("hi\n")

0 comments on commit b852c3c

Please sign in to comment.