Changeset 7749646 in mainline


Ignore:
Timestamp:
2019-08-17T12:49:44Z (5 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:
6068476
Parents:
e3737eda
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-16 17:44:58)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:44)
Message:

Add tools/export.sh to replace make export

Files:
3 added
5 edited

Legend:

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

    re3737eda r7749646  
    99
    1010export_cppflags = [
    11         '-isystem', '$(HELENOS_EXPORT_ROOT)/include/posix',
     11        '-isystem', '$(HELENOS_EXPORT_ROOT)/include/libposix',
    1212        '-isystem', '$(HELENOS_EXPORT_ROOT)/include/libc',
    1313        '-idirafter', '$(HELENOS_EXPORT_ROOT)/include',
     
    5656        capture: true,
    5757)
    58 
    59 install_files += [[ 'config', meson.current_build_dir() / 'config.mk', 'config.mk' ]]
    60 install_deps += [ config_mk ]
    61 install_files += [[ 'config', meson.current_build_dir() / 'config.sh', 'config.sh' ]]
    62 install_deps += [ config_sh ]
  • meson/part/initrd/meson.build

    re3737eda r7749646  
    3131endforeach
    3232
     33if CONFIG_DEVEL_FILES
     34        install_script_text += uspace_lib_devel_install_script_text
     35endif
     36
     37install_devel_script = configure_file(
     38        configuration: { 'text' : '\n'.join(uspace_lib_devel_install_script_text) },
     39        input: 'install_devel.sh.in',
     40        output: 'install_devel.sh',
     41)
     42
    3343install_script_text += uspace_lib_install_script_text
    3444
     
    4252
    4353dist_dir = meson.build_root() / 'dist/'
     54
     55run_target('devel-headers',
     56        command: [ sh, install_devel_script, dist_dir ],
     57)
    4458
    4559dist = custom_target('DIST',
  • uspace/lib/c/meson.build

    re3737eda r7749646  
    2121#        we should instead move the duplicated library parts into a shared location.
    2222
    23 if CONFIG_DEVEL_FILES
    24         uspace_lib_install_script_text += 'mkdir -p "${DESTDIR}include/libc"'
    25 
    26         foreach idir : incdirs
    27                 _sdir = meson.current_source_dir() / idir
    28                 uspace_lib_install_script_text += 'cp -R -L -T "@0@" "${DESTDIR}include/libc"'.format(_sdir)
    29         endforeach
    30 endif
     23uspace_lib_devel_install_script_text += 'mkdir -p "${DESTDIR}include/libc"'
     24foreach idir : incdirs
     25        _sdir = meson.current_source_dir() / idir
     26        uspace_lib_devel_install_script_text += 'cp -R -L -T "@0@" "${DESTDIR}include/libc"'.format(_sdir)
     27endforeach
    3128
    3229src = [ arch_src ]
  • uspace/lib/meson.build

    re3737eda r7749646  
    6464
    6565# Text of the install script.
    66 uspace_lib_install_script_text = []
     66uspace_lib_devel_install_script_text = []
    6767
    6868foreach l : libs
     
    121121                        includes += include_directories(incdir)
    122122
    123                         if CONFIG_DEVEL_FILES and installed_libs.contains(l)
     123                        if installed_libs.contains(l)
    124124                                _sdir = meson.current_source_dir() / l / 'include'
    125                                 uspace_lib_install_script_text += 'cp -R -L -T "@0@" "${DESTDIR}include/lib@1@"'.format(_sdir, l)
     125                                uspace_lib_devel_install_script_text += 'cp -R -L -T "@0@" "${DESTDIR}include/lib@1@"'.format(_sdir, l)
    126126                        endif
    127127                else
    128128                        includes += include_directories(l)
    129129
    130                         if CONFIG_DEVEL_FILES and installed_libs.contains(l)
     130                        if installed_libs.contains(l)
    131131                                _sdir = meson.current_source_dir() / l
    132                                 uspace_lib_install_script_text += 'mkdir -p "${DESTDIR}include/lib@0@"'.format(l)
    133                                 uspace_lib_install_script_text += 'cp -L -t "${DESTDIR}include/lib@0@" "@1@"/*.h || true'.format(l, _sdir)
     132                                uspace_lib_devel_install_script_text += 'mkdir -p "${DESTDIR}include/lib@0@"'.format(l)
     133                                uspace_lib_devel_install_script_text += 'cp -L -t "${DESTDIR}include/lib@0@" "@1@"/*.h || true'.format(l, _sdir)
    134134                        endif
    135135                endif
  • uspace/lib/posix/meson.build

    re3737eda r7749646  
    3434)
    3535
     36_sdir = meson.current_source_dir() / 'include' / 'posix'
     37uspace_lib_devel_install_script_text += 'mkdir -p "${DESTDIR}include/libposix"'
     38uspace_lib_devel_install_script_text += 'cp -R -L -T "@0@" "${DESTDIR}include/libposix"'.format(_sdir)
     39
    3640# TODO: exports
Note: See TracChangeset for help on using the changeset viewer.