Skip to content

Commit 57a3ac7

Browse files
committed
fix: patches for _remotetranscode and _cefbrowser
1 parent 1b9eda0 commit 57a3ac7

2 files changed

Lines changed: 25 additions & 103 deletions

File tree

Lines changed: 16 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
diff -ru8bBwd a/meson.build b/meson.build
2-
--- a/meson.build 2025-04-16 16:25:54.000000000 +0200
3-
+++ b/meson.build 2025-04-17 10:43:03.788695092 +0200
4-
@@ -1,16 +1,18 @@
1+
diff --git a/meson.build b/meson.build
2+
index c35c7ce..a77e993 100644
3+
--- a/meson.build
4+
+++ b/meson.build
5+
@@ -1,11 +1,13 @@
56
project('cefbrowser', 'cpp', 'c',
67
version : '0.1',
78
default_options : ['warning_level=1', 'cpp_std=c++17', 'default_library=static', 'optimization=3', 'buildtype=debug' ],
@@ -16,17 +17,7 @@ diff -ru8bBwd a/meson.build b/meson.build
1617

1718
cmake = import('cmake')
1819
CXX = meson.get_compiler('cpp')
19-
20-
#
21-
# Download and extract subprojects
22-
#
23-
run_command('./setup.sh', arch, meson.current_build_dir(), check: false)
24-
@@ -18,19 +20,24 @@
25-
#
26-
# Build cef
27-
#
28-
cef_opt_var = cmake.subproject_options()
29-
20+
@@ -23,9 +25,14 @@ cef_opt_var = cmake.subproject_options()
3021
if arch == 'arm'
3122
cef_opt_var.add_cmake_defines({'PROJECT_ARCH': 'armhf'})
3223
elif arch == 'arm64'
@@ -42,17 +33,7 @@ diff -ru8bBwd a/meson.build b/meson.build
4233
cef_opt_var.append_compile_args('cpp', '-Wno-unused-variable')
4334
cef_opt_var.add_cmake_defines({'CMAKE_BUILD_TYPE': 'Debug'})
4435
cef_proj = cmake.subproject('cef', options: cef_opt_var)
45-
cef_lib = cef_proj.dependency('libcef_dll_wrapper')
46-
47-
#
48-
# spdlog
49-
#
50-
@@ -58,32 +65,17 @@
51-
#
52-
# ssl
53-
#
54-
dep_ssl = dependency('libssl')
55-
dep_crypto = dependency('libcrypto')
36+
@@ -63,22 +70,7 @@ dep_crypto = dependency('libcrypto')
5637

5738
# thrift
5839
# thrift
@@ -76,19 +57,9 @@ diff -ru8bBwd a/meson.build b/meson.build
7657

7758
#
7859
# Build browser
79-
#
80-
shared_libs = ['cef', 'z']
81-
deps = []
82-
foreach lib_name : shared_libs
83-
deps += CXX.find_library(lib_name, dirs : [meson.project_source_root() + '/subprojects/cef/Release'])
84-
@@ -98,19 +90,19 @@
85-
'thrift-services/src-client/VdrClient.cpp', 'thrift-services/src-client/TranscoderClient.cpp',
86-
'thrift-services/src-gen/CommonService.cpp', 'thrift-services/src-gen/common_types.cpp',
87-
'thrift-services/src-gen/CefBrowser.cpp', 'thrift-services/src-gen/cefbrowser_types.cpp',
88-
'thrift-services/src-gen/VdrPluginWeb.cpp', 'thrift-services/src-gen/pluginweb_types.cpp',
89-
'thrift-services/src-gen/RemoteTranscoder.cpp', 'thrift-services/src-gen/remotetranscoder_types.cpp',
60+
@@ -108,14 +100,14 @@ exe = executable('cefbrowser', 'main.cpp', 'mainapp.cpp', 'logger.cpp',
9061
include_directories : incdir,
91-
cpp_args : ['-DPHTTPLIB_ZLIB_SUPPORT', '-DCPPHTTPLIB_OPENSSL_SUPPORT'],
62+
cpp_args : browser_compile_args,
9263
install : true,
9364
- install_dir : meson.current_build_dir() + '/Release',
9465
+ link_args: '-lrt',
@@ -106,49 +77,12 @@ diff -ru8bBwd a/meson.build b/meson.build
10677
+install_subdir('static-content/css', install_dir : 'cefbrowser')
10778
+install_subdir('static-content/database', install_dir : 'cefbrowser')
10879
+install_subdir('static-content/application', install_dir : 'cefbrowser')
109-
diff -ru8bBwd a/meson_options.txt b/meson_options.txt
110-
--- a/meson_options.txt 2025-04-16 16:25:54.000000000 +0200
111-
+++ b/meson_options.txt 2025-04-17 10:42:27.152531287 +0200
112-
@@ -1 +1,2 @@
80+
diff --git a/meson_options.txt b/meson_options.txt
81+
index 83e87ea..c543615 100644
82+
--- a/meson_options.txt
83+
+++ b/meson_options.txt
84+
@@ -1,2 +1,3 @@
11385
option('arch', type : 'combo', choices : ['x86', 'arm', 'arm64'], value : 'x86')
11486
+option('subarch', type : 'string', value : 'armv8-a')
115-
diff -ru8bBwd a/subprojects/packagefiles/mini-0.9.14/meson.build b/subprojects/packagefiles/mini-0.9.14/meson.build
116-
--- a/subprojects/packagefiles/mini-0.9.14/meson.build 2025-04-16 16:25:54.000000000 +0200
117-
+++ b/subprojects/packagefiles/mini-0.9.14/meson.build 2025-04-17 10:42:27.152531287 +0200
118-
@@ -1,15 +1,15 @@
119-
project(
120-
'mINI',
121-
'c', 'cpp',
122-
version: '0.8.5',
123-
license: 'Apache-2.0 license',
124-
default_options: ['cpp_std=c++17'],
125-
- meson_version: '>=0.63.0',
126-
+ meson_version: '>=0.57.1',
127-
)
128-
129-
inc = include_directories('src')
130-
131-
mini_dependencies = []
132-
mini_compile_args = ['-O3']
133-
134-
mini_dep = declare_dependency(
135-
diff -ru8bBwd a/subprojects/packagefiles/tiny-process-library-4bf0e59e64f18d3080a1ce4e853775de2181e993/meson.build b/subprojects/packagefiles/tiny-process-library-4bf0e59e64f18d3080a1ce4e853775de2181e993/meson.build
136-
--- a/subprojects/packagefiles/tiny-process-library-4bf0e59e64f18d3080a1ce4e853775de2181e993/meson.build 2025-04-16 16:25:54.000000000 +0200
137-
+++ b/subprojects/packagefiles/tiny-process-library-4bf0e59e64f18d3080a1ce4e853775de2181e993/meson.build 2025-04-17 10:42:27.152531287 +0200
138-
@@ -1,15 +1,15 @@
139-
project(
140-
'tiny_process_library',
141-
'cpp',
142-
version: '4bf0e59e64f18d3080a1ce4e853775de2181e993',
143-
license: 'MIT',
144-
default_options: ['cpp_std=c++17'],
145-
- meson_version: '>=0.63.0',
146-
+ meson_version: '>=0.57.1',
147-
)
148-
149-
src = files(
150-
'process.cpp',
151-
'process_unix.cpp',
152-
)
153-
154-
inc = include_directories('.')
87+
option('debug_thrift', type: 'boolean', value: false, description: 'Enable more debug logging')
88+
\ No newline at end of file

packages/vdr/vdr-depends/_remotetranscode/patches/0001-fix-build-for-VE.patch

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
diff -ru8bBwd a/meson.build b/meson.build
2-
--- a/meson.build 2025-04-17 04:38:53.000000000 +0200
3-
+++ b/meson.build 2025-04-17 10:31:43.376862151 +0200
4-
@@ -9,32 +9,17 @@
5-
cpp = meson.get_compiler('cpp')
6-
7-
#
8-
# openssl
9-
#
1+
diff --git a/meson.build b/meson.build
2+
index 9da2047..6fdbf26 100644
3+
--- a/meson.build
4+
+++ b/meson.build
5+
@@ -14,22 +14,7 @@ cpp = meson.get_compiler('cpp')
106
openssl_dep = dependency('openssl')
117

128
# thrift
@@ -30,29 +26,21 @@ diff -ru8bBwd a/meson.build b/meson.build
3026

3127
#
3228
# spdlog
33-
#
34-
spdlog_proj = subproject('spdlog')
35-
spdlog_dep = spdlog_proj.get_variable('spdlog_dep', ['tests=disabled', 'compile_library=true'] )
36-
37-
#
38-
@@ -60,25 +45,22 @@
39-
remotrans = executable('remotrans', 'main.cpp', 'logger.cpp', 'streamhandler.cpp', 'transcodeconfig.cpp',
40-
'm3u8handler.cpp', 'thrift-services/src-client/BrowserClient.cpp', 'thrift-services/src-client/VdrClient.cpp',
41-
'thrift-services/src-gen/CommonService.cpp', 'thrift-services/src-gen/common_types.cpp',
42-
'thrift-services/src-gen/CefBrowser.cpp', 'thrift-services/src-gen/cefbrowser_types.cpp',
43-
'thrift-services/src-gen/VdrPluginWeb.cpp', 'thrift-services/src-gen/pluginweb_types.cpp',
44-
'thrift-services/src-gen/RemoteTranscoder.cpp', 'thrift-services/src-gen/remotetranscoder_types.cpp',
29+
@@ -71,22 +56,19 @@ remotrans = executable('remotrans', 'main.cpp', 'logger.cpp', 'streamhandler.cpp
4530
include_directories : incdir,
31+
cpp_args : trans_compile_args,
4632
install : true,
4733
- install_dir : meson.current_build_dir() + '/Release',
4834
dependencies: [mini_dep, spdlog_dep, tiny_process_library_dep, openssl_dep, thrift_dep])
4935

5036
r_dash2ts = executable('r_dash2ts', 'r_dash2ts.cpp', 'logger.cpp',
37+
cpp_args : trans_compile_args,
5138
install : true,
5239
- install_dir : meson.current_build_dir() + '/Release',
5340
dependencies: [spdlog_dep, dash2ts_dep])
5441

5542
r_dash2tsd = executable('r_dash2ts_debug', 'r_dash2ts_debug.cpp', 'logger.cpp',
43+
cpp_args : trans_compile_args,
5644
install : true,
5745
- install_dir : meson.current_build_dir() + '/Release',
5846
dependencies: [spdlog_dep, dash2ts_dep])

0 commit comments

Comments
 (0)