[libgee/meson: 16/18] Can build benchmark
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgee/meson: 16/18] Can build benchmark
- Date: Mon, 21 Feb 2022 12:57:40 +0000 (UTC)
commit 9dcba6409a9d553eb2553c59aee3d397ce727e95
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 file 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]