1 | deps = [ 'gui', 'draw', 'compress', 'softrend', 'math' ]
|
---|
2 |
|
---|
3 | _images = files(
|
---|
4 | 'gfx/frame01.tga.gz',
|
---|
5 | 'gfx/frame02.tga.gz',
|
---|
6 | 'gfx/frame03.tga.gz',
|
---|
7 | 'gfx/frame04.tga.gz',
|
---|
8 | 'gfx/frame05.tga.gz',
|
---|
9 | 'gfx/frame06.tga.gz',
|
---|
10 | 'gfx/frame07.tga.gz',
|
---|
11 | 'gfx/frame08.tga.gz',
|
---|
12 | 'gfx/frame09.tga.gz',
|
---|
13 | 'gfx/frame10.tga.gz',
|
---|
14 | 'gfx/frame11.tga.gz',
|
---|
15 | 'gfx/frame12.tga.gz',
|
---|
16 | 'gfx/frame13.tga.gz',
|
---|
17 | 'gfx/frame14.tga.gz',
|
---|
18 | 'gfx/frame15.tga.gz',
|
---|
19 | 'gfx/frame16.tga.gz',
|
---|
20 | 'gfx/frame17.tga.gz',
|
---|
21 | 'gfx/frame18.tga.gz',
|
---|
22 | 'gfx/frame19.tga.gz',
|
---|
23 | 'gfx/frame20.tga.gz',
|
---|
24 | 'gfx/frame21.tga.gz',
|
---|
25 | 'gfx/frame22.tga.gz',
|
---|
26 | 'gfx/frame23.tga.gz',
|
---|
27 | 'gfx/frame24.tga.gz',
|
---|
28 | 'gfx/frame25.tga.gz',
|
---|
29 | 'gfx/frame26.tga.gz',
|
---|
30 | 'gfx/frame27.tga.gz',
|
---|
31 | 'gfx/frame28.tga.gz',
|
---|
32 | 'gfx/frame29.tga.gz',
|
---|
33 | 'gfx/frame30.tga.gz',
|
---|
34 | )
|
---|
35 |
|
---|
36 | _tarball = custom_target('barber_images.tar',
|
---|
37 | input: _images,
|
---|
38 | output: 'barber_images.tar',
|
---|
39 | command: tar,
|
---|
40 | )
|
---|
41 |
|
---|
42 | # TODO
|
---|
43 |
|
---|
44 | _images_zip = custom_target('barber_images.zip',
|
---|
45 | input : _images,
|
---|
46 | output : [ 'images.zip' ],
|
---|
47 | command : [ mkarray, '@OUTDIR@', 'images', 'image', uspace_as_prolog, '.data', '@INPUT@' ],
|
---|
48 | )
|
---|
49 | _imgs_s = custom_target('barber_images.s',
|
---|
50 | input : _images_zip,
|
---|
51 | output : [ 'images.s' ],
|
---|
52 | command : [ unzip, '-p', '@INPUT@', 'images.s' ],
|
---|
53 | capture : true,
|
---|
54 | )
|
---|
55 | _imgs_h = custom_target('barber_images.h',
|
---|
56 | input : _images_zip,
|
---|
57 | output : [ 'images.h' ],
|
---|
58 | command : [ unzip, '-p', '@INPUT@', 'images.h' ],
|
---|
59 | capture : true,
|
---|
60 | )
|
---|
61 | _imgs_desc_c = custom_target('barber_images_desc.c',
|
---|
62 | input : _images_zip,
|
---|
63 | output : [ 'images_desc.c' ],
|
---|
64 | command : [ unzip, '-p', '@INPUT@', 'images_desc.c' ],
|
---|
65 | capture : true,
|
---|
66 | )
|
---|
67 |
|
---|
68 | src = [ files('barber.c'), _imgs_s, _imgs_h, _imgs_desc_c ]
|
---|