source: mainline/uspace/app/barber/meson.build

Last change on this file was 211fd68, checked in by Jiri Svoboda <jiri@…>, 17 months ago

Add text mode support to Barber

  • Property mode set to 100644
File size: 4.8 KB
Line 
1#
2# Copyright (c) 2014 Martin Decky
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8#
9# - Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# - Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14# - The name of the author may not be used to endorse or promote products
15# derived from this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27#
28
29deps = [ 'ui', 'gfximage', 'compress', 'device' ]
30
31_images = files(
32 'gfx/frame01.tga.gz',
33 'gfx/frame02.tga.gz',
34 'gfx/frame03.tga.gz',
35 'gfx/frame04.tga.gz',
36 'gfx/frame05.tga.gz',
37 'gfx/frame06.tga.gz',
38 'gfx/frame07.tga.gz',
39 'gfx/frame08.tga.gz',
40 'gfx/frame09.tga.gz',
41 'gfx/frame10.tga.gz',
42 'gfx/frame11.tga.gz',
43 'gfx/frame12.tga.gz',
44 'gfx/frame13.tga.gz',
45 'gfx/frame14.tga.gz',
46 'gfx/frame15.tga.gz',
47 'gfx/frame16.tga.gz',
48 'gfx/frame17.tga.gz',
49 'gfx/frame18.tga.gz',
50 'gfx/frame19.tga.gz',
51 'gfx/frame20.tga.gz',
52 'gfx/frame21.tga.gz',
53 'gfx/frame22.tga.gz',
54 'gfx/frame23.tga.gz',
55 'gfx/frame24.tga.gz',
56 'gfx/frame25.tga.gz',
57 'gfx/frame26.tga.gz',
58 'gfx/frame27.tga.gz',
59 'gfx/frame28.tga.gz',
60 'gfx/frame29.tga.gz',
61 'gfx/frame30.tga.gz',
62)
63
64_images_tiny = files(
65 'gfx-tiny/frame01t.tga.gz',
66 'gfx-tiny/frame02t.tga.gz',
67 'gfx-tiny/frame03t.tga.gz',
68 'gfx-tiny/frame04t.tga.gz',
69 'gfx-tiny/frame05t.tga.gz',
70 'gfx-tiny/frame06t.tga.gz',
71 'gfx-tiny/frame07t.tga.gz',
72 'gfx-tiny/frame08t.tga.gz',
73 'gfx-tiny/frame09t.tga.gz',
74 'gfx-tiny/frame10t.tga.gz',
75 'gfx-tiny/frame11t.tga.gz',
76 'gfx-tiny/frame12t.tga.gz',
77 'gfx-tiny/frame13t.tga.gz',
78 'gfx-tiny/frame14t.tga.gz',
79 'gfx-tiny/frame15t.tga.gz',
80 'gfx-tiny/frame16t.tga.gz',
81 'gfx-tiny/frame17t.tga.gz',
82 'gfx-tiny/frame18t.tga.gz',
83 'gfx-tiny/frame19t.tga.gz',
84 'gfx-tiny/frame20t.tga.gz',
85 'gfx-tiny/frame21t.tga.gz',
86 'gfx-tiny/frame22t.tga.gz',
87 'gfx-tiny/frame23t.tga.gz',
88 'gfx-tiny/frame24t.tga.gz',
89 'gfx-tiny/frame25t.tga.gz',
90 'gfx-tiny/frame26t.tga.gz',
91 'gfx-tiny/frame27t.tga.gz',
92 'gfx-tiny/frame28t.tga.gz',
93 'gfx-tiny/frame29t.tga.gz',
94 'gfx-tiny/frame30t.tga.gz',
95)
96
97_tarball = custom_target('barber_images.tar',
98 input: _images,
99 output: 'barber_images.tar',
100 command: tar,
101)
102
103# TODO
104
105# Normal images
106
107_images_zip = custom_target('barber_images.zip',
108 input : _images,
109 output : [ 'images.zip' ],
110 command : [ mkarray, '@OUTDIR@', 'images', 'image', 'image', uspace_as_prolog, '.data', '@INPUT@' ],
111)
112_imgs_s = custom_target('barber_images.s',
113 input : _images_zip,
114 output : [ 'images.s' ],
115 command : [ unzip, '-p', '@INPUT@', 'images.s' ],
116 capture : true,
117)
118_imgs_h = custom_target('barber_images.h',
119 input : _images_zip,
120 output : [ 'images.h' ],
121 command : [ unzip, '-p', '@INPUT@', 'images.h' ],
122 capture : true,
123)
124_imgs_desc_c = custom_target('barber_images_desc.c',
125 input : _images_zip,
126 output : [ 'images_desc.c' ],
127 command : [ unzip, '-p', '@INPUT@', 'images_desc.c' ],
128 capture : true,
129)
130
131# Tiny images
132
133_images_tiny_zip = custom_target('barber_images_tiny.zip',
134 input : _images_tiny,
135 output : [ 'images_tiny.zip' ],
136 command : [ mkarray, '@OUTDIR@', 'images_tiny', 'image', 'image_tiny', uspace_as_prolog, '.data', '@INPUT@' ],
137)
138_imgs_tiny_s = custom_target('barber_images_tiny.s',
139 input : _images_tiny_zip,
140 output : [ 'images_tiny.s' ],
141 command : [ unzip, '-p', '@INPUT@', 'images_tiny.s' ],
142 capture : true,
143)
144_imgs_tiny_h = custom_target('barber_images_tiny.h',
145 input : _images_tiny_zip,
146 output : [ 'images_tiny.h' ],
147 command : [ unzip, '-p', '@INPUT@', 'images_tiny.h' ],
148 capture : true,
149)
150_imgs_tiny_desc_c = custom_target('barber_images_tiny_desc.c',
151 input : _images_tiny_zip,
152 output : [ 'images_tiny_desc.c' ],
153 command : [ unzip, '-p', '@INPUT@', 'images_tiny_desc.c' ],
154 capture : true,
155)
156
157src = [ files('barber.c'), _imgs_s, _imgs_h, _imgs_desc_c,
158 _imgs_tiny_s, _imgs_tiny_h, _imgs_tiny_desc_c ]
Note: See TracBrowser for help on using the repository browser.