mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 01:58:35 +04:00
spice: convert to meson
Faster compilation. Removed autotools patches. Backported meson patch to fix compilation and pkgconfig file. Before: time make package/spice/compile -j 12 Executed in 62.85 secs fish external usr time 56.45 secs 276.00 micros 56.45 secs sys time 8.06 secs 46.00 micros 8.06 secs Before + PKG_BUILD_PARALLEL: Executed in 45.40 secs fish external usr time 63.08 secs 253.00 micros 63.08 secs sys time 8.57 secs 44.00 micros 8.57 secs After: time make package/spice/compile -j 12 Executed in 16.54 secs fish external usr time 41.29 secs 266.00 micros 41.29 secs sys time 4.76 secs 45.00 micros 4.76 secs Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
36
libs/spice/patches/030-include-generated-code.patch
Normal file
36
libs/spice/patches/030-include-generated-code.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
From 0ce9cecd0912f78b75600f3f428bdd943bf9622b Mon Sep 17 00:00:00 2001
|
||||
From: Rosen Penev <rosenp@gmail.com>
|
||||
Date: Fri, 9 Oct 2020 04:19:01 -0700
|
||||
Subject: [PATCH] don't regenerate [de]marshallers
|
||||
|
||||
The release tarballs already include these files.
|
||||
|
||||
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
||||
---
|
||||
subprojects/spice-common/common/meson.build | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
diff --git a/subprojects/spice-common/common/meson.build b/subprojects/spice-common/common/meson.build
|
||||
index 7356cc0..5796989 100644
|
||||
--- a/subprojects/spice-common/common/meson.build
|
||||
+++ b/subprojects/spice-common/common/meson.build
|
||||
@@ -180,6 +180,19 @@ if spice_common_generate_server_code
|
||||
endif
|
||||
endforeach
|
||||
|
||||
+ spice_common_server_lib = static_library('spice-common-server', spice_common_server_sources,
|
||||
+ install : false,
|
||||
+ dependencies : spice_common_dep)
|
||||
+
|
||||
+ spice_common_server_dep = declare_dependency(sources : spice_common_server_dep_sources,
|
||||
+ link_with : spice_common_server_lib,
|
||||
+ dependencies : spice_common_dep)
|
||||
+else
|
||||
+ spice_common_server_sources = ['generated_server_marshallers.c', 'generated_server_marshallers.h']
|
||||
+ spice_common_server_sources += ['generated_server_demarshallers.c']
|
||||
+ spice_common_server_dep_sources = ['generated_server_marshallers.c', 'generated_server_marshallers.h']
|
||||
+ spice_common_server_dep_sources += ['generated_server_demarshallers.c']
|
||||
+
|
||||
spice_common_server_lib = static_library('spice-common-server', spice_common_server_sources,
|
||||
install : false,
|
||||
dependencies : spice_common_dep)
|
||||
Reference in New Issue
Block a user