Skip to content

Commit 4908695

Browse files
committed
Modify for HyperHDR
1 parent cb96b57 commit 4908695

21 files changed

+5445
-5223
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"lib/**",
2020
"node_modules/**",
2121
"dist/**",
22-
"hyperion.ng/**",
22+
"hyperhdr/**",
23+
"hyperhdr-repo/**",
2324
"service/**",
2425
"tools/**"
2526
],

.github/workflows/build.yml

Lines changed: 38 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -9,49 +9,45 @@ env:
99
TOOLCHAIN_DIR: /opt/arm-webos-linux-gnueabi_sdk-buildroot
1010
TOOLCHAIN_ENV_FILE: /opt/arm-webos-linux-gnueabi_sdk-buildroot/environment-setup
1111
TOOLCHAIN_FILE: /opt/arm-webos-linux-gnueabi_sdk-buildroot/share/buildroot/toolchainfile.cmake
12-
BUILD_DIR_NATIVE: build-x86x64
13-
BUILD_DIR_CROSS: build-cross
12+
BUILD_DIR: build
1413

15-
CCACHE_DIR_NATIVE: .ccache-build-x86x64
16-
CCACHE_DIR_CROSS: .ccache-build-cross
14+
CCACHE_CACHE_DIR: .ccache-build
1715
CCACHE_COMPRESS: true
1816
CCACHE_COMPRESSLEVEL: 6
1917
CCACHE_MAXSIZE: 600M
2018

2119
jobs:
22-
build_hyperion_ng:
20+
build_hyperhdr:
2321
runs-on: ubuntu-latest
2422
defaults:
2523
run:
26-
working-directory: ./hyperion.ng
24+
working-directory: ./hyperhdr-repo
2725

2826
steps:
2927
- uses: actions/checkout@v3
3028
with:
31-
repository: hyperion-project/hyperion.ng
29+
repository: awawa-dev/HyperHDR
3230
ref: master
33-
path: hyperion.ng
31+
path: hyperhdr-repo
3432
submodules: recursive
3533
fetch-depth: 0
3634

3735
- name: Patch sources (force link w/ librt)
38-
run: sed -i -e 's/hidapi-libusb)$/rt hidapi-libusb)/g w /dev/stdout' libsrc/leddevice/CMakeLists.txt
36+
run: sed -i -e 's/ssdp$/rt ssdp/g w /dev/stdout' sources/leddevice/CMakeLists.txt
3937

4038
- name: Restore/Cache build directories
4139
uses: actions/cache@v3
4240
with:
4341
path: |
44-
${{ github.workspace }}/${{ env.CCACHE_DIR_NATIVE }}
45-
${{ github.workspace }}/${{ env.CCACHE_DIR_CROSS }}
42+
${{ github.workspace }}/${{ env.CCACHE_CACHE_DIR }}
4643
4744
key: ccache-${{ runner.os }}-${{github.run_id}}
4845
restore-keys: |
4946
ccache-${{ runner.os }}
5047
5148
- name: Create build directories
5249
run: |
53-
mkdir -p ./${{ env.BUILD_DIR_NATIVE }}
54-
mkdir -p ./${{ env.BUILD_DIR_CROSS }}
50+
mkdir -p ./${{ env.BUILD_DIR }}
5551
5652
- name: Download and unpack toolchain
5753
working-directory: /opt
@@ -67,78 +63,38 @@ jobs:
6763
6864
- name: Install native dependencies
6965
env:
70-
apt_deps: ccache git cmake build-essential qtbase5-dev libqt5serialport5-dev libqt5sql5-sqlite libqt5svg5-dev libqt5x11extras5-dev python3-dev libxcb-image0-dev libxcb-util0-dev libxcb-shm0-dev libxcb-render0-dev libxcb-randr0-dev libxrandr-dev libxrender-dev libturbojpeg0-dev libssl-dev libmbedtls-dev
66+
apt_deps: ccache git cmake build-essential flatbuffers-compiler
7167
run: |
7268
sudo apt update
7369
sudo apt install -y ${{ env.apt_deps }}
7470
75-
- name: Build native
71+
- name: Build (webos arm)
7672
env:
77-
CCACHE_DIR: ${{ github.workspace }}/${{ env.CCACHE_DIR_NATIVE }}
73+
CCACHE_DIR: ${{ github.workspace }}/${{ env.CCACHE_CACHE_DIR }}
7874
run: |
79-
pushd ./${{ env.BUILD_DIR_NATIVE }}
75+
pushd ./${{ env.BUILD_DIR }}
8076
cmake .. \
8177
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
8278
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
79+
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
8380
-DCMAKE_BUILD_TYPE=Release \
84-
-DENABLE_FLATBUF_SERVER=OFF \
85-
-DENABLE_DISPMANX=OFF \
86-
-DENABLE_FB=OFF \
81+
-DPLATFORM=linux \
82+
-DENABLE_SPIDEV=OFF \
8783
-DENABLE_V4L2=OFF \
8884
-DENABLE_X11=OFF \
89-
-DENABLE_XCB=OFF \
90-
-DENABLE_BOBLIGHT_SERVER=OFF \
85+
-DENABLE_PIPEWIRE=OFF \
86+
-DENABLE_WS281PWM=OFF \
87+
-DENABLE_AVAHI=OFF \
88+
-DENABLE_SOUNDCAPLINUX=OFF \
9189
-DENABLE_CEC=OFF \
92-
-DENABLE_DEV_NETWORK=OFF \
93-
-DENABLE_DEV_SERIAL=OFF \
94-
-DENABLE_DEV_TINKERFORGE=OFF \
95-
-DENABLE_DEV_USB_HID=OFF \
96-
-DENABLE_EFFECTENGINE=OFF \
97-
-DENABLE_REMOTE_CTL=OFF \
98-
-DENABLE_QT=OFF \
99-
-DENABLE_FORWARDER=OFF \
100-
-DENABLE_DEV_SPI=OFF \
101-
-DENABLE_MDNS=OFF \
102-
-DENABLE_FLATBUF_CONNECT=ON \
103-
-DENABLE_PROTOBUF_SERVER=OFF \
104-
-Wno-dev
105-
make
106-
popd
107-
108-
- name: Build cross (webos arm)
109-
env:
110-
CCACHE_DIR: ${{ github.workspace }}/${{ env.CCACHE_DIR_CROSS }}
111-
run: |
112-
pushd ./${{ env.BUILD_DIR_CROSS }}
113-
cmake .. \
114-
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
115-
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
116-
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
117-
-DCMAKE_BUILD_TYPE=Release \
118-
-DPLATFORM=rpi \
119-
-DHYPERION_LIGHT=ON \
120-
-DENABLE_QT=OFF \
121-
-DENABLE_EFFECTENGINE=OFF \
122-
-DENABLE_JSONCHECKS=OFF \
123-
-DENABLE_DEV_SERIAL=ON \
124-
-DENABLE_DEV_USB_HID=ON \
125-
-DENABLE_DEV_WS281XPWM=OFF \
126-
-DENABLE_DEV_TINKERFORGE=ON \
127-
-DENABLE_MDNS=OFF \
128-
-DENABLE_DEPLOY_DEPENDENCIES=OFF \
129-
-DENABLE_BOBLIGHT_SERVER=ON \
130-
-DENABLE_FLATBUF_SERVER=ON \
131-
-DENABLE_PROTOBUF_SERVER=OFF \
132-
-DENABLE_FORWARDER=ON \
133-
-DENABLE_FLATBUF_CONNECT=ON \
134-
-DIMPORT_FLATC=${GITHUB_WORKSPACE}/hyperion.ng/${BUILD_DIR_NATIVE}/flatc_export.cmake
90+
-DENABLE_PROTOBUF=OFF
13591
make
13692
popd
13793
13894
- name: Copy built binaries to release/
13995
run: |
14096
mkdir ./release
141-
cp -r ./${{ env.BUILD_DIR_CROSS }}/bin/* ./release/
97+
cp -r ./${{ env.BUILD_DIR }}/bin/* ./release/
14298
find ./release
14399
144100
- name: Copy dependencies to release/
@@ -156,13 +112,13 @@ jobs:
156112
- name: Upload artifacts
157113
uses: actions/upload-artifact@v3
158114
with:
159-
name: hyperion.ng-build
160-
path: ${{ github.workspace }}/hyperion.ng/release/*
115+
name: hyperhdr-build
116+
path: ${{ github.workspace }}/hyperhdr-repo/release/*
161117
if-no-files-found: error
162118

163119
build_ipk:
164120
runs-on: ubuntu-latest
165-
needs: build_hyperion_ng
121+
needs: build_hyperhdr
166122

167123
steps:
168124
- uses: actions/checkout@v1
@@ -171,8 +127,8 @@ jobs:
171127

172128
- uses: actions/download-artifact@v3
173129
with:
174-
name: hyperion.ng-build
175-
path: hyperion.ng-build
130+
name: hyperhdr-build
131+
path: hyperhdr-build
176132

177133
- name: Display structure of downloaded files
178134
run: ls -R
@@ -222,31 +178,31 @@ jobs:
222178
popd
223179
cp -r ./service/build/dist/* ./dist/service/
224180
225-
- name: Copy hyperion.ng into dist/service/hyperion
181+
- name: Copy hyperhdr into dist/service/hyperhdr
226182
run: |
227183
ls -R
228-
mkdir -p ./dist/service/hyperion
229-
cp -r ./hyperion.ng-build/* ./dist/service/hyperion/
184+
mkdir -p ./dist/service/hyperhdr
185+
cp -r ./hyperhdr-build/* ./dist/service/hyperhdr/
230186
ls -R
231187
232188
- name: Ensure executables +x
233189
run: |
234190
chmod +x ./dist/service/autostart.sh
235191
chmod +x ./dist/service/loader_service
236-
chmod +x ./dist/service/start_hyperiond
192+
chmod +x ./dist/service/start_hyperhdr
237193
238-
chmod +x ./dist/service/hyperion/hyperiond
239-
chmod +x ./dist/service/hyperion/hyperion-remote
240-
chmod +x ./dist/service/hyperion/flatc
241-
chmod +x ./dist/service/hyperion/flathash
194+
chmod +x ./dist/service/hyperhdr/hyperhdr
195+
chmod +x ./dist/service/hyperhdr/hyperhdr-remote
196+
chmod +x ./dist/service/hyperhdr/flatc
197+
chmod +x ./dist/service/hyperhdr/flathash
242198
243199
- run: npm run package
244200
- run: npm run gen-manifest
245201

246202
- name: Upload artifact
247203
uses: actions/upload-artifact@v3
248204
with:
249-
name: hyperion.ng-ipk
205+
name: hyperhdr-ipk
250206
path: |
251207
${{github.workspace}}/*.ipk
252208
@@ -259,7 +215,7 @@ jobs:
259215
title: "Development Build"
260216
files: |
261217
${{github.workspace}}/*.ipk
262-
${{github.workspace}}/org.webosbrew.hyperion.ng.loader.manifest.json
218+
${{github.workspace}}/org.webosbrew.hyperhdr.loader.manifest.json
263219
264220
- uses: marvinpinto/action-automatic-releases@latest
265221
if: "startsWith(github.ref, 'refs/tags/v')"
@@ -269,4 +225,4 @@ jobs:
269225
title: ${{ github.ref_name }}
270226
files: |
271227
${{github.workspace}}/*.ipk
272-
${{github.workspace}}/org.webosbrew.hyperion.ng.loader.manifest.json
228+
${{github.workspace}}/org.webosbrew.hyperhdr.loader.manifest.json

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ build/
22
node_modules/
33
dist/
44
.enyocache
5-
hyperion/
6-
hyperion.ng/
5+
hyperhdr-repo/
6+
hyperhdr/
77
**/*.ipk

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Hyperion.NG for WebOS
1+
# HyperHDR for WebOS
22

3-
Binaries are ready to install from [Homebrew Channel](https://repo.webosbrew.org/apps/org.webosbrew.hyperion.ng.loader)
3+
Binaries are ready to install from [Homebrew Channel](https://repo.webosbrew.org/apps/org.webosbrew.hyperhdr.loader)
44

55
## Requirements
66

@@ -12,22 +12,24 @@ Binaries are ready to install from [Homebrew Channel](https://repo.webosbrew.org
1212

1313
## Build
1414

15-
Build hyperion.ng: `./build_hyperion_ng.sh`
15+
Build hyperhdr: `./build_hyperhdr.sh`
1616

1717
Build webOS frontend/service: `./build.sh`
1818

1919
Both scripts take an environment variable `TOOLCHAIN_DIR`, defaulting to: `$HOME/arm-webos-linux-gnueabi_sdk-buildroot`
2020

2121
To provide an individual path, call `export TOOLCHAIN_DIR=/your/toolchain/path` before executing respective scripts.
2222

23-
`build_hyperion_ng.sh` also takes two other environment variables:
23+
`build_hyperhdr.sh` also takes two other environment variables:
2424

25-
- `HYPERION_NG_REPO`
26-
- `HYPERION_NG_BRANCH`
25+
- `HYPERHDR_REPO`
26+
- `HYPERHDR_BRANCH`
2727

2828
## References
2929

30-
Ambient lighting service/daemon: [Hyperion.NG](https://github.com/hyperion-project/hyperion.ng)
30+
[Hyperion.NG](https://github.com/hyperion-project/hyperion.ng)
31+
32+
[HyperHDR](https://github.com/awawa-dev/HyperHDR)
3133

3234
Video grabber of webOS: [hyperion-webos](https://github.com/webosbrew/hyperion-webos)
3335

@@ -41,4 +43,5 @@ Frontend of Video grabber hyperion-webos: [piccap](https://github.com/TBSniller/
4143
@Mariotaku
4244
@Lord-Grey
4345
@Paulchen-Panther
46+
@Awawa
4447
@chbartsch

appinfo.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"id": "org.webosbrew.hyperion.ng.loader",
3-
"version": "0.1.3",
2+
"id": "org.webosbrew.hyperhdr.loader",
3+
"version": "0.1.0",
44
"vendor": "webosbrew.org",
5-
"title": "Hyperion.NG",
5+
"title": "HyperHDR",
66
"icon": "assets/logo_small.png",
77
"largeIcon": "assets/logo_big.png",
88
"splashBackground": "assets/splash_1080p.png",
@@ -11,5 +11,5 @@
1111
"iconColor": "black",
1212
"type": "web",
1313
"supportGIP": true,
14-
"appDescription": "Hyperion.NG for WebOS"
14+
"appDescription": "HyperHDR for WebOS"
1515
}

assets/logo_big.png

-5.77 KB
Loading

assets/logo_small.png

-7.78 KB
Loading

assets/splash_1080p.png

11.9 KB
Loading

build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ npm run build || exit 1
2121
echo ":: Service ::"
2222
npm run build-service || exit 1
2323

24-
echo ":: Hyperion.NG ::"
25-
mkdir -p ${EXEC_DIR}/dist/service/hyperion
26-
cp -r ${EXEC_DIR}/hyperion/* ${EXEC_DIR}/dist/service/hyperion/ || exit 1
24+
echo ":: HyperHDR ::"
25+
mkdir -p ${EXEC_DIR}/dist/service/hyperhdr
26+
cp -r ${EXEC_DIR}/hyperhdr/* ${EXEC_DIR}/dist/service/hyperhdr/ || exit 1
2727

2828
echo ":: Ensure executable bit set ::"
29-
for file in autostart.sh loader_service start_hyperiond
29+
for file in autostart.sh loader_service start_hyperhdr
3030
do
3131
FILE="${EXEC_DIR}/dist/service/${file}"
3232
echo "=> ${FILE}"
3333
chmod +x ${FILE}
3434
done
3535

36-
for file in hyperiond hyperion-remote flatc flathash
36+
for file in hyperhdr hyperhdr-remote flatc flathash
3737
do
38-
FILE="${EXEC_DIR}/dist/service/hyperion/${file}"
38+
FILE="${EXEC_DIR}/dist/service/hyperhdr/${file}"
3939
echo "=> ${FILE}"
4040
chmod +x ${FILE}
4141
done

0 commit comments

Comments
 (0)