Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / base / ui_base_tests.gyp
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # TODO(tfarina): Remove this target after all traces of it are updated to
12       # point to ui_base_unittests. That means updating buildbot code and some
13       # references in chromium too. crbug.com/331829
14       # GN version: //ui/base:unittests
15       'target_name': 'ui_unittests',
16       'includes': [ 'ui_base_tests.gypi' ],
17     },
18     {
19       # GN version: //ui/base:unittests
20       'target_name': 'ui_base_unittests',
21       # TODO(tfarina): When ui_unittests is removed, move the content of the
22       # gypi file back here.
23       'includes': [ 'ui_base_tests.gypi' ],
24     },
25   ],
26   'conditions': [
27     # Mac target to build a test Framework bundle to mock out resource loading.
28     ['OS == "mac"', {
29       'targets': [
30         {
31           'target_name': 'ui_base_tests_bundle',
32           'type': 'shared_library',
33           'dependencies': [
34             '../resources/ui_resources.gyp:ui_test_pak',
35           ],
36           'includes': [ 'ui_base_tests_bundle.gypi' ],
37           # ui_base_tests_bundle doesn't actually contain a shared library and
38           # therefore should not depend on sanitizer_options or any other
39           # libraries. Adding such a dependency will result in creating a
40           # broken shared library within the bundle.
41           'conditions': [
42             ['use_sanitizer_options==1', {
43               'dependencies!': [
44                 '../../build/sanitizers/sanitizers.gyp:sanitizer_options',
45               ],
46             }],
47           ],
48         },
49       ],
50     }],
51     ['OS == "android"', {
52       'targets': [
53         {
54           # TODO(tfarina): Remove this target after all traces of it are updated
55           # to point to ui_base_unittests_apk. crbug.com/331829
56           'target_name': 'ui_unittests_apk',
57           'type': 'none',
58           'dependencies': [
59             # TODO(tfarina): This is a layer violation and should be removed.
60             # crbug.com/176960
61             # For now this is here as a temporary band-aid to fix the clobber
62             # issue we are seeing when running this target on Android.
63             # crbug.com/374490
64             '../../chrome/chrome_resources.gyp:packed_resources',
65             'ui_unittests',
66           ],
67           'variables': {
68             'test_suite_name': 'ui_unittests',
69           },
70           'includes': [ '../../build/apk_test.gypi' ],
71         },
72         {
73           'target_name': 'ui_base_unittests_apk',
74           'type': 'none',
75           'dependencies': [
76             # TODO(tfarina): This is a layer violation and should be removed.
77             # crbug.com/176960
78             # For now this is here as a temporary band-aid to fix the clobber
79             # issue we are seeing when running this target on Android.
80             # crbug.com/374490
81             '../../chrome/chrome_resources.gyp:packed_resources',
82             'ui_base_unittests',
83           ],
84           'variables': {
85             'test_suite_name': 'ui_base_unittests',
86           },
87           'includes': [ '../../build/apk_test.gypi' ],
88         },
89       ],
90     }],
91   ],
92 }