diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meson.build b/meson.build index ede2e155a7..713877808f 100644 --- a/meson.build +++ b/meson.build @@ -640,8 +640,15 @@ if cloudproviders_enabled endif endif -graphene_has_sse2 = graphene_dep.get_pkgconfig_variable('graphene_has_sse2') == '1' -graphene_has_gcc = graphene_dep.get_pkgconfig_variable('graphene_has_gcc') == '1' +graphene_dep_type = graphene_dep.type_name() +if graphene_dep_type == 'pkgconfig' + graphene_has_sse2 = graphene_dep.get_pkgconfig_variable('graphene_has_sse2') == '1' + graphene_has_gcc = graphene_dep.get_pkgconfig_variable('graphene_has_gcc') == '1' +else + graphene_simd = subproject('graphene').get_variable('graphene_simd') + graphene_has_sse2 = graphene_simd.contains('sse2') + graphene_has_gcc = graphene_simd.contains('gcc') +endif malloc_is_aligned = false |