diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-18 17:24:39 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-18 17:24:39 +0000 |
commit | 6ecdfa3f5a6fcc570a18c789389b1c8cdf294c04 (patch) | |
tree | 8ff1d930f92e36b364c45251791dbc2b27caf0cc /ui/ui_unittests.gypi | |
parent | 7f036f8e35fc23141788448a0d1a37df695135e6 (diff) | |
download | chromium_src-6ecdfa3f5a6fcc570a18c789389b1c8cdf294c04.zip chromium_src-6ecdfa3f5a6fcc570a18c789389b1c8cdf294c04.tar.gz chromium_src-6ecdfa3f5a6fcc570a18c789389b1c8cdf294c04.tar.bz2 |
Normalize the top-level ui/ module.
This CL creates four .gypi files that are included in /ui/ui.gyp. This allows
for a single unittest binary for all the submodules, rather than having
individual unittest binaries for each submodule.
To not break the buildbot, this creates a fake target that copies ui_unittests
to gfx_unittests as temporary scaffolding.
BUG=72317
TEST=gfx_unittests (really ui_unittests) passes
Review URL: http://codereview.chromium.org/6688007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/ui_unittests.gypi')
-rw-r--r-- | ui/ui_unittests.gypi | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/ui/ui_unittests.gypi b/ui/ui_unittests.gypi new file mode 100644 index 0000000..faeaf66 --- /dev/null +++ b/ui/ui_unittests.gypi @@ -0,0 +1,113 @@ +# Copyright (c) 2011 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. + +{ + 'targets': [ + { + 'target_name': 'ui_unittests', + 'type': 'executable', + 'msvs_guid': 'C412B00F-2098-4833-B3DE-A1B8B7A094F0', + 'dependencies': [ + '../base/base.gyp:base', + '../base/base.gyp:test_support_base', + '../skia/skia.gyp:skia', + '../testing/gmock.gyp:gmock', + '../testing/gtest.gyp:gtest', + 'ui_base', + 'ui_gfx', + 'gfx_resources', + ], + 'sources': [ + 'base/animation/animation_container_unittest.cc', + 'base/animation/animation_unittest.cc', + 'base/animation/multi_animation_unittest.cc', + 'base/animation/slide_animation_unittest.cc', + 'base/clipboard/clipboard_unittest.cc', + 'base/range/range_unittest.cc', + 'base/range/range_unittest.mm', + 'gfx/blit_unittest.cc', + 'gfx/codec/jpeg_codec_unittest.cc', + 'gfx/codec/png_codec_unittest.cc', + 'gfx/color_utils_unittest.cc', + 'gfx/font_unittest.cc', + 'gfx/image_unittest.cc', + 'gfx/image_unittest.h', + 'gfx/insets_unittest.cc', + 'gfx/rect_unittest.cc', + 'gfx/run_all_unittests.cc', + 'gfx/skbitmap_operations_unittest.cc', + 'gfx/test_suite.cc', + 'gfx/test_suite.h', + 'views/rendering/border_unittest.cc', + 'views/view_unittest.cc', + 'views/widget/native_widget_win_unittest.cc', + 'views/widget/root_view_unittest.cc', + 'views/widget/widget_test_util.cc', + 'views/widget/widget_test_util.h', + 'views/widget/widget_unittest.cc', + '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc', + ], + 'include_dirs': [ + '../', + ], + 'conditions': [ + ['toolkit_views2==1', { + 'dependencies': [ + 'v2', + ], + }], + ['OS=="win"', { + 'sources': [ + # TODO(brettw) re-enable this when the dependencies on WindowImpl are fixed! + 'gfx/canvas_direct2d_unittest.cc', + 'gfx/icon_util_unittest.cc', + 'gfx/native_theme_win_unittest.cc', + ], + 'include_dirs': [ + '../..', + '../third_party/wtl/include', + ], + 'msvs_settings': { + 'VCLinkerTool': { + 'DelayLoadDLLs': [ + 'd2d1.dll', + 'd3d10_1.dll', + ], + 'AdditionalDependencies': [ + 'd2d1.lib', + 'd3d10_1.lib', + ], + }, + 'link_settings': { + 'libraries': [ + '-limm32.lib', + '-loleacc.lib', + ], + }, + }, + }], + ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + 'dependencies': [ + '../app/app.gyp:app_base', + '../build/linux/system.gyp:gtk', + '../chrome/chrome.gyp:packed_resources', + ], + 'conditions': [ + ['linux_use_tcmalloc==1', { + 'dependencies': [ + '../base/allocator/allocator.gyp:allocator', + ], + }], + ], + }], + ], + }, + ], +} + +# Local Variables: +# tab-width:2 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=2 shiftwidth=2: |