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 --- meson/test cases/osx/5 extra frameworks/meson.build | 13 +++++++++++++ meson/test cases/osx/5 extra frameworks/prog.c | 3 +++ meson/test cases/osx/5 extra frameworks/stat.c | 1 + meson/test cases/osx/5 extra frameworks/test.json | 6 ++++++ 4 files changed, 23 insertions(+) create mode 100644 meson/test cases/osx/5 extra frameworks/meson.build create mode 100644 meson/test cases/osx/5 extra frameworks/prog.c create mode 100644 meson/test cases/osx/5 extra frameworks/stat.c create mode 100644 meson/test cases/osx/5 extra frameworks/test.json (limited to 'meson/test cases/osx/5 extra frameworks') diff --git a/meson/test cases/osx/5 extra frameworks/meson.build b/meson/test cases/osx/5 extra frameworks/meson.build new file mode 100644 index 000000000..cb4847ea6 --- /dev/null +++ b/meson/test cases/osx/5 extra frameworks/meson.build @@ -0,0 +1,13 @@ +project('xcode extra framework test', 'c') + +dep_libs = dependency('OpenGL', method : 'extraframework') +assert(dep_libs.type_name() == 'extraframeworks', 'type_name is ' + dep_libs.type_name()) + +dep_main = dependency('Foundation') +assert(dep_main.type_name() == 'extraframeworks', 'type_name is ' + dep_main.type_name()) + +dep_py = dependency('python', method : 'extraframework') +assert(dep_main.type_name() == 'extraframeworks', 'type_name is ' + dep_main.type_name()) + +stlib = static_library('stat', 'stat.c', install : true, dependencies: dep_libs) +exe = executable('prog', 'prog.c', install : true, dependencies: dep_main) diff --git a/meson/test cases/osx/5 extra frameworks/prog.c b/meson/test cases/osx/5 extra frameworks/prog.c new file mode 100644 index 000000000..9b6bdc2ec --- /dev/null +++ b/meson/test cases/osx/5 extra frameworks/prog.c @@ -0,0 +1,3 @@ +int main(void) { + return 0; +} diff --git a/meson/test cases/osx/5 extra frameworks/stat.c b/meson/test cases/osx/5 extra frameworks/stat.c new file mode 100644 index 000000000..4825cefd2 --- /dev/null +++ b/meson/test cases/osx/5 extra frameworks/stat.c @@ -0,0 +1 @@ +int func(void) { return 933; } diff --git a/meson/test cases/osx/5 extra frameworks/test.json b/meson/test cases/osx/5 extra frameworks/test.json new file mode 100644 index 000000000..8def69a39 --- /dev/null +++ b/meson/test cases/osx/5 extra frameworks/test.json @@ -0,0 +1,6 @@ +{ + "installed": [ + {"type": "file", "file": "usr/bin/prog"}, + {"type": "file", "file": "usr/lib/libstat.a"} + ] +} -- cgit