diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/failing/93 custom target install data | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/failing/93 custom target install data')
4 files changed, 32 insertions, 0 deletions
diff --git a/meson/test cases/failing/93 custom target install data/Info.plist.cpp b/meson/test cases/failing/93 custom target install data/Info.plist.cpp new file mode 100644 index 000000000..9ca2fcbaf --- /dev/null +++ b/meson/test cases/failing/93 custom target install data/Info.plist.cpp @@ -0,0 +1 @@ +Some data which gets processed before installation diff --git a/meson/test cases/failing/93 custom target install data/meson.build b/meson/test cases/failing/93 custom target install data/meson.build new file mode 100644 index 000000000..00d348cc0 --- /dev/null +++ b/meson/test cases/failing/93 custom target install data/meson.build @@ -0,0 +1,11 @@ +project('custom target install data') + +preproc = find_program('preproc.py') + +t = custom_target('Info.plist', + command: [preproc, '@INPUT@', '@OUTPUT@'], + input: 'Info.plist.cpp', + output: 'Info.plist', +) + +install_data(t) diff --git a/meson/test cases/failing/93 custom target install data/preproc.py b/meson/test cases/failing/93 custom target install data/preproc.py new file mode 100644 index 000000000..e6eba4c6a --- /dev/null +++ b/meson/test cases/failing/93 custom target install data/preproc.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 + +import sys + +if len(sys.argv) != 3: + print(sys.argv[0], '<input>', '<output>') + +inf = sys.argv[1] +outf = sys.argv[2] + +with open(outf, 'wb') as o: + with open(inf, 'rb') as i: + o.write(i.read()) diff --git a/meson/test cases/failing/93 custom target install data/test.json b/meson/test cases/failing/93 custom target install data/test.json new file mode 100644 index 000000000..caeafb159 --- /dev/null +++ b/meson/test cases/failing/93 custom target install data/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/93 custom target install data/meson.build:11:0: ERROR: install_data argument 1 was of type \"CustomTarget\" but should have been one of: \"str\", \"File\"" + } + ] +} |