[c21d4d6] | 1 | #
|
---|
[e229148] | 2 | # Copyright (c) 2024 Jiri Svoboda
|
---|
[c21d4d6] | 3 | # Copyright (c) 2012 Petr Koupy
|
---|
| 4 | # All rights reserved.
|
---|
| 5 | #
|
---|
| 6 | # Redistribution and use in source and binary forms, with or without
|
---|
| 7 | # modification, are permitted provided that the following conditions
|
---|
| 8 | # are met:
|
---|
| 9 | #
|
---|
| 10 | # - Redistributions of source code must retain the above copyright
|
---|
| 11 | # notice, this list of conditions and the following disclaimer.
|
---|
| 12 | # - Redistributions in binary form must reproduce the above copyright
|
---|
| 13 | # notice, this list of conditions and the following disclaimer in the
|
---|
| 14 | # documentation and/or other materials provided with the distribution.
|
---|
| 15 | # - The name of the author may not be used to endorse or promote products
|
---|
| 16 | # derived from this software without specific prior written permission.
|
---|
| 17 | #
|
---|
| 18 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
| 19 | # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
| 20 | # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
| 21 | # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
| 22 | # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
| 23 | # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
| 24 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
| 25 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
| 26 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
| 27 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
| 28 | #
|
---|
| 29 |
|
---|
[0576df9] | 30 | deps = [ 'gfximage', 'ui' ]
|
---|
[5fd05862] | 31 |
|
---|
| 32 | _images = files('gfx/helenos.tga')
|
---|
| 33 |
|
---|
[e229148] | 34 | _images_zip = custom_target('aboutos_images.zip',
|
---|
[5fd05862] | 35 | input : _images,
|
---|
| 36 | output : [ 'images.zip' ],
|
---|
[211fd68] | 37 | command : [ mkarray, '@OUTDIR@', 'images', 'image', 'image', uspace_as_prolog, '.data', '@INPUT@' ],
|
---|
[5fd05862] | 38 | )
|
---|
[e229148] | 39 | _imgs_s = custom_target('aboutos_images.s',
|
---|
[5fd05862] | 40 | input : _images_zip,
|
---|
| 41 | output : [ 'images.s' ],
|
---|
| 42 | command : [ unzip, '-p', '@INPUT@', 'images.s' ],
|
---|
| 43 | capture : true,
|
---|
| 44 | )
|
---|
[e229148] | 45 | _imgs_h = custom_target('aboutos_images.h',
|
---|
[5fd05862] | 46 | input : _images_zip,
|
---|
| 47 | output : [ 'images.h' ],
|
---|
| 48 | command : [ unzip, '-p', '@INPUT@', 'images.h' ],
|
---|
| 49 | capture : true,
|
---|
| 50 | )
|
---|
[e229148] | 51 | _imgs_desc_c = custom_target('aboutos_images_desc.c',
|
---|
[5fd05862] | 52 | input : _images_zip,
|
---|
| 53 | output : [ 'images_desc.c' ],
|
---|
| 54 | command : [ unzip, '-p', '@INPUT@', 'images_desc.c' ],
|
---|
| 55 | capture : true,
|
---|
| 56 | )
|
---|
| 57 |
|
---|
[e229148] | 58 | c_args += [ '-DHELENOS_RELEASE=' + HELENOS_RELEASE, '-DHELENOS_COPYRIGHT=' + HELENOS_COPYRIGHT, '-DHELENOS_CODENAME=' + HELENOS_CODENAME ]
|
---|
| 59 | src = [ files('aboutos.c'), _imgs_s, _imgs_h, _imgs_desc_c ]
|
---|