summaryrefslogtreecommitdiffstats
path: root/ui/base/ui_base.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/ui_base.gypi')
-rw-r--r--ui/base/ui_base.gypi100
1 files changed, 100 insertions, 0 deletions
diff --git a/ui/base/ui_base.gypi b/ui/base/ui_base.gypi
new file mode 100644
index 0000000..f441c6f
--- /dev/null
+++ b/ui/base/ui_base.gypi
@@ -0,0 +1,100 @@
+# 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.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'target_defaults': {
+ 'sources/': [
+ ['exclude', '/(cocoa|gtk|win)/'],
+ ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'],
+ ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'],
+ ],
+ 'conditions': [
+ ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [
+ ['include', '/gtk/'],
+ ['include', '_(gtk|linux|posix|skia|x)\\.cc$'],
+ ['include', '/(gtk|x11)_[^/]*\\.cc$'],
+ ]}],
+ ['OS=="mac"', {'sources/': [
+ ['include', '/cocoa/'],
+ ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'],
+ ]}, { # else: OS != "mac"
+ 'sources/': [
+ ['exclude', '\\.mm?$'],
+ ],
+ }],
+ ['OS=="win"', {'sources/': [
+ ['include', '_(win)\\.cc$'],
+ ['include', '/win/'],
+ ['include', '/win_[^/]*\\.cc$'],
+ ]}],
+ ['touchui==0', {'sources/': [
+ ['exclude', 'event_x.cc$'],
+ ['exclude', 'native_menu_x.cc$'],
+ ['exclude', 'native_menu_x.h$'],
+ ['exclude', 'touchui/'],
+ ['exclude', '_(touch)\\.cc$'],
+ ]}],
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'ui_base',
+ 'type': '<(library)',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../gfx/gfx.gyp:gfx',
+ '../skia/skia.gyp:skia',
+ '../third_party/icu/icu.gyp:icui18n',
+ '../third_party/icu/icu.gyp:icuuc',
+ ],
+ 'sources': [
+ 'animation/animation.cc',
+ 'animation/animation.h',
+ 'animation/animation_container.cc',
+ 'animation/animation_container.h',
+ 'animation/animation_container_element.h',
+ 'animation/animation_container_observer.h',
+ 'animation/animation_delegate.h',
+ 'animation/linear_animation.cc',
+ 'animation/linear_animation.h',
+ 'animation/multi_animation.cc',
+ 'animation/multi_animation.h',
+ 'animation/slide_animation.cc',
+ 'animation/slide_animation.h',
+ 'animation/throb_animation.cc',
+ 'animation/throb_animation.h',
+ 'animation/tween.cc',
+ 'animation/tween.h',
+ ],
+ },
+ {
+ 'target_name': 'ui_base_unittests',
+ 'type': 'executable',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../base/base.gyp:test_support_base',
+ '../testing/gmock.gyp:gmock',
+ '../testing/gtest.gyp:gtest',
+ 'ui_base',
+ ],
+ 'sources': [
+ 'animation/animation_container_unittest.cc',
+ 'animation/animation_unittest.cc',
+ 'animation/multi_animation_unittest.cc',
+ 'animation/slide_animation_unittest.cc',
+ 'run_all_unittests.cc',
+ 'test_suite.h',
+ ],
+ },
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: