Verify Flutter clang module, add hook for verifying consumer warnings (flutter/engine#21203)
This commit is contained in:
@@ -305,17 +305,26 @@ copy("copy_license") {
|
||||
outputs = [ "$root_out_dir/LICENSE" ]
|
||||
}
|
||||
|
||||
shared_library("copy_and_verify_framework_headers") {
|
||||
shared_library("copy_and_verify_framework_module") {
|
||||
framework_search_path = rebase_path("$root_out_dir")
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [ "$_flutter_framework_headers_copy_dir" ]
|
||||
cflags_objc = [
|
||||
"-F$framework_search_path",
|
||||
"-fmodules",
|
||||
"-Wnon-modular-include-in-framework-module",
|
||||
]
|
||||
|
||||
sources = [ "framework/Source/FlutterUmbrellaImport.m" ]
|
||||
deps = [ ":copy_framework_headers" ]
|
||||
deps = [
|
||||
":copy_framework_headers",
|
||||
":copy_framework_info_plist",
|
||||
":copy_framework_module_map",
|
||||
]
|
||||
}
|
||||
|
||||
group("flutter_framework") {
|
||||
deps = [
|
||||
":copy_and_verify_framework_headers",
|
||||
":copy_and_verify_framework_module",
|
||||
":copy_dylib",
|
||||
":copy_framework_icu",
|
||||
":copy_framework_info_plist",
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
|
||||
// The only point of this file is to ensure that the Flutter framework umbrella header can be
|
||||
// cleanly imported from an Objective-C translation unit. The target that uses this file copies the
|
||||
// headers to a path that simulats how users would actually consume the framework outside of the
|
||||
// headers to a path that simulates how users would actually import the framework outside of the
|
||||
// engine source root.
|
||||
#import "Flutter.h"
|
||||
#import <Flutter/Flutter.h>
|
||||
|
||||
Reference in New Issue
Block a user