diff options
Diffstat (limited to 'meta-oe/recipes-devtools/perfetto/files/0001-meson-add-pc-file-for-lib_perfetto.patch')
| -rw-r--r-- | meta-oe/recipes-devtools/perfetto/files/0001-meson-add-pc-file-for-lib_perfetto.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/perfetto/files/0001-meson-add-pc-file-for-lib_perfetto.patch b/meta-oe/recipes-devtools/perfetto/files/0001-meson-add-pc-file-for-lib_perfetto.patch new file mode 100644 index 0000000000..70de44173d --- /dev/null +++ b/meta-oe/recipes-devtools/perfetto/files/0001-meson-add-pc-file-for-lib_perfetto.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | From 027f90dc9386ec08f2a5107025683e5fed6f3444 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Markus Volk <f_l_k@t-online.de> | ||
| 3 | Date: Mon, 17 Oct 2022 19:20:53 +0200 | ||
| 4 | Subject: [PATCH] meson: add PC file for lib_perfetto | ||
| 5 | |||
| 6 | --- | ||
| 7 | meson.build | 12 ++++++++++-- | ||
| 8 | 1 file changed, 10 insertions(+), 2 deletions(-) | ||
| 9 | |||
| 10 | diff --git a/meson.build b/meson.build | ||
| 11 | index 06015141c..752b4d928 100644 | ||
| 12 | --- a/meson.build | ||
| 13 | +++ b/meson.build | ||
| 14 | @@ -19,9 +19,12 @@ | ||
| 15 | project( | ||
| 16 | 'perfetto', | ||
| 17 | ['c','cpp'], | ||
| 18 | - default_options: ['c_std=c99', 'cpp_std=c++11'] | ||
| 19 | + default_options: ['c_std=c99', 'cpp_std=c++11'], | ||
| 20 | + version: '27.1' | ||
| 21 | ) | ||
| 22 | |||
| 23 | +soversion = meson.project_version() | ||
| 24 | + | ||
| 25 | fs = import('fs') | ||
| 26 | |||
| 27 | if not fs.is_dir('sdk') | ||
| 28 | @@ -30,8 +33,9 @@ endif | ||
| 29 | |||
| 30 | dep_threads = dependency('threads') | ||
| 31 | |||
| 32 | -lib_perfetto = static_library( | ||
| 33 | +lib_perfetto = shared_library( | ||
| 34 | 'perfetto', | ||
| 35 | + version: soversion, | ||
| 36 | sources: 'sdk/perfetto.cc', | ||
| 37 | dependencies: dep_threads, | ||
| 38 | install: true, | ||
| 39 | @@ -39,6 +43,10 @@ lib_perfetto = static_library( | ||
| 40 | |||
| 41 | inc_perfetto = include_directories('sdk') | ||
| 42 | |||
| 43 | +install_headers('sdk/perfetto.h') | ||
| 44 | +pkg = import('pkgconfig') | ||
| 45 | +pkg.generate(lib_perfetto) | ||
| 46 | + | ||
| 47 | dep_perfetto = declare_dependency( | ||
| 48 | link_with: lib_perfetto, | ||
| 49 | include_directories: inc_perfetto, | ||
| 50 | -- | ||
| 51 | 2.34.1 | ||
| 52 | |||
