Changeset 32b4302 in mainline for meson/part/extra_targets/meson.build


Ignore:
Timestamp:
2019-08-18T19:06:02Z (6 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c39d33b
Parents:
fa70134 (diff), 6c2fac18 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-18 19:06:02)
git-committer:
GitHub <noreply@…> (2019-08-18 19:06:02)
Message:

Merge pull request #174 from le-jzr/meson3

Convert HelenOS build system to Meson

File:
1 moved

Legend:

Unmodified
Added
Removed
  • meson/part/extra_targets/meson.build

    rfa70134 r32b4302  
    11#
    22# Copyright (c) 2017 Jiri Svoboda
     3# Copyright (c) 2019 Jiří Zárevúcky
    34# All rights reserved.
    45#
     
    2728#
    2829
    29 USPACE_PREFIX = ../..
    30 BINARY = gunzip
     30run_target('config',
     31        command: [
     32                sh,
     33                '-c', 'cd $1 && $2 $3 $4 $5',
     34                '--',
     35                meson.build_root(),
     36                config_py.path(),
     37                meson.source_root() / 'HelenOS.config',
     38                meson.source_root() / 'defaults',
     39                '--mask-platform',
     40        ]
     41)
    3142
    32 LIBS = compress
     43# TODO: Check when cross target has changed, since it won't work.
    3344
    34 SOURCES = \
    35         gunzip.c
     45if false
     46        # TODO: doesn't work because it changes cross target
     47        run_target('random-config',
     48                command: [
     49                        sh,
     50                        '-c', 'cd $1 && $2 $3 $4 random',
     51                        '--',
     52                        meson.build_root(),
     53                        config_py.path(),
     54                        meson.source_root() / 'HelenOS.config',
     55                        meson.source_root() / 'defaults',
     56                ]
     57        )
     58endif
    3659
    37 include $(USPACE_PREFIX)/Makefile.common
     60if doxygen.found()
     61        _patch_file = files('doxygen.cfg.diff')
     62
     63        _gen_cfg = custom_target('doxygen.cfg.gen',
     64                output: 'doxygen.cfg.gen',
     65                command: [ doxygen, '-g', '@OUTPUT@' ],
     66        )
     67
     68        _dox_cfg = custom_target('doxygen.cfg',
     69                output: 'doxygen.cfg',
     70                input: [ _gen_cfg, _patch_file ],
     71                command: [ patch, '-o', '@OUTPUT@', '@INPUT@' ],
     72        )
     73
     74        run_target('doxygen', command: [ doxygen, _dox_cfg ])
     75endif
     76
     77# TODO text-xcw
     78#ifeq ($(CONFIG_DEVEL_FILES),y)
     79#       export PATH=$$PATH:$(abspath tools/xcw/bin) && $(MAKE) -r -C tools/xcw/demo
     80#endif
     81
     82# TODO special target for posix and xcw exports, update coastline for it
Note: See TracChangeset for help on using the changeset viewer.