diff options
Diffstat (limited to 'meta/recipes-graphics/shaderc')
| -rw-r--r-- | meta/recipes-graphics/shaderc/shaderc_2020.4.bb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-graphics/shaderc/shaderc_2020.4.bb b/meta/recipes-graphics/shaderc/shaderc_2020.4.bb index ee9b118371..e886e81d0e 100644 --- a/meta/recipes-graphics/shaderc/shaderc_2020.4.bb +++ b/meta/recipes-graphics/shaderc/shaderc_2020.4.bb | |||
| @@ -19,15 +19,17 @@ DEPENDS = "spirv-tools glslang" | |||
| 19 | 19 | ||
| 20 | EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON" | 20 | EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON" |
| 21 | 21 | ||
| 22 | BBCLASSEXTEND = "native nativesdk" | ||
| 23 | |||
| 24 | # TODO: probably there is better solution for this. | ||
| 25 | # I don't know any method for get the version of a receipe in DEPENDS, | ||
| 26 | # so do this ugly hack | ||
| 27 | inherit pkgconfig | ||
| 28 | DEPENDS += "glslang-native" | ||
| 22 | do_configure_prepend() { | 29 | do_configure_prepend() { |
| 23 | # TODO: probably there is better solution for this. | ||
| 24 | # I dont know any method for get the version of a receipe in DEPENDS | ||
| 25 | # so do this ugly hack | ||
| 26 | cat <<- EOF > ${S}/glslc/src/build-version.inc | 30 | cat <<- EOF > ${S}/glslc/src/build-version.inc |
| 27 | "${PV}\\n" | 31 | "${PV}\\n" |
| 28 | "$(pkg-config --modversion SPIRV-Tools)\\n" | 32 | "$(pkg-config --modversion SPIRV-Tools)\\n" |
| 29 | "$(glslangValidator --version | head -1 | cut -d' ' -f3)\\n" | 33 | "$(glslangValidator --version | head -1 | cut -d' ' -f3)\\n" |
| 30 | EOF | 34 | EOF |
| 31 | } | 35 | } |
| 32 | |||
| 33 | BBCLASSEXTEND = "native nativesdk" | ||
