Changeset 68b892a 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:
- ad5c4959
- Parents:
- d63c842
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-27 15:39:06)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/meson.build
rd63c842 r68b892a 65 65 # Text of the install script. 66 66 uspace_lib_install_script_text = [] 67 uspace_lib_install_depends = []68 67 69 68 foreach l : libs … … 146 145 endif 147 146 148 # TODO: install mapfile if install_debug_data is true149 147 mapfile = meson.current_build_dir() / 'lib' + l + '.map' 150 148 … … 175 173 if src.length() > 0 176 174 if not always_static 175 _libname = 'lib' + l + '.so.' + version.split('.')[0] 176 177 177 _shared_lib = shared_library(l, src, 178 178 # TODO: Include private headers using #include "quoted", … … 185 185 version: version, 186 186 build_by_default: true, 187 install: install_shared_lib,188 install_dir: 'lib',189 187 ) 190 188 189 if install_shared_lib 190 install_files += [[ 'lib', _shared_lib.full_path(), _libname ]] 191 install_deps += [ _shared_lib ] 192 endif 193 194 if install_shared_lib and install_debug_files 195 install_files += [[ 'debug/lib', mapfile, _libname + '.map' ]] 196 endif 197 191 198 if disassemble 192 custom_target('lib' + l + '.disasm',199 _disasm = custom_target('lib' + l + '.disasm', 193 200 command: [ objdump, '-S', '@INPUT@' ], 194 201 input: _shared_lib, … … 196 203 capture: true, 197 204 build_by_default: true, 198 install: install_debug_files,199 install_dir: join_paths('debug', 'lib'),200 205 ) 206 207 if install_shared_lib and install_debug_files 208 install_files += [[ 'debug/lib', _disasm.full_path(), _libname + '.disasm' ]] 209 install_deps += [ _disasm ] 210 endif 201 211 endif 202 212 … … 217 227 c_args: arch_uspace_c_args + c_args, 218 228 cpp_args: arch_uspace_c_args + c_args, 219 install: install_static_lib, 220 install_dir: 'lib', 221 ) 229 ) 230 231 if install_static_lib 232 install_files += [[ 'lib', _static_lib.full_path(), 'lib' + l + '.a' ]] 233 install_deps += [ _static_lib ] 234 endif 222 235 223 236 _static_dep = declare_dependency( … … 301 314 dependencies: [ get_variable('lib' + _libname).get('any'), libpcut.get('any') ], 302 315 objects: startfiles, 303 install: true,304 install_dir: 'test',305 316 c_args: arch_uspace_c_args, 306 317 cpp_args: arch_uspace_c_args, … … 308 319 ) 309 320 321 install_files += [[ 'test', _bin.full_path(), _test_binname ]] 322 install_deps += [ _bin ] 323 310 324 if disassemble 311 custom_target(_test_binname + '.disasm',325 _disasm = custom_target(_test_binname + '.disasm', 312 326 command: [ objdump, '-S', '@INPUT@' ], 313 327 input: _bin, … … 317 331 install_dir: 'debug' / 'test', 318 332 ) 333 334 install_files += [[ 'debug/test', _disasm.full_path(), _test_binname + '.disasm' ]] 335 install_deps += [ _disasm ] 319 336 endif 320 337 endforeach
Note:
See TracChangeset
for help on using the changeset viewer.