From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- .../common/169 source in dep/generated/genheader.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 meson/test cases/common/169 source in dep/generated/genheader.py (limited to 'meson/test cases/common/169 source in dep/generated/genheader.py') diff --git a/meson/test cases/common/169 source in dep/generated/genheader.py b/meson/test cases/common/169 source in dep/generated/genheader.py new file mode 100755 index 000000000..489db23d3 --- /dev/null +++ b/meson/test cases/common/169 source in dep/generated/genheader.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 + +import sys + +ifile = sys.argv[1] +ofile = sys.argv[2] + +templ = '''#pragma once + +int %s(void) { + return 42; +} +''' + +funname = open(ifile).readline().strip() + +open(ofile, 'w').write(templ % funname) -- cgit 1.2.3-korg