[flutter_tools] copy flutter_texture_registrar.h header on Windows (#61098)

This commit is contained in:
Niklas Schulze 2021-01-15 22:20:57 +01:00 committed by GitHub
parent ac1ebf4889
commit afe790775b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -22,6 +22,7 @@ const List<String> _kWindowsArtifacts = <String>[
'flutter_export.h',
'flutter_messenger.h',
'flutter_plugin_registrar.h',
'flutter_texture_registrar.h',
'flutter_windows.h',
];

View file

@ -23,6 +23,7 @@ list(APPEND FLUTTER_LIBRARY_HEADERS
"flutter_windows.h"
"flutter_messenger.h"
"flutter_plugin_registrar.h"
"flutter_texture_registrar.h"
)
list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
add_library(flutter INTERFACE)

View file

@ -56,6 +56,7 @@ void main() {
'$windowsDesktopPath\\flutter_windows.dll.lib',
'$windowsDesktopPath\\flutter_windows.dll.pdb',
'$windowsDesktopPath\\flutter_plugin_registrar.h',
'$windowsDesktopPath\\flutter_texture_registrar.h',
'$windowsDesktopPath\\flutter_windows.h',
icuData,
'$windowsCppClientWrapper\\foo',
@ -79,6 +80,7 @@ void main() {
expect(fileSystem.file(r'C:\windows\flutter\ephemeral\flutter_export.h'), exists);
expect(fileSystem.file(r'C:\windows\flutter\ephemeral\flutter_messenger.h'), exists);
expect(fileSystem.file(r'C:\windows\flutter\ephemeral\flutter_plugin_registrar.h'), exists);
expect(fileSystem.file(r'C:\windows\flutter\ephemeral\flutter_texture_registrar.h'), exists);
expect(fileSystem.file(r'C:\windows\flutter\ephemeral\flutter_windows.h'), exists);
expect(fileSystem.file('C:\\windows\\flutter\\ephemeral\\$icuData'), exists);
expect(fileSystem.file('C:\\windows\\flutter\\ephemeral\\$windowsCppClientWrapper\\foo'), exists);
@ -103,6 +105,7 @@ void main() {
'$windowsDesktopPath\\flutter_windows.dll.lib',
'$windowsDesktopPath\\flutter_windows.dll.pdb',
'$windowsDesktopPath\\flutter_plugin_registrar.h',
'$windowsDesktopPath\\flutter_texture_registrar.h',
'$windowsDesktopPath\\flutter_windows.h',
icuData,
'$windowsCppClientWrapper\\foo',
@ -115,6 +118,7 @@ void main() {
r'C:\windows\flutter\ephemeral\flutter_windows.dll.lib',
r'C:\windows\flutter\ephemeral\flutter_windows.dll.pdb',
r'C:\windows\flutter\ephemeral\flutter_plugin_registrar.h',
r'C:\windows\flutter\ephemeral\flutter_texture_registrar.h',
r'C:\windows\flutter\ephemeral\flutter_windows.h',
'C:\\windows\\flutter\\ephemeral\\$icuData',
'C:\\windows\\flutter\\ephemeral\\$windowsCppClientWrapper\\foo',