infra: print enabled features in the meson summary list.
authorHermet Park <chuneon.park@samsung.com>
Sat, 3 Jul 2021 05:58:17 +0000 (14:58 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Wed, 7 Jul 2021 02:57:02 +0000 (11:57 +0900)
instead removed individual messages.

meson.build
src/bin/meson.build
src/bindings/meson.build
src/lib/meson.build
src/loaders/meson.build
src/meson.build

index 1765fef8aa49120dabc027503b34cc21ff59ad27..294dbf3e96ab5642dbd759b0cdb73d9a68c2bdf5 100644 (file)
@@ -38,7 +38,6 @@ endif
 
 if get_option('log') == true
     config_h.set10('THORVG_LOG_ENABLED', true)
-    message('Enable Log')
 endif
 
 configure_file(
@@ -58,17 +57,36 @@ endif
 summary = '''
 
 Summary:
-    ThorVG version  :       @0@
-    Build Type      :       @1@
-    Prefix          :       @2@
-    Tests           :       @3@
-    Examples        :       @4@
+    ThorVG version:        @0@
+    Build Type:            @1@
+    Prefix:                @2@
+    Raster Engine (SW):    @3@
+    Raster Engine (GL):    @4@
+    AVX SIMD Instruction:  @5@
+    Loader (TVG):          @6@
+    Loader (SVG):          @7@
+    Loader (PNG):          @8@
+    CAPI Binding:          @9@
+    Log Message:           @10@
+    Tests:                 @11@
+    Examples:              @12@
+    Tool (Svg2Png):        @13@
+
 '''.format(
         meson.project_version(),
         get_option('buildtype'),
         get_option('prefix'),
+        get_option('engines').contains('sw'),
+        get_option('engines').contains('gl'),
+        get_option('vectors').contains('avx'),
+        get_option('loaders').contains('tvg'),
+        get_option('loaders').contains('svg'),
+        get_option('loaders').contains('png'),
+        get_option('bindings').contains('capi'),
+        get_option('log'),
         get_option('tests'),
         get_option('examples'),
+        get_option('tools').contains('svg2png'),
     )
 
 message(summary)
index 9ee39e98985e9dea63f0c637ef87cd52eaf12293..fa68f8497c02df848861c293308272741568f47f 100644 (file)
@@ -1,5 +1,4 @@
 if get_option('tools').contains('svg2png') == true
-   message('Enable Tools: svg2png')
    subdir('svg2png')
 endif
 
index 2b3a15064c7eeac5ff5f9999c815f8e2dd53bf05..e1ae809030e0b5f5be3f2994032dda4a9daced75 100644 (file)
@@ -2,7 +2,6 @@ subbinding_dep = []
 
 if get_option('bindings').contains('capi') == true
     subdir('capi')
-    message('Enable CAPI Bindings')
 endif
 
 binding_dep = declare_dependency(
index 4202714dab43defbed27c2d19a7d69bd220d3234..089a8fc87ade9fad185118defbe0e1b2fcfc8650 100644 (file)
@@ -2,12 +2,10 @@ engine_dep = []
 
 if get_option('engines').contains('sw') == true
     subdir('sw_engine')
-    message('Enable SW Raster Engine')
 endif
 
 if get_option('engines').contains('gl') == true
     subdir('gl_engine')
-    message('Enable GL Raster Engine')
 endif
 
 source_file = [
index 3ba004e68ba16c0304cd49af7b29d44d08a0897d..f2e5b550a29d3095cd6ee2535be30dc43235fc16 100644 (file)
@@ -2,17 +2,14 @@ subloader_dep = []
 
 if get_option('loaders').contains('svg') == true
     subdir('svg')
-    message('Enable SVG Loader')
 endif
 
 if get_option('loaders').contains('png') == true
     subdir('png')
-    message('Enable PNG Loader')
 endif
 
 if get_option('loaders').contains('tvg') == true
     subdir('tvg')
-    message('Enable TVG Loader')
 endif
 
 subdir('raw')
index 2e237e495b817fda216170f24a27f3e56b00e058..119dec2d8ca0eb6b8231a4ddb4c94c3676519d7e 100644 (file)
@@ -4,7 +4,6 @@ cc = meson.get_compiler('cpp')
 if (cc.get_id() != 'msvc')
     if get_option('vectors').contains('avx')
         compiler_flags += ['-mavx']
-        message('Enable Advanced Vector Extension')
     endif
     if get_option('b_sanitize') == 'none'
         compiler_flags += ['-fno-exceptions', '-fno-rtti',
@@ -59,6 +58,5 @@ pkg_mod.generate(
 subdir('bin')
 
 if get_option('examples') == true
-    message('Enable Examples')
     subdir('examples')
 endif