1# Copyright 2016 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5_typemap_imports = [ 6 "//ash/public/interfaces/typemaps.gni", 7 "//cc/ipc/typemaps.gni", 8 "//chrome/browser/media/router/mojo/typemaps.gni", 9 "//chrome/common/extensions/typemaps.gni", 10 "//chrome/common/importer/typemaps.gni", 11 "//chrome/typemaps.gni", 12 "//components/arc/common/typemaps.gni", 13 "//components/metrics/public/cpp/typemaps.gni", 14 "//components/typemaps.gni", 15 "//content/common/bluetooth/typemaps.gni", 16 "//content/common/indexed_db/typemaps.gni", 17 "//content/common/presentation/typemaps.gni", 18 "//content/common/typemaps.gni", 19 "//content/public/common/typemaps.gni", 20 "//device/bluetooth/public/interfaces/typemaps.gni", 21 "//device/gamepad/public/interfaces/typemaps.gni", 22 "//device/generic_sensor/public/interfaces/typemaps.gni", 23 "//device/usb/public/interfaces/typemaps.gni", 24 "//gpu/ipc/common/typemaps.gni", 25 "//media/capture/mojo/typemaps.gni", 26 "//media/mojo/interfaces/typemaps.gni", 27 "//mojo/common/typemaps.gni", 28 "//mojo/public/cpp/bindings/tests/chromium_typemaps.gni", 29 "//net/interfaces/typemaps.gni", 30 "//services/preferences/public/cpp/typemaps.gni", 31 "//services/resource_coordinator/public/cpp/typemaps.gni", 32 "//services/service_manager/public/cpp/typemaps.gni", 33 "//services/ui/gpu/interfaces/typemaps.gni", 34 "//services/ui/public/interfaces/ime/typemaps.gni", 35 "//services/video_capture/public/interfaces/typemaps.gni", 36 "//skia/public/interfaces/typemaps.gni", 37 "//third_party/WebKit/public/public_typemaps.gni", 38 "//ui/base/mojo/typemaps.gni", 39 "//ui/display/mojo/typemaps.gni", 40 "//ui/events/devices/mojo/typemaps.gni", 41 "//ui/events/mojo/typemaps.gni", 42 "//ui/gfx/typemaps.gni", 43 "//ui/message_center/mojo/typemaps.gni", 44 "//url/mojo/typemaps.gni", 45] 46 47_typemap_imports_mac = [ "//content/common/typemaps_mac.gni" ] 48 49_typemaps = [] 50foreach(typemap_import, _typemap_imports) { 51 # Avoid reassignment error by assigning to empty scope first. 52 _imported = { 53 } 54 _imported = read_file(typemap_import, "scope") 55 _typemaps += _imported.typemaps 56} 57 58typemaps = [] 59foreach(typemap, _typemaps) { 60 typemaps += [ { 61 filename = typemap 62 config = read_file(typemap, "scope") 63 } ] 64} 65 66_typemaps_mac = [] 67foreach(typemap_import, _typemap_imports_mac) { 68 _imported = { 69 } 70 _imported = read_file(typemap_import, "scope") 71 _typemaps_mac += _imported.typemaps 72} 73 74typemaps_mac = [] 75foreach(typemap, _typemaps_mac) { 76 typemaps_mac += [ { 77 filename = typemap 78 config = read_file(typemap, "scope") 79 } ] 80} 81