unit-test for testing xcode frameworks

This commit is contained in:
blackbox 2017-04-09 22:02:16 +02:00 committed by Roger Boerdijk
parent db176c85db
commit 8de5313288
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Primitive test for adding frameworks in XCode
# When opening the xcodeproj, the Folder "Frameworks" should contain two frameworks (OpenGL.framework and Foundation.framework)
# "Target Membership" of ...
# - OpenGL.framework should be only to prog@exe
# - Foundation.framework should be only to stat@sta
# "Build Phase" / "Link Binary with Libraries" for the target
# - "prog@exe" should be only "Foundation.framework"
# - "stat@sta" should be only "OpenGL.framework"
# see "xcode-frameworks.png" for an example
project('xcode framework test', 'c', default_options : ['libdir=libtest'])
dep_libs = [dependency('appleframeworks', modules : ['OpenGL'], required : true)]
dep_main = [dependency('appleframeworks', modules : ['Foundation'], required : true)]
stlib = static_library('stat', 'stat.c', install : true, dependencies: dep_libs)
exe = executable('prog', 'prog.c', install : true, dependencies: dep_main)

View File

@ -0,0 +1,3 @@
int main(int argc, char **argv) {
return 0;
}

View File

@ -0,0 +1 @@
int func() { return 933; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 KiB