OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 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_data_only", |
| 20 |
| 21 # This is needed for ASAN builds. |
| 22 "//build/config/sanitizers:deps", |
| 23 |
| 24 # This provides an |Environment| implementation needed for the |
| 25 # |:serialization_mojom_data_only| dep above. |
| 26 "//mojo/public/cpp/environment:logging_only", |
| 27 ] |
| 28 } |
| 29 |
| 30 # This template generates a |serialization_mojom_data_only| target which |
| 31 # provides C++ serialization bindings for this mojom without bringing in the |
| 32 # mojo system. |
| 33 mojom("serialization_mojom") { |
| 34 sources = [ |
| 35 "serialization.mojom", |
| 36 ] |
| 37 } |
OLD | NEW |