@@ -40,13 +40,13 @@ void main() {
40
40
};
41
41
42
42
const dumpbinFileType = {
43
- Packaging .dynamic : 'DLL' ,
44
- Packaging .static : 'LIBRARY' ,
43
+ LinkMode .dynamic : 'DLL' ,
44
+ LinkMode .static : 'LIBRARY' ,
45
45
};
46
46
47
- for (final packaging in Packaging .values) {
47
+ for (final linkMode in LinkMode .values) {
48
48
for (final target in targets) {
49
- test ('Cbuilder $packaging library $target ' , timeout: Timeout .factor (2 ),
49
+ test ('Cbuilder $linkMode library $target ' , timeout: Timeout .factor (2 ),
50
50
() async {
51
51
await inTempDir ((tempUri) async {
52
52
final addCUri =
@@ -57,9 +57,9 @@ void main() {
57
57
outDir: tempUri,
58
58
packageRoot: tempUri,
59
59
target: target,
60
- packaging : packaging == Packaging .dynamic
61
- ? PackagingPreference .dynamic
62
- : PackagingPreference .static ,
60
+ linkModePreference : linkMode == LinkMode .dynamic
61
+ ? LinkModePreference .dynamic
62
+ : LinkModePreference .static ,
63
63
);
64
64
final buildOutput = BuildOutput ();
65
65
@@ -75,7 +75,7 @@ void main() {
75
75
);
76
76
77
77
final libUri =
78
- tempUri.resolve (target.os.libraryFileName (name, packaging ));
78
+ tempUri.resolve (target.os.libraryFileName (name, linkMode ));
79
79
expect (await File .fromUri (libUri).exists (), true );
80
80
final result = await runProcess (
81
81
executable: dumpbinUri,
@@ -90,7 +90,7 @@ void main() {
90
90
final fileType = result.stdout
91
91
.split ('\n ' )
92
92
.firstWhere ((e) => e.contains ('File Type' ));
93
- expect (fileType, contains (dumpbinFileType[packaging ]));
93
+ expect (fileType, contains (dumpbinFileType[linkMode ]));
94
94
});
95
95
});
96
96
}
0 commit comments