1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
# Copyright (c) 2010 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': {
# TODO: remove this helper when we have loops in GYP
'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py',],
'chromium_code': 1,
'grit_info_cmd': ['python', '../tools/grit/grit_info.py',
'<@(grit_defines)'],
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app',
'grit_cmd': ['python', '../tools/grit/grit.py'],
},
'includes': [
'app_base.gypi',
],
'targets': [
{
'target_name': 'app_unittests',
'type': 'executable',
'msvs_guid': 'B4D59AE8-8D2F-97E1-A8E9-6D2826729530',
'dependencies': [
'app_base',
'app_resources',
'../base/base.gyp:test_support_base',
'../net/net.gyp:net_test_support',
'../skia/skia.gyp:skia',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../third_party/icu/icu.gyp:icui18n',
'../third_party/icu/icu.gyp:icuuc',
'../third_party/libpng/libpng.gyp:libpng',
'../third_party/zlib/zlib.gyp:zlib',
'<(libjpeg_gyp_path):libjpeg',
],
'sources': [
'../ui/base/animation/animation_container_unittest.cc',
'../ui/base/animation/animation_unittest.cc',
'../ui/base/animation/multi_animation_unittest.cc',
'../ui/base/animation/slide_animation_unittest.cc',
'../ui/base/clipboard/clipboard_unittest.cc',
'../ui/base/dragdrop/os_exchange_data_win_unittest.cc',
'../ui/base/l10n/l10n_util_mac_unittest.mm',
'../ui/base/l10n/l10n_util_unittest.cc',
'../ui/base/models/tree_node_iterator_unittest.cc',
'../ui/base/models/tree_node_model_unittest.cc',
'../ui/base/resource/data_pack_unittest.cc',
'../ui/base/system_monitor/system_monitor_unittest.cc',
'../ui/base/test/data/resource.h',
'../ui/base/text/text_elider_unittest.cc',
'../ui/base/view_prop_unittest.cc',
'run_all_unittests.cc',
'sql/connection_unittest.cc',
'sql/statement_unittest.cc',
'sql/transaction_unittest.cc',
'test_suite.cc',
'test_suite.h',
],
'include_dirs': [
'..',
],
'conditions': [
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'sources': [
'../ui/base/dragdrop/gtk_dnd_util_unittest.cc',
],
'dependencies': [
'../build/linux/system.gyp:gtk',
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
'../ui/base/strings/ui_strings.gyp:ui_unittest_strings',
],
}],
['OS!="win"', {
'sources!': [
'../ui/base/dragdrop/os_exchange_data_win_unittest.cc',
'../ui/base/view_prop_unittest.cc',
],
}],
['OS =="linux" or OS =="freebsd"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
],
}],
],
},
{
'target_name': 'app_resources',
'type': 'none',
'msvs_guid': '3FBC4235-3FBD-46DF-AEDC-BADBBA13A095',
'actions': [
{
'action_name': 'app_resources',
'variables': {
'input_path': 'resources/app_resources.grd',
},
'inputs': [
'<!@(<(grit_info_cmd) --inputs <(input_path))',
],
'outputs': [
'<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)/app_resources\' <(input_path))',
],
'action': ['<@(grit_cmd)',
'-i', '<(input_path)', 'build',
'-o', '<(grit_out_dir)/app_resources',
'<@(grit_defines)' ],
'message': 'Generating resources from <(input_path)',
},
],
'direct_dependent_settings': {
'include_dirs': [
'<(grit_out_dir)/app_resources',
],
},
'conditions': [
['OS=="win"', {
'dependencies': ['../build/win/system.gyp:cygwin'],
}],
],
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
|