[libgd] meson: Build test-tagged-entry manual tests



commit 7d9385c3c5f091a29dc7afb40d5d98a3e42221ef
Author: Nirbheek Chauhan <nirbheek centricular com>
Date:   Thu May 18 00:52:48 2017 +0530

    meson: Build test-tagged-entry manual tests
    
    Useful for testing of libgd. Also means it is no longer an error to
    build libgd as a standalone project.

 meson.build |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index 98ab8d2..6d1242c 100644
--- a/meson.build
+++ b/meson.build
@@ -4,7 +4,7 @@ project('libgd', 'c',
 )
 
 if not meson.is_subproject()
-  error('This project is only intended to be used as a subproject!')
+  message('WARNING: This project is only intended to be used as a subproject!')
 endif
 
 pkglibdir = get_option('pkglibdir')
@@ -16,3 +16,9 @@ libm = cc.find_library('m', required: false)
 libgd_include = include_directories('.')
 
 subdir('libgd')
+
+if get_option('with-tagged-entry')
+  foreach t : ['test-tagged-entry', 'test-tagged-entry-2']
+    executable(t, t + '.c', dependencies : libgd_dep)
+  endforeach
+endif


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