[libgee/meson] Can build benchmark



commit 0cadab9d1aa13b26643552ea830b2c5d280c94d1
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Nov 22 16:34:24 2017 -0600

    Can build benchmark
    
    Building benchmark requires to recompile all
    sources in order to get access to internal VAPI.
    
    This is not a real issue, if taking in account
    benchmark are not builded by default.

 benchmark/meson.build |   19 +++----------------
 1 files changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/benchmark/meson.build b/benchmark/meson.build
index dd5ca03..a641844 100644
--- a/benchmark/meson.build
+++ b/benchmark/meson.build
@@ -2,30 +2,17 @@ bsources = files([
        'benchmark.vala',
        'benchmarksorts.vala'
 ])
+bsources += valasources
 
 c = meson.get_compiler ('c')
 lm = c.find_library ('m', required : false)
 
-
-touch = find_program ('touch')
-fakevapi = custom_target ('fake_internal_vapi',
-       output : 'fake.vapi',
-       command : [
-               touch,
-               '@OUTPUT@'
-       ],
-       depends : gee)
-fakevapi_dep = declare_dependency (sources : fakevapi)
-
-gee_objects = gee.extract_all_objects ()
-
 benchmarks = executable('benchmarks',
        bsources,
        vala_args : [
-               join_paths (meson.build_root (), 'gee', 'gee-internals-0.8.vapi')
+               '--pkg=geeutils'
        ],
-       objects : gee_objects,
-       dependencies : [ gio, include_utils_h_dir_dep, includehdir_dep, lm, fakevapi_dep ],
+       dependencies : [ gio, include_utils_h_dir_dep, includehdir_dep, lm ],
 )
 
 benchmark ('benchmarks', benchmarks)


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