diff options
Diffstat (limited to 'meson/test cases/osx/7 bitcode')
-rw-r--r-- | meson/test cases/osx/7 bitcode/libbar.mm | 7 | ||||
-rw-r--r-- | meson/test cases/osx/7 bitcode/libfile.c | 5 | ||||
-rw-r--r-- | meson/test cases/osx/7 bitcode/libfoo.m | 7 | ||||
-rw-r--r-- | meson/test cases/osx/7 bitcode/meson.build | 10 | ||||
-rw-r--r-- | meson/test cases/osx/7 bitcode/vis.h | 6 |
5 files changed, 35 insertions, 0 deletions
diff --git a/meson/test cases/osx/7 bitcode/libbar.mm b/meson/test cases/osx/7 bitcode/libbar.mm new file mode 100644 index 000000000..d9201c129 --- /dev/null +++ b/meson/test cases/osx/7 bitcode/libbar.mm @@ -0,0 +1,7 @@ +#import <stdio.h> +#import "vis.h" + +int EXPORT_PUBLIC libbar(void) { + return 0; +} + diff --git a/meson/test cases/osx/7 bitcode/libfile.c b/meson/test cases/osx/7 bitcode/libfile.c new file mode 100644 index 000000000..8edc66b27 --- /dev/null +++ b/meson/test cases/osx/7 bitcode/libfile.c @@ -0,0 +1,5 @@ +#include "vis.h" + +int EXPORT_PUBLIC libfunc(void) { + return 3; +} diff --git a/meson/test cases/osx/7 bitcode/libfoo.m b/meson/test cases/osx/7 bitcode/libfoo.m new file mode 100644 index 000000000..f1c35a9f3 --- /dev/null +++ b/meson/test cases/osx/7 bitcode/libfoo.m @@ -0,0 +1,7 @@ +#import <stdio.h> +#import "vis.h" + +int EXPORT_PUBLIC libfoo(void) { + return 0; +} + diff --git a/meson/test cases/osx/7 bitcode/meson.build b/meson/test cases/osx/7 bitcode/meson.build new file mode 100644 index 000000000..f94bf9d3d --- /dev/null +++ b/meson/test cases/osx/7 bitcode/meson.build @@ -0,0 +1,10 @@ +project('bitcode test', 'c', 'objc', 'objcpp') + +both_libraries('alib', 'libfoo.m') +shared_module('amodule', 'libfoo.m') + +both_libraries('blib', 'libbar.mm') +shared_module('bmodule', 'libbar.mm') + +both_libraries('clib', 'libfile.c') +shared_module('cmodule', 'libfile.c') diff --git a/meson/test cases/osx/7 bitcode/vis.h b/meson/test cases/osx/7 bitcode/vis.h new file mode 100644 index 000000000..fa252b4ce --- /dev/null +++ b/meson/test cases/osx/7 bitcode/vis.h @@ -0,0 +1,6 @@ +#if defined __GNUC__ + #define EXPORT_PUBLIC __attribute__ ((visibility("default"))) +#else + #pragma message ("Compiler does not support symbol visibility.") + #define EXPORT_PUBLIC +#endif |