This switches some `shared_library()` calls to `library()` and adds one new CI matrix entries for -Ddefault_library={static, both}.pull/8912/head
parent
0c4dd81c4d
commit
c4b8e03895
27 changed files with 66 additions and 29 deletions
@ -1,3 +1,3 @@ |
||||
project('lib@root', 'c') |
||||
lib = shared_library('lib', 'lib.c') |
||||
lib = library('lib', 'lib.c') |
||||
subdir('main') |
||||
|
@ -1,2 +1,2 @@ |
||||
project('shared lib', 'c') |
||||
shared_library('foo', 'foo.c') |
||||
library('foo', 'foo.c') |
||||
|
@ -1,4 +1,4 @@ |
||||
project('B', 'c') |
||||
C = subproject('C') |
||||
c = C.get_variable('c') |
||||
b = shared_library('b', 'b.c', link_with : c) |
||||
b = library('b', 'b.c', link_with : c) |
||||
|
@ -1,2 +1,2 @@ |
||||
project('C', 'c') |
||||
c = shared_library('c', 'c.c') |
||||
c = library('c', 'c.c') |
||||
|
@ -1 +1 @@ |
||||
other = shared_library('other', 'custom_subproject_dir/other.c') |
||||
other = library('other', 'custom_subproject_dir/other.c') |
||||
|
@ -1,4 +1,4 @@ |
||||
project('alpha project', 'c', subproject_dir: 'var/subprojects') |
||||
|
||||
b = subproject('beta') |
||||
l = shared_library('a', 'a.c', link_with : b.get_variable('lb')) |
||||
l = library('a', 'a.c', link_with : b.get_variable('lb')) |
||||
|
@ -0,0 +1,8 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
from pathlib import Path |
||||
import sys |
||||
|
||||
if __name__ == '__main__': |
||||
Path(sys.argv[1]).write_text('Hello World\n') |
||||
raise SystemExit(0) |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"matrix": { |
||||
"options": { |
||||
"default_library": [ { "val": "both" } ] |
||||
} |
||||
} |
||||
} |
@ -1,4 +1,4 @@ |
||||
project('B', 'c') |
||||
C = subproject('C') |
||||
c = C.get_variable('c') |
||||
b = shared_library('b', 'b.c', link_with : c) |
||||
b = library('b', 'b.c', link_with : c) |
||||
|
@ -1,2 +1,2 @@ |
||||
project('C', 'c') |
||||
c = shared_library('c', 'c.c') |
||||
c = library('c', 'c.c') |
||||
|
@ -1,4 +1,4 @@ |
||||
project('B', 'c') |
||||
C = subproject('C') |
||||
c = C.get_variable('c') |
||||
b = shared_library('b', 'b.c', link_with : c) |
||||
b = library('b', 'b.c', link_with : c) |
||||
|
@ -1,2 +1,2 @@ |
||||
project('C', 'c') |
||||
c = shared_library('c', 'c.c') |
||||
c = library('c', 'c.c') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('extract subproject object -- subproject', 'c') |
||||
|
||||
lib = shared_library('sub_lib', 'sub_lib.c') |
||||
lib = library('sub_lib', 'sub_lib.c') |
||||
|
@ -1,5 +1,10 @@ |
||||
{ |
||||
"installed": [ |
||||
{"file": "usr/lib/libmainstatic.a", "type": "file"} |
||||
] |
||||
} |
||||
], |
||||
"matrix": { |
||||
"options": { |
||||
"default_library": [ { "val": "static" } ] |
||||
} |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue