• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2017-2018 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21
22files_swr_common += custom_target(
23  'gen_backend_pixel',
24  input : swr_gen_backends_py,
25  output : [
26    'gen_BackendPixelRate0.cpp', 'gen_BackendPixelRate1.cpp',
27    'gen_BackendPixelRate2.cpp', 'gen_BackendPixelRate3.cpp',
28    'gen_BackendPixelRate.hpp',
29  ],
30  command : [
31    prog_python2, '@INPUT@',
32    '--outdir', '@OUTDIR@',
33    '--dim', '5', '2', '3', '2', '2', '2',
34    '--numfiles', '4',
35    '--cpp', '--hpp',
36  ],
37  depend_files : [ swr_gen_backend_files, swr_gen_header_init_files ],
38)
39
40files_swr_common += custom_target(
41  'gen_backend_raster',
42  input : swr_gen_backends_py,
43  output : [
44    'gen_rasterizer0.cpp', 'gen_rasterizer1.cpp',
45    'gen_rasterizer2.cpp', 'gen_rasterizer3.cpp',
46    'gen_rasterizer.hpp',
47  ],
48  command : [
49    prog_python2, '@INPUT@',
50    '--outdir', '@OUTDIR@',
51    '--rast',
52    '--dim', '5', '2', '2', '3', '5', '2',
53    '--numfiles', '4',
54    '--cpp', '--hpp',
55  ],
56  depend_files : [ swr_gen_rasterizer_files, swr_gen_header_init_files ],
57)
58