1require sources.inc 2 3do_fetch() { 4 : 5} 6do_fetch[noexec] = "1" 7deltask do_unpack 8deltask do_patch 9 10S = "${TMPDIR}/work-shared/google-trout-agl-services-source/${PV}-${PR}/${FETCH_CODE_PREFIX}" 11 12do_configure[depends] += "google-trout-agl-services-source:do_patch" 13do_populate_lic[depends] += "google-trout-agl-services-source:do_unpack" 14 15def trout_compile_targets(d): 16 install_entries = d.getVar('TROUT_target_install').split() 17 compile_targets = map(lambda x: x.split(':')[0], install_entries) 18 return ' '.join(compile_targets) 19 20def trout_do_install(d): 21 install_entries = d.getVar('TROUT_target_install').split() 22 os.chdir(d.getVar('B') + '/bin') 23 install_dir = '{}{}'.format(d.getVar('D'), d.getVar('bindir')) 24 os.system('install -d {}'.format(install_dir)) 25 for entry in install_entries: 26 if ':' in entry: 27 src, dst = entry.split(':') 28 force_create_symlink(src, dst) 29 else: 30 dst = entry 31 os.system('install -m 0755 {} {}'.format(dst, install_dir)) 32 33OECMAKE_TARGET_COMPILE = "${@trout_compile_targets(d)}" 34 35inherit pkgconfig cmake 36 37python do_install() { 38 trout_do_install(d) 39} 40