Hash :
27460dfc
Author :
Date :
2015-10-15T23:48:34
Do not attempt to compile angle_end2end_tests or angle_perftests on Android BUG=507294 Change-Id: Ied198a26f5eecab1dc608a06c2cc5e3be08cc28c Reviewed-on: https://chromium-review.googlesource.com/306460 Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Tested-by: Peter Kotwicz <pkotwicz@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/test.gni")
import("//third_party/angle/build/angle_common.gni")
unittests_gypi = exec_script("//build/gypi_to_gn.py",
[
rebase_path("angle_unittests.gypi"),
"--replace=<(angle_path)=.",
],
"scope",
[ "angle_unittests.gypi" ])
test("angle_unittests") {
include_dirs = [
"testing/gtest/include",
"../../src",
]
sources = rebase_path(unittests_gypi.angle_unittests_sources, ".", "../..")
if (angle_enable_hlsl) {
sources +=
rebase_path(unittests_gypi.angle_unittests_hlsl_sources, ".", "../..")
}
sources += [ "//gpu/angle_unittest_main.cc" ]
deps = [
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/angle:libANGLE",
"//third_party/angle:preprocessor",
"//third_party/angle:translator_static",
]
}
if (is_win || is_linux || is_mac) {
end2end_gypi = exec_script("//build/gypi_to_gn.py",
[
rebase_path("angle_end2end_tests.gypi"),
"--replace=<(angle_path)=.",
],
"scope",
[ "angle_end2end_tests.gypi" ])
test("angle_end2end_tests") {
include_dirs = [
"testing/gtest/include",
"../../src/tests",
"../../util",
]
sources = rebase_path(end2end_gypi.angle_end2end_tests_sources, ".", "../..")
if (is_win) {
sources +=
rebase_path(end2end_gypi.angle_end2end_tests_win_sources, ".", "../..")
}
sources += [ "//gpu/angle_end2end_tests_main.cc" ]
configs += [
"//third_party/angle:internal_config",
"//third_party/angle:libANGLE_config",
]
deps = [
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/angle:angle_util",
"//third_party/angle:libANGLE",
"//third_party/angle:libEGL",
"//third_party/angle:libGLESv2",
"//third_party/angle:preprocessor",
"//third_party/angle:translator_static",
]
}
}
if (is_win) {
perftests_gypi = exec_script("//build/gypi_to_gn.py",
[
rebase_path("angle_perftests.gypi"),
"--replace=<(angle_path)=.",
],
"scope",
[ "angle_perftests.gypi" ])
test("angle_perftests") {
include_dirs = [
"testing/gtest/include",
"../../src/tests",
"../../util",
]
sources = rebase_path(perftests_gypi.angle_perf_tests_sources, ".", "../..")
sources +=
rebase_path(perftests_gypi.angle_perf_tests_win_sources, ".", "../..")
sources += [ "//gpu/angle_perftests_main.cc" ]
configs += [
"//third_party/angle:internal_config",
"//third_party/angle:libANGLE_config",
]
deps = [
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/angle:angle_util",
"//third_party/angle:libANGLE",
"//third_party/angle:libEGL",
"//third_party/angle:libGLESv2",
]
}
}