1
# Copyright 2010, Google Inc.
4
# Redistribution and use in source and binary forms, with or without
5
# modification, are permitted provided that the following conditions are
8
# * Redistributions of source code must retain the above copyright
9
# notice, this list of conditions and the following disclaimer.
10
# * Redistributions in binary form must reproduce the above
11
# copyright notice, this list of conditions and the following disclaimer
12
# in the documentation and/or other materials provided with the
14
# * Neither the name of Google Inc. nor the names of its
15
# contributors may be used to endorse or promote products derived from
16
# this software without specific prior written permission.
18
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
'relative_dir': 'usage_stats',
33
'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)',
37
'target_name': 'usage_stats',
38
'type': 'static_library',
40
'<(proto_out_dir)/<(relative_dir)/usage_stats.pb.cc',
45
'../protobuf/protobuf.gyp:protobuf',
46
'../base/base.gyp:base',
48
'../storage/storage.gyp:storage',
49
'genproto_usage_stats',
53
'action_name': 'gen_usage_stats_list',
56
'../data/usage_stats/stats.def',
64
'<(gen_out_dir)/usage_stats_list.h',
67
'python', '../build_tools/redirect.py',
68
'<(gen_out_dir)/usage_stats_list.h',
76
'target_name': 'genproto_usage_stats',
81
'conditions': [['two_pass_build==0', {
83
'../protobuf/protobuf.gyp:install_protoc',
88
'rule_name': 'genproto',
91
'../build_tools/run_after_chdir.py',
94
'<(proto_out_dir)/<(relative_dir)/<(RULE_INPUT_ROOT).pb.h',
95
'<(proto_out_dir)/<(relative_dir)/<(RULE_INPUT_ROOT).pb.cc',
98
'python', '../build_tools/run_after_chdir.py',
100
'<(relative_dir)/<(mozc_build_tools_dir)/protoc<(EXECUTABLE_SUFFIX)',
101
'<(relative_dir)/<(RULE_INPUT_NAME)',
102
'--cpp_out=<(proto_out_dir)',
104
'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
109
'target_name': 'usage_stats_test',
110
'type': 'executable',
112
'upload_util_test.cc',
113
'usage_stats_test.cc',
116
'../testing/testing.gyp:gtest_main',