BUILD.gn 1.22 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
# Copyright 2019 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

static_library("encoding") {
  sources = [
    "encoding/encoding.cc",
    "encoding/encoding.h",
  ]
}
11

12 13 14 15 16 17 18
static_library("bindings") {
  sources = [
    "bindings/bindings.cc",
    "bindings/bindings.h",
  ]
}

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
# encoding_test is part of the unittests, defined in
# test/unittests/BUILD.gn.

import("../../gni/v8.gni")

v8_source_set("encoding_test") {
  sources = [
    "encoding/encoding_test.cc",
    "encoding/encoding_test_helper.h",
  ]
  configs = [
    "../..:external_config",
    "../..:internal_config_base",
  ]
  deps = [
    ":encoding",
    "../..:v8_libbase",
    "../../src/inspector:inspector_string_conversions",
    "//testing/gmock",
    "//testing/gtest",
  ]
  testonly = true
}
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61

v8_source_set("bindings_test") {
  sources = [
    "bindings/bindings_test.cc",
    "bindings/bindings_test_helper.h",
  ]
  configs = [
    "../..:external_config",
    "../..:internal_config_base",
  ]
  deps = [
    ":bindings",
    "../..:v8_libbase",
    "../../src/inspector:inspector_string_conversions",
    "//testing/gmock",
    "//testing/gtest",
  ]
  testonly = true
}