[libadwaita] Use only the basename of files in public types file



commit 2f583220d101544207c4cba1eedf10b8eca249ec
Author: Tristan Partin <tristan partin io>
Date:   Thu Nov 4 13:03:19 2021 -0500

    Use only the basename of files in public types file
    
    Previously paths would include full paths relative to the parent project
    which just seems wrong.

 meson.build             | 1 -
 src/gen-public-types.sh | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index f8bee36b..fdb3eecf 100644
--- a/meson.build
+++ b/meson.build
@@ -28,7 +28,6 @@ libversion = '@0@.@1@.@2@'.format(soversion, current, revision)
 add_project_arguments([
   '-DHAVE_CONFIG_H',
   '-DADWAITA_COMPILATION',
-  '-I' + meson.build_root(),
 ], language: 'c')
 
 root_inc = include_directories('.')
diff --git a/src/gen-public-types.sh b/src/gen-public-types.sh
index 5cd1f3ce..b99aa87e 100644
--- a/src/gen-public-types.sh
+++ b/src/gen-public-types.sh
@@ -7,7 +7,7 @@ echo '/* This file was generated by gen-plublic-types.sh, do not edit it. */
 
 for var in "$@"
 do
-  echo "#include \"$var\""
+  echo "#include \"$(basename "$var")\""
 done
 
 echo '#include "adw-main-private.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]