[gxml] StreamReader: switched as experimental feature



commit 8af9077ab641343da6c6a3e78d2bc511fecd9523
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Jun 24 18:38:37 2020 -0500

    StreamReader: switched as experimental feature

 gxml/meson.build  | 7 ++++++-
 meson_options.txt | 1 +
 test/meson.build  | 6 ++++--
 3 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/gxml/meson.build b/gxml/meson.build
index 5f19bc8..b87d588 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -70,7 +70,6 @@ valasources = files ([
        'Property.vala',
        'Range.vala',
        'SettableTokenList.vala',
-       'StreamReader.vala',
        'StringRef.vala',
        'Text.vala',
        'TokenList.vala',
@@ -93,6 +92,12 @@ valasources = files ([
        'XText.vala',
 ])
 
+if get_option('experimental')
+valasources += files([
+       'StreamReader.vala'
+       ])
+endif
+
 sources = files ([
 ])
 
diff --git a/meson_options.txt b/meson_options.txt
index 6b696bf..2320c44 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,2 +1,3 @@
 option('introspection', type : 'boolean', value : true, description : 'Create GObject Introspection file 
definitions')
 option('docs', type : 'boolean', value : true, description : 'Generate Vala Documentation')
+option('experimental', type : 'boolean', value : false, description : 'Generate experimental classes')
diff --git a/test/meson.build b/test/meson.build
index b0dc80a..88bd791 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -27,7 +27,7 @@ t = executable('tests', files_tests + configvapi + configtestvapi,
 )
 
 test ('tests', t)
-
+if get_option('experimental')
 stream_tests = files ([
                'StreamReaderTest.vala',
        ])
@@ -40,6 +40,7 @@ tstream = executable('stream-reader', stream_tests + configvapi + configtestvapi
 )
 
 test ('stream-reader', tstream)
+endif
 
 feedreader_files = ([
        'feedreader-test.vala'
@@ -104,6 +105,7 @@ libxml_performance_iterate = executable('libxml-performance-iterate', files_libx
 
 benchmark ('libxml-performance-iterate', libxml_performance_iterate)
 
+if get_option('experimental')
 files_stream_reader_performance = files ([
                'StreamReaderPerformanceTest.vala'
        ])
@@ -154,4 +156,4 @@ stream_reader_performance_async_read = executable('stream-reader-performance-asy
 )
 
 benchmark ('stream-reader-performance-async', stream_reader_performance_async_read)
-
+endif


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