meson: avoid going back up the tree with include_directories()
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 14 Feb 2019 17:22:00 +0000 (17:22 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 5 Mar 2019 10:02:47 +0000 (10:02 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
include/meson.build
meson.build
src/meson.build

index dbae29fe60a5b8e1a48b3047366ba4eee2c498a9..fc2128818c6a1c7cb73a07210ce4d4e7bc5e7229 100644 (file)
@@ -18,6 +18,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
+inc_include = include_directories('.')
 inc_vulkan = include_directories('vulkan')
 inc_d3d9 = include_directories('D3D9')
 inc_gl_internal = include_directories('GL/internal')
index 50d2eec97efea220880c143ac945322db9401d9a..46f86eb0000bfd8fc8353a099ae0403746543b52 100644 (file)
@@ -1432,8 +1432,6 @@ foreach a : cpp_args
   add_project_arguments(a, language : ['cpp'])
 endforeach
 
-inc_include = include_directories('include')
-
 gl_priv_reqs = []
 
 if with_glx == 'xlib' or with_glx == 'gallium-xlib'
index 60b0d64019303536e69a537b746293e422f99bda..7f537b7094f1eba5ca8cbc242042a0672fd0ccb6 100644 (file)
@@ -18,8 +18,8 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
-inc_common = include_directories(
-  '../include', '.', 'mapi', 'mesa', 'gallium/include', 'gallium/auxiliary')
+inc_common = [inc_include, include_directories(
+  '.', 'mapi', 'mesa', 'gallium/include', 'gallium/auxiliary')]
 inc_mesa = include_directories('mesa')
 inc_mapi = include_directories('mapi')
 inc_src = include_directories('.')