Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / platform / platform_generated.gyp
blob90e8e8b52d130f18d1a4a998523c3f4077ac88dd
2 # Copyright (C) 2013 Google Inc. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
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
13 # distribution.
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   'includes': [
33     '../build/features.gypi',
34     '../build/scripts/scripts.gypi',
35     'platform_generated.gypi',
36   ],
38   'targets': [
39     {
40       'target_name': 'make_platform_generated',
41       'type': 'none',
42       'hard_dependency': 1,
43       'actions': [
44         {
45           'action_name': 'FontFamilyNames',
46           'inputs': [
47             '<@(make_names_files)',
48             'fonts/FontFamilyNames.in',
49           ],
50           'outputs': [
51             '<(blink_platform_output_dir)/FontFamilyNames.cpp',
52             '<(blink_platform_output_dir)/FontFamilyNames.h',
53           ],
54           'action': [
55             'python',
56             '../build/scripts/make_names.py',
57             'fonts/FontFamilyNames.in',
58             '--output_dir',
59             '<(blink_platform_output_dir)',
60           ],
61         },
62         {
63           'action_name': 'RuntimeEnabledFeatures',
64           'inputs': [
65             '<@(scripts_for_in_files)',
66             '../build/scripts/make_runtime_features.py',
67             'RuntimeEnabledFeatures.in',
68             '../build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl',
69             '../build/scripts/templates/RuntimeEnabledFeatures.h.tmpl',
70           ],
71           'outputs': [
72             '<(blink_platform_output_dir)/RuntimeEnabledFeatures.cpp',
73             '<(blink_platform_output_dir)/RuntimeEnabledFeatures.h',
74           ],
75           'action': [
76             'python',
77             '../build/scripts/make_runtime_features.py',
78             'RuntimeEnabledFeatures.in',
79             '--output_dir',
80             '<(blink_platform_output_dir)',
81           ],
82         },
83         {
84           'action_name': 'ColorData',
85           'inputs': [
86             'ColorData.gperf',
87           ],
88           'outputs': [
89             '<(blink_platform_output_dir)/ColorData.cpp',
90           ],
91           'action': [
92             '<(gperf_exe)',
93             '--key-positions=*',
94             '-D', '-s', '2',
95             '<@(_inputs)',
96             '--output-file=<(blink_platform_output_dir)/ColorData.cpp',
97           ],
98         },
99       ]
100     },
101   ],