Skip to content

Commit 3f95bd4

Browse files
committed
Add files via upload
1 parent 9224df7 commit 3f95bd4

File tree

320 files changed

+52266
-23
lines changed

Some content is hidden

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

320 files changed

+52266
-23
lines changed

.clang-format

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# References:
2+
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
3+
# https://code.qt.io/cgit/qt/qt5.git/tree/_clang-format
4+
5+
BasedOnStyle: LLVM
6+
7+
Standard: c++17
8+
9+
# 指针和引用的对齐方式。
10+
# 可能的值有:
11+
# PAS_Left (在配置中: Left) 指针左对齐。
12+
# PAS_Right (在配置中: Right) 指针右对齐。
13+
# PAS_Middle (在配置中: Middle) 指针中间对齐。
14+
PointerAlignment: Right
15+
16+
# public/protected/private 等访问修饰符偏移量
17+
AccessModifierOffset: -4
18+
19+
# 缩进长度
20+
IndentWidth: 4
21+
22+
# 连续空行的最大数
23+
MaxEmptyLinesToKeep: 999
24+
25+
# 在OC中的@property后面添加一个空格。例如:使用“@property (readonly)”而不是“@property(readonly)”
26+
ObjCSpaceAfterProperty: true
27+
28+
# OC块中所拍的字符数
29+
ObjCBlockIndentWidth: 4
30+
31+
# 取决于值, 语句“int f() { return 0; }”可以被放到一个单行。
32+
# 可能的值有:
33+
# SFS_None (在配置中: None) 从不合并方法或函数到单独的一行。
34+
# SFS_Empty (在配置中: Empty) 仅合并空的函数。
35+
# SFS_Inline (在配置中: Inline) 仅合并类中定义的方法或函数. 意味着 “empty”.
36+
# SFS_All (在配置中: All) 合并所有的方法适应单行.
37+
AllowShortFunctionsOnASingleLine: None
38+
39+
# 如果为真(true), 语句“if (a) return;” 能被放到单行。
40+
AllowShortIfStatementsOnASingleLine: false
41+
42+
# 如果为真(true), 对齐注释。
43+
AlignTrailingComments: true
44+
45+
# 如果为真,对齐连续的宏定义
46+
AlignConsecutiveMacros: true
47+
48+
# 如果为真(true),将会在“[”之后和“]”之前插入空格。
49+
SpacesInSquareBrackets: false
50+
51+
# 如果为真(true), 将会在“(”之后和“)”之前插入空格。
52+
SpacesInParentheses : false
53+
54+
# 如果为真(true), 校准连续的声明。
55+
# 这将会校准连续多行的声明的名字。这将会导致像下面这样的格式:
56+
# int aaaa = 12;
57+
# float b = 23;
58+
# std::string ccc = 23;
59+
AlignConsecutiveDeclarations: false
60+
61+
# 如果为真(true),连续调整多行
62+
# 这将会调整连续行中的分配操作符。这将会导致像下面这样的格式:
63+
# int aaaa = 12;
64+
# int b = 23;
65+
# int ccc = 23;
66+
AlignConsecutiveAssignments: false
67+
68+
# 如果为假(false),移除分配操作符(=)前空格。
69+
SpaceBeforeAssignmentOperators: true
70+
71+
# 如果为真(true), 将会在字面量容器中插入空格(例如 OC和Javascript的数组和字典字面量)。
72+
SpacesInContainerLiterals: false
73+
74+
# 缩进case标签
75+
IndentCaseLabels: true
76+
77+
# 如果表达式中包含函数调用,并且函数调用因为表达式太长被放到了下一行,是否缩进
78+
IndentWrappedFunctionNames: true
79+
80+
# 如果为真(true), 保持块的起始空行。
81+
# true: false:
82+
# if (foo) { vs. if (foo) {
83+
# bar();
84+
# bar(); }
85+
# }
86+
KeepEmptyLinesAtTheStartOfBlocks: true
87+
88+
# 允许所有参数都被放在下一行
89+
AllowAllParametersOfDeclarationOnNextLine: false
90+
91+
# 使用C风格强制类型转换后,是否在中间添加一个空格
92+
SpaceAfterCStyleCast: true
93+
94+
# 在模板定义后换行
95+
AlwaysBreakTemplateDeclarations: Yes
96+
97+
# Tab长度
98+
TabWidth: 4
99+
100+
# 是否使用Tab
101+
UseTab: Never
102+
103+
# 在括号后对齐参数
104+
# someLongFunction(argument1,
105+
# argument2);
106+
AlignAfterOpenBracket: Align
107+
108+
# 名字空间内部缩进
109+
NamespaceIndentation: All
110+
111+
# 一行最长列数
112+
ColumnLimit: 100
113+
114+
# 按层次缩进宏定义
115+
IndentPPDirectives: AfterHash
116+
117+
# 预处理语句缩进为 2
118+
PPIndentWidth: 2
119+
120+
# 数组元素对齐
121+
AlignArrayOfStructures: Left
122+
123+
# 不对头文件排序
124+
SortIncludes: Never
125+
126+
FixNamespaceComments: false
127+
128+
StatementMacros: ['__qas_attr__', '__qas_exclude__', '__qas_include__']
129+
130+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ]

.gitignore

+89-23
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,98 @@
1-
# Prerequisites
2-
*.d
1+
# This file is used to ignore files which are generated
2+
# ----------------------------------------------------------------------------
33

4-
# Compiled Object files
5-
*.slo
6-
*.lo
4+
*~
5+
*.log
6+
*.autosave
7+
*.a
8+
*.core
9+
*.moc
710
*.o
811
*.obj
12+
*.orig
13+
*.rej
14+
*.so
15+
*.so.*
16+
*_pch.h.cpp
17+
*_resource.rc
18+
*.qm
19+
.#*
20+
*.*#
21+
core
22+
!core/
23+
tags
24+
.DS_Store
25+
.directory
26+
*.debug
27+
Makefile*
28+
*.prl
29+
*.app
30+
moc_*.cpp
31+
ui_*.h
32+
qrc_*.cpp
33+
Thumbs.db
34+
# *.res
35+
# *.rc
36+
/.qmake.cache
37+
/.qmake.stash
938

10-
# Precompiled Headers
11-
*.gch
12-
*.pch
39+
# qtcreator generated files
40+
*.pro.user*
1341

14-
# Compiled Dynamic libraries
15-
*.so
16-
*.dylib
17-
*.dll
42+
# xemacs temporary files
43+
*.flc
1844

19-
# Fortran module files
20-
*.mod
21-
*.smod
45+
# Vim temporary files
46+
.*.swp
2247

23-
# Compiled Static libraries
24-
*.lai
25-
*.la
26-
*.a
27-
*.lib
48+
# Visual Studio generated files
49+
*.ib_pdb_index
50+
*.idb
51+
*.ilk
52+
*.pdb
53+
*.sln
54+
*.suo
55+
*.vcproj
56+
*vcproj.*.*.user
57+
*.ncb
58+
*.sdf
59+
*.opensdf
60+
*.vcxproj
61+
*vcxproj.*
62+
63+
# MinGW generated files
64+
*.Debug
65+
*.Release
2866

29-
# Executables
67+
# Python byte code
68+
__pycache__
69+
*.pyc
70+
71+
# Binaries
72+
# --------
73+
*.dll
3074
*.exe
31-
*.out
32-
*.app
75+
76+
.DS_Store
77+
*/.DS_Store
78+
79+
build-src*
80+
build/
81+
cmake-build*
82+
*.user
83+
*.lnk
84+
_workingDir*
85+
.vscode
86+
.idea
87+
.cache
88+
cache
89+
.vs
90+
out/
91+
CMakeSettings.json
92+
# /vcpkg
93+
/data
94+
/*.natvis
95+
96+
*.sublime-*
97+
setup-vcpkg.json
98+
setup-vcpkg-temp*

CMakeLists.txt

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
cmake_minimum_required(VERSION 3.17)
2+
3+
project(ExtensionSystem VERSION 0.3.6.1 LANGUAGES CXX)
4+
5+
# ----------------------------------
6+
# Build Options
7+
# ----------------------------------
8+
option(EXTENSIONSYSTEM_BUILD_STATIC "Build static libraries" OFF)
9+
option(EXTENSIONSYSTEM_INSTALL "Install library" ON)
10+
11+
option(EXTENSIONSYSTEM_ENABLE_QML "" off)
12+
option(EXTENSIONSYSTEM_NO_FILENAME_LIST "" on)
13+
14+
# ----------------------------------
15+
# CMake Settings
16+
# ----------------------------------
17+
if(MSVC)
18+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /manifest:no")
19+
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /manifest:no")
20+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /manifest:no")
21+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8")
22+
23+
if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
24+
set(CMAKE_DEBUG_POSTFIX "d")
25+
endif()
26+
elseif(MINGW)
27+
set(CMAKE_STATIC_LIBRARY_PREFIX "")
28+
set(CMAKE_SHARED_LIBRARY_PREFIX "")
29+
endif()
30+
31+
if(EXTENSIONSYSTEM_INSTALL)
32+
include(GNUInstallDirs)
33+
include(CMakePackageConfigHelpers)
34+
endif()
35+
36+
# ----------------------------------
37+
# Project Variables
38+
# ----------------------------------
39+
set(EXTENSIONSYSTEM_VERSION ${PROJECT_VERSION})
40+
set(EXTENSIONSYSTEM_INSTALL_NAME ${PROJECT_NAME})
41+
42+
# ----------------------------------
43+
# Find basic dependencies
44+
# ----------------------------------
45+
find_package(qmsetup REQUIRED)
46+
47+
qm_import(Filesystem)
48+
qm_init_directories()
49+
50+
# ----------------------------------
51+
# Add source modules
52+
# ----------------------------------
53+
add_subdirectory(src)

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# ExtensionSystem
2+
23
QtCreator plugin framework, port from QtCreator 3.6
4+
5+
## Dependencies
6+
7+
+ Qt 5.15
8+
+ [qmsetup](https://github.com/stdware/qmsetup)

0 commit comments

Comments
 (0)