Changeset b2695b9 in mainline for meson.build
- Timestamp:
- 2019-08-17T12:49:43Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 123cd6d
- Parents:
- 740e952
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-27 16:44:01)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
meson.build
r740e952 rb2695b9 22 22 unzip = find_program('unzip') 23 23 which = find_program('which') 24 sh = find_program('sh') 24 25 25 26 autocheck = generator(find_program('tools/autocheck.awk'), … … 382 383 output: 'config.mk', 383 384 configuration: conf_data, 384 install: true,385 install_dir: 'config',386 385 ) 387 386 … … 391 390 command: [ sed, 's:$(HELENOS_EXPORT_ROOT):${HELENOS_EXPORT_ROOT}:g', '@INPUT@' ], 392 391 capture: true, 393 install: true, 394 install_dir: 'config', 395 ) 396 397 install_data('Makefile.common', 'Makefile.config', install_dir: 'config') 392 ) 393 394 install_files += [[ 'config', meson.current_build_dir() / 'config.mk', 'config.mk' ]] 395 install_files += [[ 'config', meson.current_build_dir() / 'config.sh', 'config.sh' ]] 396 397 # TODO: remove 398 install_files += [[ 'config', meson.current_source_dir() / 'Makefile.common', 'Makefile.common' ]] 399 install_files += [[ 'config', meson.current_source_dir() / 'Makefile.config', 'Makefile.config' ]] 398 400 399 401 … … 403 405 404 406 foreach f : install_files 405 _cmd = 'mkdir -p "${ MESON_INSTALL_DESTDIR_PREFIX}@0@" && cp -L -T "@1@" "${MESON_INSTALL_DESTDIR_PREFIX}@0@/@2@"'407 _cmd = 'mkdir -p "${DESTDIR}@0@" && cp -L -T "@1@" "${DESTDIR}@0@/@2@"' 406 408 install_script_text += _cmd.format(f[0], f[1], f[2]) 407 409 endforeach … … 409 411 install_script_text += uspace_lib_install_script_text 410 412 411 configure_file( 413 install_script_name = meson.current_build_dir() / 'install.sh' 414 415 install_script = configure_file( 412 416 configuration: { 'text' : '\n'.join(install_script_text) }, 413 417 input: 'install.sh.in', … … 415 419 ) 416 420 417 meson.add_install_script(meson.current_build_dir() / 'install.sh') 421 meson.add_install_script(install_script_name) 422 423 custom_target('DIST', 424 output: 'dist.log', 425 input: [ install_script, install_deps ], 426 command: [ sh, '@INPUT0@', meson.current_build_dir()/'dist/' ], 427 capture: true, 428 build_by_default: true, 429 ) 430
Note:
See TracChangeset
for help on using the changeset viewer.