-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.opera.Opera.ffmpeg.yaml
57 lines (55 loc) · 2.88 KB
/
com.opera.Opera.ffmpeg.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
app-id: com.opera.Opera.ffmpeg
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.chromium.Chromium.BaseApp
base-version: '22.08'
modules:
- name: opera-ffmpeg
buildsystem: simple
# buildsystem: cmake-ninja -> Error: module: opera-ffmpeg: Can't find CMakeLists.txt
build-options:
append-path: "third_party/llvm-build/Release+Asserts/bin:"
build-commands:
- mkdir -p /app/opera-ffmpeg
- #tar -xf chromium.tar.xz -C /app/opera-ffmpeg
#- tar -xf clang-llvmorg-18-init.tar.xz -C /app/opera-ffmpeg/third_party/llvm-build/Release+Asserts
# due to flathub limitations -> no download allowed (https://github.com/flatpak/flatpak-builder/issues/287#issuecomment-493287336) -> manual update as source clang-llvmorg
#- python tools/clang/scripts/update.py
#- python tools/rust/update_rust.py
- echo $(pwd)
#- export PATH="${pwd}/third_party/llvm-build/Release+Asserts/bin:$PATH"
#- echo $($PATH)
- export CC="clang"
- export CXX="clang++"
- gn gen -v --fail-on-unused-args --args="'is_component_build=false' 'is_component_ffmpeg=true' 'use_sysroot=false' 'use_qt=false' 'use_glib=false' 'ozone_platform_x11=false' 'ffmpeg_branding=\"ChromeOS\"' 'proprietary_codecs=true' 'enable_platform_hevc=true' 'enable_platform_ac3_eac3_audio=true' 'enable_platform_mpeg_h_audio=true' 'enable_platform_dolby_vision=true' 'enable_mse_mpeg2ts_stream_parser=true'" --script-executable=/usr/bin/python out/ffmpegso
- ninja -C out/ffmpegso libffmpeg.so
sources:
- type: archive
url: https://commondatastorage.googleapis.com/chromium-browser-official/chromium-120.0.6099.130.tar.xz
sha512: 512d8b1029492da6f2fa22d0bc80c7e34a9738b6d7f9b48366aab63cedb7a955c94384439ac35bbd54a18f2c516a8d78a260316a4d2524557ba6369f547e9d4e
#dest-filename: chromium.tar.xz
#dest:
only-arches: [x86_64]
x-checker-data:
type: chromium
component: chromium
is-main-source: true
- type: archive
url: https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/clang-llvmorg-18-init-9505-g10664813-1.tgz
sha256: 4385259d1f5a1c932a252cee70b5a9244f7a6de3f13aed4197056ef9151ad50c
dest: third_party/llvm-build/Release+Asserts
strip-components: 0
only-arches: [x86_64]
x-checker-data:
type: chromium
component: llvm-prebuilt
- type: archive
url: https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/rust-toolchain-2e4e2a8f288f642cafcc41fff211955ceddc453d-1-llvmorg-18-init-9505-g10664813.tar.xz
sha256: 8096a7c5c221c0e65a0f64d94f75b3a212212adbafc967fbafc0390581fb4240
dest: third_party
strip-components: 0
only-arches: [x86_64]
x-checker-data:
type: chromium
component: rust-toolchain