OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be found |
| 3 # in the LICENSE file. |
| 4 |
| 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 |
| 7 group("serialization") { |
| 8 deps = [ |
| 9 ":serialization_example", |
| 10 ] |
| 11 } |
| 12 |
| 13 executable("serialization_example") { |
| 14 sources = [ |
| 15 "main.cc", |
| 16 ] |
| 17 |
| 18 deps = [ |
| 19 ":serialization_mojom", |
| 20 ] |
| 21 } |
| 22 |
| 23 mojom("serialization_mojom") { |
| 24 sources = [ |
| 25 "serialization.mojom", |
| 26 ] |
| 27 |
| 28 # By providing the |dataonly| flag, you can prevent the generated mojom build |
| 29 # target from referencing the mojo system primitives. |
| 30 # |
| 31 # This also means that we can't serialize mojom handle types. |
| 32 dataonly = true |
| 33 } |
OLD | NEW |