blob: 2deda706c5af0e070a0e33ddacdfdb63961957d1 [file] [log] [blame]
# Copyright 2013 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': 1,
},
'targets': [
{
# TODO(tfarina): Remove this target after all traces of it are updated to
# point to ui_base_unittests. That means updating buildbot code and some
# references in chromium too. crbug.com/331829
# GN version: //ui/base:unittests
'target_name': 'ui_unittests',
'includes': [ 'ui_base_tests.gypi' ],
},
{
# GN version: //ui/base:unittests
'target_name': 'ui_base_unittests',
# TODO(tfarina): When ui_unittests is removed, move the content of the
# gypi file back here.
'includes': [ 'ui_base_tests.gypi' ],
},
],
'conditions': [
# Mac target to build a test Framework bundle to mock out resource loading.
['OS == "mac"', {
'targets': [
{
'target_name': 'ui_base_tests_bundle',
'type': 'shared_library',
'dependencies': [
'../resources/ui_resources.gyp:ui_test_pak',
],
'includes': [ 'ui_base_tests_bundle.gypi' ],
# ui_base_tests_bundle doesn't actually contain a shared library and
# therefore should not depend on sanitizer_options or any other
# libraries. Adding such a dependency will result in creating a
# broken shared library within the bundle.
'conditions': [
['use_sanitizer_options==1', {
'dependencies!': [
'../../build/sanitizers/sanitizers.gyp:sanitizer_options',
],
}],
],
},
],
}],
['OS == "android"', {
'targets': [
{
# TODO(tfarina): Remove this target after all traces of it are updated
# to point to ui_base_unittests_apk. crbug.com/331829
'target_name': 'ui_unittests_apk',
'type': 'none',
'dependencies': [
# TODO(tfarina): This is a layer violation and should be removed.
# crbug.com/176960
# For now this is here as a temporary band-aid to fix the clobber
# issue we are seeing when running this target on Android.
# crbug.com/374490
'../../chrome/chrome_resources.gyp:packed_resources',
'ui_unittests',
],
'variables': {
'test_suite_name': 'ui_unittests',
},
'includes': [ '../../build/apk_test.gypi' ],
},
{
'target_name': 'ui_base_unittests_apk',
'type': 'none',
'dependencies': [
# TODO(tfarina): This is a layer violation and should be removed.
# crbug.com/176960
# For now this is here as a temporary band-aid to fix the clobber
# issue we are seeing when running this target on Android.
# crbug.com/374490
'../../chrome/chrome_resources.gyp:packed_resources',
'ui_base_unittests',
],
'variables': {
'test_suite_name': 'ui_base_unittests',
},
'includes': [ '../../build/apk_test.gypi' ],
},
],
}],
],
}