asslayer 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- asslayer-0.1.0/.clang-format +4 -0
- asslayer-0.1.0/.github/workflows/publish.yml +102 -0
- asslayer-0.1.0/.gitignore +9 -0
- asslayer-0.1.0/LICENSE +674 -0
- asslayer-0.1.0/Makefile +23 -0
- asslayer-0.1.0/PKG-INFO +72 -0
- asslayer-0.1.0/README.md +62 -0
- asslayer-0.1.0/asslayer.pyi +37 -0
- asslayer-0.1.0/core/app/Application.cpp +591 -0
- asslayer-0.1.0/core/app/Application.hpp +129 -0
- asslayer-0.1.0/core/app/ApplicationController.cpp +184 -0
- asslayer-0.1.0/core/app/ApplicationController.hpp +95 -0
- asslayer-0.1.0/core/binding.cpp +118 -0
- asslayer-0.1.0/core/input/CursorManager.cpp +88 -0
- asslayer-0.1.0/core/input/CursorManager.hpp +32 -0
- asslayer-0.1.0/core/input/CursorTracker.cpp +98 -0
- asslayer-0.1.0/core/input/CursorTracker.hpp +11 -0
- asslayer-0.1.0/core/input/DamageGrid.cpp +80 -0
- asslayer-0.1.0/core/input/DamageGrid.hpp +32 -0
- asslayer-0.1.0/core/input/DragManager.cpp +49 -0
- asslayer-0.1.0/core/input/DragManager.hpp +24 -0
- asslayer-0.1.0/core/input/InputManager.cpp +125 -0
- asslayer-0.1.0/core/input/InputManager.hpp +67 -0
- asslayer-0.1.0/core/input/KeyboardManager.cpp +105 -0
- asslayer-0.1.0/core/input/KeyboardManager.hpp +52 -0
- asslayer-0.1.0/core/input/RegionManager.cpp +64 -0
- asslayer-0.1.0/core/input/RegionManager.hpp +17 -0
- asslayer-0.1.0/core/renderer/AssRenderer.cpp +355 -0
- asslayer-0.1.0/core/renderer/AssRenderer.hpp +76 -0
- asslayer-0.1.0/core/renderer/IRenderer.hpp +38 -0
- asslayer-0.1.0/core/renderer/RenderManager.cpp +66 -0
- asslayer-0.1.0/core/renderer/RenderManager.hpp +47 -0
- asslayer-0.1.0/core/renderer/Transition.cpp +88 -0
- asslayer-0.1.0/core/renderer/Transition.hpp +39 -0
- asslayer-0.1.0/core/renderer/VulkanContext.cpp +1415 -0
- asslayer-0.1.0/core/renderer/VulkanContext.hpp +177 -0
- asslayer-0.1.0/core/renderer/shaders/imgui.frag +20 -0
- asslayer-0.1.0/core/renderer/shaders/subtitle.frag +29 -0
- asslayer-0.1.0/core/renderer/shaders/subtitle.vert +122 -0
- asslayer-0.1.0/core/types/Common.hpp +64 -0
- asslayer-0.1.0/core/ui/UIManager.cpp +388 -0
- asslayer-0.1.0/core/ui/UIManager.hpp +83 -0
- asslayer-0.1.0/core/utils/FrameRateLimiter.cpp +58 -0
- asslayer-0.1.0/core/utils/FrameRateLimiter.hpp +24 -0
- asslayer-0.1.0/core/utils/Logger.hpp +54 -0
- asslayer-0.1.0/core/wayland/LayerShellProtocol.hpp +3 -0
- asslayer-0.1.0/core/wayland/LayerSurface.cpp +120 -0
- asslayer-0.1.0/core/wayland/LayerSurface.hpp +65 -0
- asslayer-0.1.0/core/wayland/WaylandContext.cpp +302 -0
- asslayer-0.1.0/core/wayland/WaylandContext.hpp +57 -0
- asslayer-0.1.0/meson.build +230 -0
- asslayer-0.1.0/protocol/wlr-layer-shell-unstable-v1.xml +407 -0
- asslayer-0.1.0/protocol/xdg-shell.xml +1420 -0
- asslayer-0.1.0/pyproject.toml +28 -0
- asslayer-0.1.0/scripts/fix_wayland_header.py +16 -0
- asslayer-0.1.0/scripts/test-wayland.sh +71 -0
- asslayer-0.1.0/tests/ass_render_test.cpp +323 -0
- asslayer-0.1.0/tests/test_wayland_state.py +291 -0
- asslayer-0.1.0/tests/transition_test.cpp +132 -0
- asslayer-0.1.0/tests/ui_menu_test.cpp +82 -0
- asslayer-0.1.0/vendor/imgui/LICENSE.txt +21 -0
- asslayer-0.1.0/vendor/imgui/backends/imgui_impl_vulkan.cpp +2004 -0
- asslayer-0.1.0/vendor/imgui/backends/imgui_impl_vulkan.h +279 -0
- asslayer-0.1.0/vendor/imgui/imconfig.h +150 -0
- asslayer-0.1.0/vendor/imgui/imgui.cpp +18628 -0
- asslayer-0.1.0/vendor/imgui/imgui.h +4300 -0
- asslayer-0.1.0/vendor/imgui/imgui_draw.cpp +6811 -0
- asslayer-0.1.0/vendor/imgui/imgui_internal.h +4119 -0
- asslayer-0.1.0/vendor/imgui/imgui_tables.cpp +4905 -0
- asslayer-0.1.0/vendor/imgui/imgui_widgets.cpp +11041 -0
- asslayer-0.1.0/vendor/imgui/imstb_rectpack.h +627 -0
- asslayer-0.1.0/vendor/imgui/imstb_textedit.h +1527 -0
- asslayer-0.1.0/vendor/imgui/imstb_truetype.h +5085 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
name: Build and publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: false
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build:
|
|
18
|
+
runs-on: ubuntu-24.04
|
|
19
|
+
outputs:
|
|
20
|
+
version: ${{ steps.version.outputs.version }}
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
|
|
23
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1
|
|
24
|
+
with:
|
|
25
|
+
python-version: '3.14'
|
|
26
|
+
- name: Check publishing branch
|
|
27
|
+
if: github.event_name == 'workflow_dispatch'
|
|
28
|
+
run: test "$GITHUB_REF" = refs/heads/main
|
|
29
|
+
- name: Read package version
|
|
30
|
+
id: version
|
|
31
|
+
run: |
|
|
32
|
+
python - <<'PY'
|
|
33
|
+
import os
|
|
34
|
+
import tomllib
|
|
35
|
+
from pathlib import Path
|
|
36
|
+
|
|
37
|
+
version = tomllib.loads(Path('pyproject.toml').read_text())['project']['version']
|
|
38
|
+
with open(os.environ['GITHUB_OUTPUT'], 'a') as output:
|
|
39
|
+
print(f'version={version}', file=output)
|
|
40
|
+
PY
|
|
41
|
+
- name: Install system build dependencies
|
|
42
|
+
run: |
|
|
43
|
+
sudo apt-get update
|
|
44
|
+
sudo apt-get install -y g++ pkg-config ninja-build libwayland-dev libvulkan-dev glslc libass-dev libfontconfig1-dev
|
|
45
|
+
- name: Install Python build tools
|
|
46
|
+
run: python -m pip install build twine
|
|
47
|
+
- name: Build source distribution
|
|
48
|
+
run: python -m build --sdist
|
|
49
|
+
- name: Check distribution metadata
|
|
50
|
+
run: python -m twine check --strict dist/*
|
|
51
|
+
- name: Build wheel from source distribution
|
|
52
|
+
run: python -m pip wheel --no-deps dist/*.tar.gz --wheel-dir wheelhouse
|
|
53
|
+
- name: Check installed import and type stub
|
|
54
|
+
run: |
|
|
55
|
+
python -m pip install --no-deps wheelhouse/*.whl
|
|
56
|
+
cd "$RUNNER_TEMP"
|
|
57
|
+
python - <<'PY'
|
|
58
|
+
from pathlib import Path
|
|
59
|
+
import asslayer
|
|
60
|
+
|
|
61
|
+
assert hasattr(asslayer, 'ApplicationController')
|
|
62
|
+
assert Path(asslayer.__file__).with_name('asslayer.pyi').is_file()
|
|
63
|
+
PY
|
|
64
|
+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
|
|
65
|
+
with:
|
|
66
|
+
name: distributions
|
|
67
|
+
path: dist/*.tar.gz
|
|
68
|
+
if-no-files-found: error
|
|
69
|
+
|
|
70
|
+
release:
|
|
71
|
+
if: github.event_name == 'workflow_dispatch'
|
|
72
|
+
needs: build
|
|
73
|
+
runs-on: ubuntu-24.04
|
|
74
|
+
permissions:
|
|
75
|
+
contents: write
|
|
76
|
+
steps:
|
|
77
|
+
- name: Create tag and GitHub Release
|
|
78
|
+
env:
|
|
79
|
+
GH_TOKEN: ${{ github.token }}
|
|
80
|
+
GH_REPO: ${{ github.repository }}
|
|
81
|
+
TAG: v${{ needs.build.outputs.version }}
|
|
82
|
+
run: |
|
|
83
|
+
gh api --method POST "repos/$GH_REPO/git/refs" \
|
|
84
|
+
-f "ref=refs/tags/$TAG" -f "sha=$GITHUB_SHA"
|
|
85
|
+
gh release create "$TAG" --verify-tag --title "$TAG" --generate-notes
|
|
86
|
+
|
|
87
|
+
publish:
|
|
88
|
+
if: github.event_name == 'workflow_dispatch'
|
|
89
|
+
needs: [build, release]
|
|
90
|
+
runs-on: ubuntu-24.04
|
|
91
|
+
environment:
|
|
92
|
+
name: pypi
|
|
93
|
+
url: https://pypi.org/project/asslayer/
|
|
94
|
+
permissions:
|
|
95
|
+
id-token: write
|
|
96
|
+
steps:
|
|
97
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
|
|
98
|
+
with:
|
|
99
|
+
name: distributions
|
|
100
|
+
path: dist
|
|
101
|
+
- name: Publish to PyPI
|
|
102
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086
|