blob: 758a5a9e9911fd377a06d0f3f668bff124e5b406 [file] [log] [blame]
# Copyright 2013 The Flutter 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("//flutter/testing/android/native_activity/native_activity.gni")
import("../../tools/impeller.gni")
config("public_android_config") {
defines = [ "__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__" ]
}
impeller_component("android") {
sources = [
"choreographer.cc",
"choreographer.h",
"hardware_buffer.cc",
"hardware_buffer.h",
"native_window.cc",
"native_window.h",
"proc_table.cc",
"proc_table.h",
"surface_control.cc",
"surface_control.h",
"surface_transaction.cc",
"surface_transaction.h",
]
public_deps = [
"../../base",
"../../geometry",
"//flutter/fml",
]
public_configs = [ ":public_android_config" ]
}
test_fixtures("unittests_fixtures") {
fixtures = []
}
source_set("unittests_lib") {
visibility = [ ":*" ]
testonly = true
sources = [ "toolkit_android_unittests.cc" ]
deps = [
":android",
":unittests_fixtures",
"//flutter/testing",
]
defines = [ "TESTING" ]
}
executable("unittests") {
assert(is_android)
testonly = true
output_name = "impeller_toolkit_android_unittests"
deps = [ ":unittests_lib" ]
}
native_activity_apk("apk_unittests") {
apk_name = "impeller_toolkit_android_unittests"
testonly = true
deps = [
":unittests_lib",
"//flutter/testing/android/native_activity:gtest_activity",
]
}