Skip to content

Commit b1146d8

Browse files
committed
Helper Window using Qt QUick Application
0 parents commit b1146d8

File tree

271 files changed

+37570
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+37570
-0
lines changed

HelperWindow.pro

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
QT += quick core qml svg
2+
3+
# You can make your code fail to compile if it uses deprecated APIs.
4+
# In order to do so, uncomment the following line.
5+
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
6+
7+
CONFIG += c++1z
8+
include(framelesshelper/qmake/core.pri)
9+
include(framelesshelper/qmake/quick.pri)
10+
SOURCES += \
11+
start/main.cpp \
12+
start/src/AppInfo.cpp \
13+
start/src/Def.cpp \
14+
start/src/FluTextStyle.cpp \
15+
start/src/component/CircularReveal.cpp \
16+
start/src/component/FileWatcher.cpp \
17+
start/src/component/FpsItem.cpp \
18+
start/src/helper/SettingsHelper.cpp
19+
20+
RESOURCES += qml.qrc
21+
22+
# Additional import path used to resolve QML modules in Qt Creator's code model
23+
QML_IMPORT_PATH =
24+
25+
# Additional import path used to resolve QML modules just for Qt Quick Designer
26+
QML_DESIGNER_IMPORT_PATH =
27+
28+
# Default rules for deployment.
29+
qnx: target.path = /tmp/$${TARGET}/bin
30+
else: unix:!android: target.path = /opt/$${TARGET}/bin
31+
!isEmpty(target.path): INSTALLS += target
32+
33+
HEADERS += \
34+
start/Version.h \
35+
start/src/AppInfo.h \
36+
start/src/Def.h \
37+
start/src/FluTextStyle.h \
38+
start/src/component/CircularReveal.h \
39+
start/src/component/FileWatcher.h \
40+
start/src/component/FpsItem.h \
41+
start/src/helper/SettingsHelper.h \
42+
start/src/singleton.h \
43+
start/src/stdafx.h

HelperWindow.pro.user

Lines changed: 610 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: "CI: Build Test"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- "**.md"
9+
- "**.png"
10+
- "**.jpg"
11+
- "**.jpeg"
12+
- ".gitignore"
13+
workflow_dispatch:
14+
pull_request:
15+
16+
jobs:
17+
build:
18+
name: Build
19+
strategy:
20+
matrix:
21+
qt-version: [5.15.2, 6.5.3]
22+
library-type: [shared, static]
23+
platform: [windows-latest, ubuntu-latest, macos-latest]
24+
include:
25+
- platform: windows-latest
26+
CC: cl.exe
27+
CXX: cl.exe
28+
LD: link.exe
29+
EXTRA_FLAGS: -DFRAMELESSHELPER_ENABLE_SPECTRE=ON -DFRAMELESSHELPER_ENABLE_EHCONTGUARD=ON -DFRAMELESSHELPER_ENABLE_INTELCET=ON -DFRAMELESSHELPER_ENABLE_CFGUARD=ON
30+
- platform: ubuntu-latest
31+
CC: gcc
32+
CXX: g++
33+
LD: ld
34+
EXTRA_FLAGS: -DFRAMELESSHELPER_ENABLE_SPECTRE=ON -DFRAMELESSHELPER_ENABLE_INTELCET=ON -DFRAMELESSHELPER_ENABLE_CFGUARD=ON
35+
- platform: macos-latest
36+
CC: /usr/local/opt/llvm/bin/clang
37+
CXX: /usr/local/opt/llvm/bin/clang++
38+
LD: /usr/local/opt/llvm/bin/ld64.lld
39+
EXTRA_FLAGS: -DFRAMELESSHELPER_ENABLE_UNIVERSAL_BUILD=OFF
40+
- library-type: shared
41+
lib_type_flag: -DFRAMELESSHELPER_BUILD_STATIC=OFF
42+
- library-type: static
43+
lib_type_flag: -DFRAMELESSHELPER_BUILD_STATIC=ON
44+
45+
runs-on: ${{ matrix.platform }}
46+
47+
steps:
48+
- name: Check out repository
49+
uses: actions/checkout@v3
50+
with:
51+
submodules: recursive
52+
53+
- name: Install Qt SDK
54+
uses: jurplel/install-qt-action@v3
55+
with:
56+
version: ${{ matrix.qt-version }}
57+
cache: true
58+
59+
- name: Set up Ninja
60+
uses: seanmiddleditch/gha-setup-ninja@v3
61+
with:
62+
version: 1.11.1 # Current latest version.
63+
64+
- name: Set up MSVC environment
65+
if: ${{ matrix.platform == 'windows-latest' }}
66+
uses: ilammy/msvc-dev-cmd@v1
67+
68+
- name: Install Linux dependencies
69+
if: ${{ matrix.platform == 'ubuntu-latest' }}
70+
run: |
71+
sudo apt install -y libgl1-mesa-dev libxcb1-dev libgtk-3-dev
72+
73+
- name: Install macOS dependencies
74+
if: ${{ matrix.platform == 'macos-latest' }}
75+
run: |
76+
brew update
77+
brew upgrade
78+
brew install llvm
79+
export PATH="/usr/local/opt/llvm/bin:$PATH"
80+
81+
- name: Build library with CMake
82+
run: |
83+
mkdir ci
84+
cd ci
85+
cmake -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DCMAKE_C_COMPILER=${{ matrix.CC }} -DCMAKE_CXX_COMPILER=${{ matrix.CXX }} -DCMAKE_LINKER=${{ matrix.LD }} -DCMAKE_INSTALL_PREFIX=../../install -DCMAKE_BUILD_TYPE=Release -DFRAMELESSHELPER_BUILD_EXAMPLES=ON -DFRAMELESSHELPER_NO_SUMMARY=OFF ${{ matrix.lib_type_flag }} ${{ matrix.EXTRA_FLAGS }} -GNinja ..
86+
cmake --build . --target all --config Release --parallel
87+
cmake --install . --config Release --strip

framelesshelper/.gitignore

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# C++ objects and libs
2+
*.slo
3+
*.lo
4+
*.o
5+
*.a
6+
*.la
7+
*.lai
8+
*.so
9+
*.so.*
10+
*.dll
11+
*.dylib
12+
13+
# Qt-es
14+
object_script.*.Release
15+
object_script.*.Debug
16+
*_plugin_import.cpp
17+
/.qmake.cache
18+
/.qmake.stash
19+
*.pro.user
20+
*.pro.user.*
21+
*.qbs.user
22+
*.qbs.user.*
23+
*.moc
24+
moc_*.cpp
25+
moc_*.h
26+
qrc_*.cpp
27+
ui_*.h
28+
*.qmlc
29+
*.jsc
30+
Makefile*
31+
*build-*
32+
*.qm
33+
*.prl
34+
35+
# Qt unit tests
36+
target_wrapper.*
37+
38+
# QtCreator
39+
*.autosave
40+
41+
# QtCreator Qml
42+
*.qmlproject.user
43+
*.qmlproject.user.*
44+
45+
# QtCreator CMake
46+
CMakeLists.txt.user*
47+
48+
# QtCreator 4.8< compilation database
49+
compile_commands.json
50+
51+
# QtCreator local machine specific files for imported projects
52+
*creator.user*
53+
54+
# My
55+
[Bb]in/
56+
[Bb]in64/
57+
[Ll]ib/
58+
[Ll]ib64/
59+
[Bb]uild*/
60+
*.7z
61+
*.zip
62+
*.rar
63+
*.tar
64+
*.gz
65+
*.xz
66+
*.exe
67+
*.lib
68+
*.pdb
69+
*.ilk
70+
*.exp
71+
*.obj
72+
build.user.bat
73+
build.user.sh
74+
user.conf
75+
[Dd]oc/
76+
[Dd]ocs/
77+
Thumbs.db
78+
*.rc
79+
*.bin
80+
*.run
81+
.qmake.conf
82+
*.res
83+
.DS_Store
84+
.vscode/
85+
.vs/
86+
.cmake.conf

framelesshelper/.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "cmake"]
2+
path = cmake
3+
url = ../../wangwenx190/cmake-utils.git

0 commit comments

Comments
 (0)