mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
commit
732ae5bf81
@ -13,25 +13,22 @@
|
||||
namespace mojo {
|
||||
namespace internal {
|
||||
|
||||
namespace {
|
||||
const ArrayValidateParams* GetMapKeyValidateParamsDefault() {
|
||||
// The memory allocated here never gets released because calling a
|
||||
// destructor at exit time makes clang unhappy.
|
||||
inline const ArrayValidateParams* GetMapKeyValidateParamsDefault() {
|
||||
// The memory allocated here never gets released to not cause an exit time
|
||||
// destructor.
|
||||
static const ArrayValidateParams* validate_params =
|
||||
new ArrayValidateParams(0, false, nullptr);
|
||||
return validate_params;
|
||||
}
|
||||
|
||||
const ArrayValidateParams* GetMapKeyValidateParamsForStrings() {
|
||||
// The memory allocated here never gets released because calling a
|
||||
// destructor at exit time makes clang unhappy.
|
||||
inline const ArrayValidateParams* GetMapKeyValidateParamsForStrings() {
|
||||
// The memory allocated here never gets released to not cause an exit time
|
||||
// destructor.
|
||||
static const ArrayValidateParams* validate_params = new ArrayValidateParams(
|
||||
0, false, new ArrayValidateParams(0, false, nullptr));
|
||||
return validate_params;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
template <typename MapKey>
|
||||
struct MapKeyValidateParamsFactory {
|
||||
static const ArrayValidateParams* Get() {
|
||||
|
||||
@ -286,20 +286,6 @@ def main():
|
||||
target = os.path.join(sdk_ext_dir, relative_source)
|
||||
copy_or_link(source, target)
|
||||
|
||||
lib_mojom_path = os.path.join(lib_path, "mojom")
|
||||
|
||||
# Copy generated mojom.dart files.
|
||||
# HACK(johnmccutchan): This entire step will be removed once all DartPackage
|
||||
# annotations are in place. Until then, skip doing this for the mojo and
|
||||
# mojo_services packages.
|
||||
if (args.package_name != 'mojo') and (args.package_name != 'mojo_services'):
|
||||
generated_mojom_lib_path = os.path.join(args.gen_directory, "mojom/lib")
|
||||
for mojom_source_path in args.mojom_sources:
|
||||
path = mojom_path(mojom_source_path)
|
||||
source_path = '%s.dart' % os.path.join(generated_mojom_lib_path, path)
|
||||
target_path = '%s.dart' % os.path.join(lib_mojom_path, path)
|
||||
copy(source_path, target_path)
|
||||
|
||||
# Symlink packages/
|
||||
package_path = os.path.join(args.package_root, args.package_name)
|
||||
link(lib_path, package_path)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user