perfetto: Upgrade to 31.0 release

Forward port pc file patch to 0.31 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2023-01-29 21:58:51 -08:00
parent e16db79ffc
commit 71d2adfc5f
2 changed files with 12 additions and 17 deletions
@@ -7,17 +7,15 @@ Subject: [PATCH] meson: add PC file for lib_perfetto
meson.build | 12 ++++++++++-- meson.build | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-) 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index 06015141c..752b4d928 100644
--- a/meson.build --- a/meson.build
+++ b/meson.build +++ b/meson.build
@@ -19,9 +19,12 @@ @@ -19,9 +19,12 @@
project( project(
'perfetto', 'perfetto',
['c','cpp'], ['cpp'],
- default_options: ['c_std=c99', 'cpp_std=c++11'] - default_options: ['cpp_std=c++17']
+ default_options: ['c_std=c99', 'cpp_std=c++11'], + default_options: ['cpp_std=c++17'],
+ version: '27.1' + version: '31.0'
) )
+soversion = meson.project_version() +soversion = meson.project_version()
@@ -25,20 +23,20 @@ index 06015141c..752b4d928 100644
fs = import('fs') fs = import('fs')
if not fs.is_dir('sdk') if not fs.is_dir('sdk')
@@ -30,8 +33,9 @@ endif @@ -36,8 +39,9 @@ if host_machine.system() == 'android'
deps_perfetto += cpp.find_library('log')
dep_threads = dependency('threads') endif
-lib_perfetto = static_library( -lib_perfetto = static_library(
+lib_perfetto = shared_library( +lib_perfetto = shared_library(
'perfetto', 'perfetto',
+ version: soversion, + version: soversion,
sources: 'sdk/perfetto.cc', sources: 'sdk/perfetto.cc',
dependencies: dep_threads, dependencies: deps_perfetto,
install: true, install: true,
@@ -39,6 +43,10 @@ lib_perfetto = static_library( @@ -50,6 +54,10 @@ dir_perfetto_trace = join_paths(meson.cu
inc_perfetto = include_directories('sdk') install_data(dir_perfetto_trace / 'perfetto_trace.proto')
+install_headers('sdk/perfetto.h') +install_headers('sdk/perfetto.h')
+pkg = import('pkgconfig') +pkg = import('pkgconfig')
@@ -47,6 +45,3 @@ index 06015141c..752b4d928 100644
dep_perfetto = declare_dependency( dep_perfetto = declare_dependency(
link_with: lib_perfetto, link_with: lib_perfetto,
include_directories: inc_perfetto, include_directories: inc_perfetto,
--
2.34.1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/google/perfetto"
SRC_URI = "git://github.com/google/perfetto.git;protocol=https;name=perfetto;nobranch=1" SRC_URI = "git://github.com/google/perfetto.git;protocol=https;name=perfetto;nobranch=1"
SRCREV_perfetto = "1c52b5e132312aeb007ed180d4ba1d8d66227923" SRCREV_perfetto = "b8da07095979310818f0efde2ef3c69ea70d62c5"
PV = "27.1" PV = "31.0"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"