meson: expose glapi through osmesa
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 2 May 2019 11:42:48 +0000 (12:42 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Sat, 18 May 2019 10:15:04 +0000 (11:15 +0100)
Suggested-by: Pierre Guillou <pierre.guillou@lip6.fr>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109659
Fixes: f121a669c7d94d2ff672 "meson: build gallium based osmesa"
Fixes: cbbd5bb889a2c271a504 "meson: build classic osmesa"
Cc: Brian Paul <brianp@vmware.com>
Cc: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Tested-by: Chuck Atkins <chuck.atkins@kitware.com>
src/gallium/targets/osmesa/meson.build
src/mesa/drivers/osmesa/meson.build

index b4ae8f4b6ec8c5a8f29b76df53b9d3202f414aee..e873e311aa04d0b05865c3842e1b81f3178ee1ee 100644 (file)
@@ -43,9 +43,9 @@ libosmesa = shared_library(
     inc_gallium_drivers,
   ],
   link_depends : osmesa_link_deps,
-  link_whole : [libosmesa_st],
+  link_whole : [libosmesa_st, libglapi_static],
   link_with : [
-    libmesa_gallium, libgallium, libglapi_static, libws_null, osmesa_link_with,
+    libmesa_gallium, libgallium, libws_null, osmesa_link_with,
   ],
   dependencies : [
     dep_selinux, dep_thread, dep_clock, dep_unwind,
index a406bb3c2100b9994034b3337e9580fd37135dd1..c479b7401316a5dced60592edf0d060fae8711a4 100644 (file)
@@ -33,7 +33,8 @@ libosmesa = shared_library(
   include_directories : [
     inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux,
   ],
-  link_with : [libmesa_classic, libglapi_static, osmesa_link_with],
+  link_whole : libglapi_static,
+  link_with : [libmesa_classic, osmesa_link_with],
   dependencies : [dep_thread, dep_selinux],
   version : '8.0.0',
   install : true,