Changeset 5852a5a in mainline
- Timestamp:
- 2019-08-17T12:49:43Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d63c842
- Parents:
- 1ef3213
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-27 14:27:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- Location:
- uspace
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/meson.build
r1ef3213 r5852a5a 45 45 46 46 # TODO: install this file somewhere sane 47 install _data('demo.txt', install_dir: '/')47 installed_data += { 'name': 'demo.txt', 'dir': '/' } -
uspace/app/modplay/meson.build
r1ef3213 r5852a5a 4 4 if install_nonessential_data 5 5 # TODO: install this file somewhere sane 6 install _data('demo.xm', install_dir: '/')6 installed_data += { 'name': 'demo.xm', 'dir': '/' } 7 7 endif -
uspace/app/viewer/meson.build
r1ef3213 r5852a5a 4 4 if install_nonessential_data 5 5 # TODO: install this file somewhere sane 6 install _data('logo.tga', install_dir: '/')6 installed_data += { 'name': 'logo.tga', 'dir': '/' } 7 7 endif -
uspace/app/wavplay/meson.build
r1ef3213 r5852a5a 9 9 if install_nonessential_data 10 10 # TODO: install this file somewhere sane 11 install _data('demo.wav', install_dir: '/')11 installed_data += { 'name': 'demo.wav', 'dir': '/' } 12 12 endif -
uspace/drv/bus/isa/meson.build
r1ef3213 r5852a5a 1 1 src = files('i8237.c', 'isa.c') 2 2 3 install_data('ebus.dev', 'isa.dev', install_dir: 'drv' / 'isa') 3 installed_data += [ 4 { 'name': 'ebus.dev', 'dir': 'drv/isa' }, 5 { 'name': 'isa.dev', 'dir': 'drv/isa' }, 6 ] -
uspace/drv/nic/ar9271/meson.build
r1ef3213 r5852a5a 8 8 ) 9 9 10 install _data('ar9271.fw', install_dir: 'drv' / 'ar9271')10 installed_data += { 'name': 'ar9271.fw', 'dir': 'drv/ar9271' } -
uspace/lib/meson.build
r1ef3213 r5852a5a 63 63 testfiles = [] 64 64 65 # Text of the install script. 66 uspace_lib_install_script_text = [] 67 uspace_lib_install_depends = [] 68 65 69 foreach l : libs 66 70 # Variables that might be defined in library meson files: -
uspace/meson.build
r1ef3213 r5852a5a 12 12 subdir('drv') 13 13 14 install_files = [] 15 install_deps = [] 14 16 dirs = [] 15 17 … … 41 43 # Install driver metadata. 42 44 if not CONFIG_BAREBONE or rd_essential.contains('drv' / drv) 43 install_data('drv' / drv / _basename + '.ma', install_dir: 'drv' / _basename) 45 _src = meson.current_source_dir() / 'drv' / drv / _basename + '.ma' 46 _dstdir = 'drv' / _basename 47 install_files += [[ _dstdir, _src, _basename + '.ma' ]] 44 48 endif 45 49 endforeach … … 55 59 link_args = [] 56 60 language = 'c' 61 installed_data = [] 57 62 58 63 subdir(appdirs.get('subdir')) … … 62 67 63 68 install = not CONFIG_BAREBONE or rd_essential.contains(dir) 69 70 if install 71 # Install data files, if any. 72 foreach _f : installed_data 73 _dstdir = _f.get('dir') 74 _src = meson.current_source_dir() / dir / _f.get('name') 75 install_files += [[ _dstdir, _src, _f.get('name') ]] 76 endforeach 77 endif 64 78 65 79 # basename/dirname will be is useful later. … … 133 147 endforeach 134 148 135 install_script_text = []136 137 149 foreach tst : bin_targets 138 150 _ldargs = tst.get('link_args') … … 145 157 _build_name = _full_install_path.underscorify() 146 158 _full_build_name = meson.current_build_dir() / _build_name 147 148 if _install149 # Due to certain quirks of our build, executables need to be built with a different name than what they are installed with.150 # Meson doesn't support renaming installed files (at least not as of mid-2019) so we do it here manually.151 152 install_script_text += [153 'mkdir -p ${MESON_INSTALL_DESTDIR_PREFIX}"@0@"'.format(_install_dir),154 'cp "@0@" ${MESON_INSTALL_DESTDIR_PREFIX}"@1@"'.format(_full_build_name, _full_install_path),155 ]156 157 if install_debug_files158 install_script_text += [159 'cp "@0@".disasm ${MESON_INSTALL_DESTDIR_PREFIX}debug/"@1@".disasm'.format(_full_build_name, _full_install_path),160 'cp "@0@".map ${MESON_INSTALL_DESTDIR_PREFIX}debug/"@1@".map'.format(_full_build_name, _full_install_path)161 ]162 endif163 endif164 159 165 160 if link_map … … 176 171 link_args: arch_uspace_c_args + arch_uspace_link_args + _ldargs, 177 172 implicit_include_directories: false, 178 install: false,179 #install_dir: _install_dir,180 173 build_by_default: true, 181 174 ) 182 175 183 176 if disassemble 184 custom_target(_build_name + '.disasm',177 _disasm = custom_target(_build_name + '.disasm', 185 178 command: [ objdump, '-S', '@INPUT@' ], 186 179 input: _bin, 187 180 output: _build_name + '.disasm', 188 181 capture: true, 189 install: false,190 #install_dir: 'debug' / _install_dir,191 182 build_by_default: true, 192 183 ) 193 184 endif 194 endforeach 185 186 if _install 187 # Due to certain quirks of our build, executables need to be built with a different name than what they are installed with. 188 # Meson doesn't support renaming installed files (at least not as of mid-2019) so we do it manually. 189 190 install_files += [[ _install_dir, _full_build_name, _basename ]] 191 install_deps += [ _bin ] 192 193 if install_debug_files 194 if disassemble 195 install_files += [[ 'debug' / _install_dir, _full_build_name + '.disasm', _basename + '.disasm' ]] 196 install_deps += [ _disasm ] 197 endif 198 if link_map 199 install_files += [[ 'debug' / _install_dir, _full_build_name + '.map', _basename + '.map' ]] 200 endif 201 endif 202 endif 203 endforeach 204 205 uspace_bin_install_script_text = [] 206 207 foreach f : install_files 208 _cmd = 'mkdir -p "${MESON_INSTALL_DESTDIR_PREFIX}@0@" && cp -L -T "@1@" "${MESON_INSTALL_DESTDIR_PREFIX}@0@/@2@"' 209 uspace_bin_install_script_text += _cmd.format(f[0], f[1], f[2]) 210 endforeach 211 212 uspace_install_script_text = uspace_lib_install_script_text + uspace_bin_install_script_text 195 213 196 214 # Emit and register the install script. 197 215 198 216 configure_file( 199 configuration: { 'text' : '\n'.join( install_script_text) },217 configuration: { 'text' : '\n'.join(uspace_install_script_text) }, 200 218 input: 'install.sh.in', 201 219 output: 'install.sh',
Note:
See TracChangeset
for help on using the changeset viewer.