| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("../mojo_sdk.gni") | 5 import("../mojo_sdk.gni") |
| 6 | 6 |
| 7 config("c_config") { | 7 config("c_config") { |
| 8 include_dirs = [ "include" ] | 8 include_dirs = [ "include" ] |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 "lib/bindings/struct.c", | 52 "lib/bindings/struct.c", |
| 53 "lib/bindings/type_descriptor.c", | 53 "lib/bindings/type_descriptor.c", |
| 54 "lib/bindings/union.c", | 54 "lib/bindings/union.c", |
| 55 ] | 55 ] |
| 56 | 56 |
| 57 deps = [ | 57 deps = [ |
| 58 ":system", | 58 ":system", |
| 59 ] | 59 ] |
| 60 } | 60 } |
| 61 | 61 |
| 62 mojo_sdk_source_set("bindings_unittests") { |
| 63 testonly = true |
| 64 |
| 65 sources = [ |
| 66 "tests/bindings/array_unittest.cc", |
| 67 "tests/bindings/buffer_unittest.cc", |
| 68 "tests/bindings/message_unittest.cc", |
| 69 "tests/bindings/struct_unittest.cc", |
| 70 "tests/bindings/testing_util.h", |
| 71 "tests/bindings/union_unittest.cc", |
| 72 "tests/bindings/validation_unittest.cc", |
| 73 ] |
| 74 |
| 75 deps = [ |
| 76 ":bindings", |
| 77 "//testing/gtest", |
| 78 ] |
| 79 |
| 80 mojo_sdk_deps = [ |
| 81 "mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", |
| 82 "mojo/public/cpp/bindings/tests:validation_util", |
| 83 "mojo/public/cpp/test_support", |
| 84 "mojo/public/cpp/system", |
| 85 |
| 86 # The "_c" suffix'd target compiles the generated C bindings to this mojom |
| 87 # target. |
| 88 "mojo/public/interfaces/bindings/tests:test_interfaces_c", |
| 89 ] |
| 90 } |
| 91 |
| 62 # common ----------------------------------------------------------------------- | 92 # common ----------------------------------------------------------------------- |
| 63 | 93 |
| 64 # Headers in include/mojo (to be included as <mojo/HEADER.h>). | 94 # Headers in include/mojo (to be included as <mojo/HEADER.h>). |
| 65 # | 95 # |
| 66 # Depends on nothing. | 96 # Depends on nothing. |
| 67 | 97 |
| 68 mojo_sdk_source_set("common") { | 98 mojo_sdk_source_set("common") { |
| 69 public_configs = [ ":c_config" ] | 99 public_configs = [ ":c_config" ] |
| 70 | 100 |
| 71 sources = [ | 101 sources = [ |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 227 |
| 198 cflags = [ "-Wundef" ] | 228 cflags = [ "-Wundef" ] |
| 199 | 229 |
| 200 sources = [ | 230 sources = [ |
| 201 "tests/compile/pure_c.c", | 231 "tests/compile/pure_c.c", |
| 202 "tests/compile/pure_cpp.cc", | 232 "tests/compile/pure_cpp.cc", |
| 203 ] | 233 ] |
| 204 | 234 |
| 205 mojo_sdk_deps = [ "mojo/public/c:environment" ] | 235 mojo_sdk_deps = [ "mojo/public/c:environment" ] |
| 206 } | 236 } |
| OLD | NEW |