Changeset d3357e9 in mainline for meson.build


Ignore:
Timestamp:
2019-08-17T12:49:43Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f69d5a8
Parents:
56440a5
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-30 15:23:58)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Make building bootable images optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • meson.build

    r56440a5 rd3357e9  
    518518subdir('boot')
    519519
    520 custom_target(POST_OUTPUT,
    521         output: POST_OUTPUT,
    522         input: POST_INPUT,
    523         command: [ cp, '@INPUT@', '@OUTPUT@' ],
    524         build_by_default: true,
    525 )
     520if is_variable('POST_INPUT')
     521        image = custom_target(POST_OUTPUT,
     522                output: POST_OUTPUT,
     523                input: POST_INPUT,
     524                command: [ cp, '@INPUT@', '@OUTPUT@' ],
     525        )
     526
     527        custom_target('image_path',
     528                output: 'image_path',
     529                input: image,
     530                command: [ 'echo', '@INPUT@' ],
     531                capture: true,
     532        )
     533else
     534        custom_target('image_path',
     535                output: 'image_path',
     536                command: [ 'echo' ],
     537                capture: true,
     538        )
     539endif
Note: See TracChangeset for help on using the changeset viewer.