blob: b71672963d995fa1ed9f45512671d9c043f490e6 [file] [log] [blame]
# Copyright (c) 2012 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.
{
'variables': {
'chromium_code': 0,
'webkit_compositor_bindings_tests_sources': [
'web_animation_unittest.cc',
'web_float_animation_curve_unittest.cc',
'web_layer_unittest.cc',
'web_layer_tree_view_unittest.cc',
'web_transform_animation_curve_unittest.cc',
'web_transform_operations_unittest.cc',
'web_transformation_matrix_unittest.cc',
'test/fake_web_scrollbar_theme_geometry.h',
'test/web_layer_tree_view_test_common.h',
],
},
'targets': [
{
'target_name': 'webkit_compositor_bindings_unittests',
'type' : '<(gtest_target_type)',
'dependencies': [
'../../base/base.gyp:test_support_base',
'../../cc/cc.gyp:cc',
'../../cc/cc_tests.gyp:cc_test_support',
'../../skia/skia.gyp:skia',
'../../testing/gmock.gyp:gmock',
'../../testing/gtest.gyp:gtest',
'compositor_bindings.gyp:webkit_compositor_bindings',
],
'sources': [
'<@(webkit_compositor_bindings_tests_sources)',
'test/run_all_unittests.cc',
],
'include_dirs': [
'.',
'test',
'<(DEPTH)/cc',
'<(DEPTH)/cc/stubs',
'<(DEPTH)/cc/test',
'../../third_party/WebKit/Source/Platform/chromium'
],
'conditions': [
['OS == "android" and gtest_target_type == "shared_library"', {
'dependencies': [
'../../testing/android/native_test.gyp:native_test_native_code',
],
}],
],
},
],
'conditions': [
# Special target to wrap a gtest_target_type==shared_library
# package webkit_compositor_bindings_unittests into an android apk for execution.
['OS == "android" and gtest_target_type == "shared_library"', {
'targets': [
{
'target_name': 'webkit_compositor_bindings_unittests_apk',
'type': 'none',
'dependencies': [
'webkit_compositor_bindings_unittests',
],
'variables': {
'test_suite_name': 'webkit_compositor_bindings_unittests',
'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webkit_compositor_bindings_unittests<(SHARED_LIB_SUFFIX)',
},
'includes': [ '../../build/apk_test.gypi' ],
},
],
}],
],
}