-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 50e2d5a
Showing
17 changed files
with
1,670 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
BasedOnStyle: WebKit | ||
|
||
BraceWrapping: | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterExternBlock: false | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterStruct: true | ||
AfterUnion: true | ||
BeforeCatch: true | ||
BeforeElse: true | ||
IndentBraces: false | ||
|
||
# BreakBeforeConceptDeclarations: Always | ||
# IndentRequiresClause: false | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: AlwaysBreak | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlinesLeft: true | ||
AlignOperands: true | ||
AlignTrailingComments: true | ||
AllowAllArgumentsOnNextLine: true | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: Inline | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterDefinitionReturnType: false | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: true | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BreakBeforeBinaryOperators: All | ||
BreakBeforeBraces: Custom | ||
BreakBeforeConceptDeclarations: true | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializers: BeforeComma | ||
BreakConstructorInitializersBeforeComma: true | ||
BreakInheritanceList: BeforeComma | ||
ColumnLimit: 89 | ||
CommentPragmas: '^ clang-format:' | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: true | ||
DerivePointerAlignment: false | ||
IncludeBlocks: Regroup | ||
IndentCaseLabels: true | ||
IndentExternBlock: NoIndent | ||
IndentWidth: 2 | ||
IndentWrappedFunctionNames: false | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
LambdaBodyIndentation: OuterScope | ||
Language: Cpp | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
PackConstructorInitializers: Never | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
PointerAlignment: Left | ||
ReferenceAlignment: Left | ||
ReflowComments: false | ||
SortIncludes: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAroundPointerQualifiers: Default | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeParens: Never | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInContainerLiterals: true | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Latest | ||
StatementMacros: ['define_get_property', 'type_or_value_qualification', 'type_or_value_reflection', 'type_or_value_accessors', 'E_SIGNAL', 'PROPERTY', 'W_SIGNAL', 'W_PROPERTY', 'W_SLOT', 'halp__enum', 'halp__enum_combobox', 'halp_meta', 'halp_flag', 'halp_flags', 'gpp_attribute', 'gpp_compute', 'halp_lambda', 'halp_free_fun', 'halp_free_fun_t', 'halp_mem_fun', 'halp_mem_fun_t', 'E_SIGNAL', 'PROPERTY', 'W_SIGNAL', 'W_PROPERTY', 'W_SLOT'] | ||
TabWidth: 2 | ||
UseTab: Never | ||
|
||
IncludeCategories: | ||
- Regex: '<.*\.(c|cpp)>' | ||
Priority: 1000 | ||
- Regex: '^"' | ||
Priority: 10 | ||
- Regex: '^<State/' | ||
Priority: 20 | ||
- Regex: '^<Device/' | ||
Priority: 21 | ||
- Regex: '^<Process/' | ||
Priority: 22 | ||
- Regex: '^<Curve/' | ||
Priority: 23 | ||
- Regex: '^<Explorer/' | ||
Priority: 24 | ||
- Regex: '^<Scenario/' | ||
Priority: 25 | ||
- Regex: '^<(Vst|Vst3|Audio|Magnetism|Control|ControlSurface|RemoteScenario|Protocols|Media|Midi|JS|Inspector|Automation|Dataflow|Fx|Library|Mapping|Loop|Recording|PluginSettings|Gfx|Nodal|Pd|LV2|Mixer|Video|Effect|Execution|Engine|LocalTree|Crousti|Ysfx|Jsfx|Jit|Texgen|Bytebeat)' | ||
Priority: 29 | ||
- Regex: '^<score/' | ||
Priority: 30 | ||
- Regex: '^<core/' | ||
Priority: 40 | ||
- Regex: '^<ossia/detail/config' | ||
Priority: 50 | ||
- Regex: '^<ossia/' | ||
Priority: 60 | ||
- Regex: '^<ossia-qt/' | ||
Priority: 65 | ||
- Regex: '^<boost' | ||
Priority: 70 | ||
- Regex: '^<Q' | ||
Priority: 80 | ||
- Regex: '<([[:alnum:]_]+\/)+([[:alnum:]_])+.(h|hpp)>' | ||
Priority: 700 | ||
- Regex: '<([[:alnum:]_]+\/?)+.(h|hpp)>' | ||
Priority: 800 | ||
- Regex: '<[[:alnum:]_]+>' | ||
Priority: 900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
name: CMake build (dev) | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- { | ||
name: "Windows", | ||
os: windows-latest, | ||
path: "/c/ossia-sdk/llvm/bin", | ||
common_flags: "-GNinja -DCMAKE_C_COMPILER=c:/ossia-sdk/llvm/bin/clang.exe -DCMAKE_CXX_COMPILER=c:/ossia-sdk/llvm/bin/clang++.exe -DCMAKE_UNITY_BUILD=1", | ||
debug_flags: "-DCMAKE_BUILD_TYPE=Debug", | ||
release_flags: "-DCMAKE_BUILD_TYPE=Release", | ||
dependencies: "choco install -y ninja", | ||
sdk: "/c/ossia-sdk", | ||
} | ||
- { | ||
name: "Ubuntu", | ||
os: ubuntu-latest, | ||
path: "/opt/ossia-sdk/llvm/bin", | ||
common_flags: "-DCMAKE_C_COMPILER=/opt/ossia-sdk/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/ossia-sdk/llvm/bin/clang++ -DCMAKE_UNITY_BUILD=1", | ||
debug_flags: "-DCMAKE_BUILD_TYPE=Debug", | ||
release_flags: "-DCMAKE_BUILD_TYPE=Release", | ||
dependencies: "sudo apt install libgl-dev libgl1-mesa-dev libegl1-mesa-dev libdrm-dev libxcomposite-dev libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev libxcb-*-dev libX11-*-dev libz-dev libtinfo5 libxext-dev", | ||
sdk: "/opt/ossia-sdk", | ||
} | ||
- { | ||
name: "macOS", | ||
os: macos-latest, | ||
common_flags: "-DCMAKE_UNITY_BUILD=1", | ||
debug_flags: "-DCMAKE_BUILD_TYPE=Debug", | ||
release_flags: "-DCMAKE_BUILD_TYPE=Release", | ||
sdk: "/opt/ossia-sdk-x86_64", | ||
} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: "recursive" | ||
path: addon | ||
|
||
- name: Checkout score | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ossia/score | ||
submodules: "recursive" | ||
path: score | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
${{ matrix.config.dependencies }} | ||
- name: Download SDK | ||
shell: bash | ||
run: | | ||
cd score | ||
tools/fetch-sdk.sh | ||
- name: Build debug | ||
shell: bash | ||
run: | | ||
mkdir build-debug | ||
cd build-debug | ||
if [[ "${{ matrix.config.path }}" != "" ]]; then | ||
export PATH=${{ matrix.config.path }}:$PATH | ||
fi | ||
cmake ../addon \ | ||
-DCMAKE_MODULE_PATH=../score/cmake \ | ||
-DSCORE_SOURCE_DIR=../score \ | ||
-DOSSIA_SDK=${{ matrix.config.sdk }} \ | ||
${{ matrix.config.common_flags }} \ | ||
${{ matrix.config.debug_flags }} | ||
cmake --build . | ||
- name: Build release | ||
shell: bash | ||
run: | | ||
mkdir build-release | ||
cd build-release | ||
if [[ "${{ matrix.config.path }}" != "" ]]; then | ||
export PATH=${{ matrix.config.path }}:$PATH | ||
fi | ||
cmake ../addon \ | ||
-DCMAKE_MODULE_PATH=../score/cmake \ | ||
-DSCORE_SOURCE_DIR=../score \ | ||
-DOSSIA_SDK=${{ matrix.config.sdk }} \ | ||
-DCMAKE_INSTALL_PREFIX=install \ | ||
${{ matrix.config.common_flags }} \ | ||
${{ matrix.config.release_flags }} | ||
cmake --build . | ||
cmake --build . --target install | ||
- name: Upload release | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: plugin-${{ matrix.config.os }} | ||
path: | | ||
build-release/install/plugins | ||
upload: | ||
name: Combine | ||
needs: build | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v3 | ||
|
||
- name: ls | ||
shell: bash | ||
run: | | ||
pwd | ||
ls | ||
find . | ||
Oops, something went wrong.