Upstream version 10.39.225.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             'ui_unittests',
60           ],
61           'variables': {
62             'test_suite_name': 'ui_unittests',
63           },
64           'includes': [ '../../build/apk_test.gypi' ],
65         },
66         {
67           'target_name': 'ui_base_unittests_apk',
68           'type': 'none',
69           'dependencies': [
70             'ui_base_unittests',
71           ],
72           'variables': {
73             'test_suite_name': 'ui_base_unittests',
74           },
75           'includes': [ '../../build/apk_test.gypi' ],
76         },
77       ],
78     }],
79   ],
80 }