Changeset 7749646 in mainline for uspace/lib


Ignore:
Timestamp:
2019-08-17T12:49:44Z (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:
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

Location:
uspace/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.