Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Integrated Development Environment support" |
| 2 | DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE" |
| 3 | LICENSE = "MIT" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 5 | DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native cmake-native autoconf-native automake-native meson-native intltool-native pkgconfig-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | PR = "r3" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 7 | RM_WORK_EXCLUDE += "${PN}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 9 | inherit toolchain-scripts nopackages deploy testsdk |
| 10 | |
| 11 | TESTSDK_CLASS_NAME = "oeqa.sdk.testmetaidesupport.TestSDK" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | |
| 13 | do_populate_ide_support () { |
| 14 | toolchain_create_tree_env_script |
| 15 | } |
| 16 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 17 | python () { |
| 18 | sitefiles, searched = siteinfo_get_files(d, sysrootcache=False) |
| 19 | d.setVar("CONFIG_SITE", " ".join(sitefiles)) |
| 20 | d.appendVarFlag("do_populate_ide_support", "file-checksums", " " + " ".join(searched)) |
| 21 | } |
| 22 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 23 | addtask populate_ide_support before do_deploy after do_install |
| 24 | |
| 25 | python do_write_test_data() { |
| 26 | from oe.data import export2json |
| 27 | |
| 28 | out_dir = d.getVar('B') |
| 29 | testdata_name = os.path.join(out_dir, "%s.testdata.json" % d.getVar('PN')) |
| 30 | |
| 31 | export2json(d, testdata_name) |
| 32 | } |
| 33 | addtask write_test_data before do_deploy after do_install |
| 34 | |
| 35 | do_deploy () { |
| 36 | install ${B}/* ${DEPLOYDIR} |
| 37 | } |
| 38 | |
| 39 | addtask deploy before do_build |
| 40 | |
| 41 | do_build[deptask] += "do_prepare_recipe_sysroot" |