-
Notifications
You must be signed in to change notification settings - Fork 69
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 0eba4e5
Showing
744 changed files
with
252,523 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,84 @@ | ||
# Generated from CLion C/C++ Code Style settings | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
ColumnLimit: 100 | ||
SortIncludes: true | ||
AccessModifierOffset: -1 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: false | ||
AlignOperands: Align | ||
AllowAllArgumentsOnNextLine: false | ||
AllowAllConstructorInitializersOnNextLine: true | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: Never | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: Always | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortLoopsOnASingleLine: true | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakTemplateDeclarations: Yes | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterCaseLabel: false | ||
AfterClass: false | ||
AfterEnum: false | ||
AfterFunction: false | ||
AfterNamespace: false | ||
AfterUnion: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
SplitEmptyFunction: false | ||
SplitEmptyRecord: true | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializers: BeforeColon | ||
BreakInheritanceList: BeforeColon | ||
CompactNamespaces: false | ||
ContinuationIndentWidth: 4 | ||
IndentCaseLabels: true | ||
IndentPPDirectives: None | ||
IndentWidth: 2 | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
ObjCSpaceAfterProperty: false | ||
ObjCSpaceBeforeProtocolList: false | ||
DerivePointerAlignment: false | ||
PointerAlignment: Left | ||
ReflowComments: false | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterLogicalNot: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 2 | ||
SpacesInAngles: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInContainerLiterals: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
IncludeBlocks: Merge | ||
TabWidth: 2 | ||
UseTab: Never | ||
|
||
--- | ||
Language: ObjC | ||
BasedOnStyle: Google | ||
ColumnLimit: 100 | ||
|
||
# Only sort headers in each include block | ||
SortIncludes: true | ||
IncludeBlocks: Preserve | ||
DerivePointerAlignment: false | ||
PointerAlignment: Left | ||
AllowShortFunctionsOnASingleLine: None | ||
BraceWrapping: | ||
SplitEmptyFunction: true |
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,22 @@ | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.pag filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text | ||
*.webp filter=lfs diff=lfs merge=lfs -text | ||
*.aep filter=lfs diff=lfs merge=lfs -text | ||
*.ttf filter=lfs diff=lfs merge=lfs -text | ||
*.ttc filter=lfs diff=lfs merge=lfs -text | ||
*.otf filter=lfs diff=lfs merge=lfs -text | ||
*.mp4 filter=lfs diff=lfs merge=lfs -text | ||
*.mov filter=lfs diff=lfs merge=lfs -text | ||
*.aac filter=lfs diff=lfs merge=lfs -text | ||
*.mp3 filter=lfs diff=lfs merge=lfs -text | ||
*.m4a filter=lfs diff=lfs merge=lfs -text | ||
*.gif filter=lfs diff=lfs merge=lfs -text | ||
*.a filter=lfs diff=lfs merge=lfs -text | ||
*.dylib filter=lfs diff=lfs merge=lfs -text | ||
*.dll filter=lfs diff=lfs merge=lfs -text | ||
*.lib filter=lfs diff=lfs merge=lfs -text | ||
*.so filter=lfs diff=lfs merge=lfs -text | ||
*.lzma2 filter=lfs diff=lfs merge=lfs -text | ||
*.wasm filter=lfs diff=lfs merge=lfs -text | ||
*.bin filter=lfs diff=lfs merge=lfs -text |
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,34 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve TGFX | ||
title: '' | ||
labels: '' | ||
assignees: 'domchen' | ||
|
||
--- | ||
|
||
<!-- | ||
Please note: We currently use the Issues only to track bugs. If it is a usage question or feature | ||
request, please go to the Discussions. Please help us make TGFX better by filling everything below | ||
out with as much information as you can, so we can try to reproduce and fix the bug! | ||
--> | ||
|
||
|
||
## Which Version of TGFX are you using? | ||
|
||
1.0.0 | ||
|
||
## What Platform are you on? | ||
|
||
iOS 12, Android 10, macOS 10.15.3, Chrome 87.0 ... | ||
|
||
## Expected Behavior | ||
<!-- Screenshots encouraged --> | ||
|
||
## Actual Behavior | ||
<!-- Screenshots encouraged --> | ||
|
||
## Code Example | ||
|
||
## Related File | ||
<!-- Adding the related testing file helps us debug the bug faster! --> |
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,7 @@ | ||
--- | ||
blank_issues_enabled: false | ||
contact_links: | ||
- | ||
about: "Please use Discussions to ask usage questions or suggest new features" | ||
name: Question & Feature Request | ||
url: "https://github.com/libpag/tgfx/discussions/1" |
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,116 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: autotest | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
branches: [ main ] | ||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
autotest: | ||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# You can convert this to a matrix build if you need cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Get environment cache | ||
id: cache-environment | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
/usr/local/Cellar/ninja | ||
/usr/local/Cellar/icu4c | ||
/usr/local/bin/ninja | ||
/usr/local/Cellar/node | ||
/usr/local/bin/node | ||
/usr/local/Cellar/yasm | ||
/usr/local/bin/yasm | ||
/usr/local/bin/depsync | ||
/usr/local/lib/node_modules/depsync | ||
/usr/local/Cellar/gcovr | ||
/usr/local/bin/gcovr | ||
/usr/local/Cellar/emsdk | ||
/usr/local/Cellar/emsdk/upstream/emscripten | ||
/usr/local/Cellar/emsdk/node/14.18.2_64bit/bin | ||
/usr/local/bin/em++ | ||
/usr/local/bin/em-config | ||
/usr/local/bin/emar | ||
/usr/local/bin/embuilder | ||
/usr/local/bin/emcc | ||
/usr/local/bin/emcmake | ||
/usr/local/bin/emconfigure | ||
/usr/local/bin/emdump | ||
/usr/local/bin/emdwp | ||
/usr/local/bin/emmake | ||
/usr/local/bin/emnm | ||
/usr/local/bin/emrun | ||
/usr/local/bin/emprofile | ||
/usr/local/bin/emscons | ||
/usr/local/bin/emsize | ||
/usr/local/bin/emstrip | ||
/usr/local/bin/emsymbolizer | ||
/usr/local/bin/emcc.py | ||
/usr/local/bin/emcmake.py | ||
/usr/local/bin/emar.py | ||
key: tgfx-environment-autotest-20221018 | ||
restore-keys: | | ||
tgfx-environment-autotest-20221018 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
- name: Get thirdParty cache | ||
id: cache-thirdParty | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
third_party | ||
vendor_tools | ||
test/baseline/.cache | ||
key: third_party-autotest-01-${{ hashFiles('DEPS') }}-${{ hashFiles('vendor.json') }}-${{ hashFiles('test/baseline/version.json') }} | ||
restore-keys: third_party-autotest- | ||
- name: Run sync_deps script | ||
run: | | ||
chmod +x sync_deps.sh | ||
./sync_deps.sh | ||
shell: bash | ||
|
||
- if: github.event_name == 'push' | ||
name: Build cache(push) | ||
run: | | ||
node build_vendor -p mac | ||
if [ ! $(which gcovr) ]; then | ||
brew install gcovr | ||
fi | ||
chmod +x update_baseline.sh | ||
./update_baseline.sh 1 | ||
mkdir result | ||
cp -r test/baseline result | ||
- if: github.event_name == 'pull_request' | ||
name: Run autotest script | ||
run: | | ||
chmod +x autotest.sh | ||
./autotest.sh | ||
- name: codecov | ||
if: github.event_name == 'pull_request' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: tgfx/result/coverage.xml | ||
- name: The job has failed | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: result | ||
path: result | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: result | ||
path: result |
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,51 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: build_linux | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
branches: [ main ] | ||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
- name: Get thirdParty cache | ||
id: cache-thirdParty | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
third_party | ||
vendor_tools | ||
key: third_party-linux-${{ hashFiles('DEPS') }}-${{ hashFiles('vendor.json') }} | ||
restore-keys: third_party-linux- | ||
|
||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Run sync_deps script | ||
run: | | ||
chmod +x sync_deps.sh | ||
./sync_deps.sh | ||
- if: github.event_name == 'push' | ||
name: Build cache(push) | ||
run: | | ||
node build_vendor -p linux | ||
- if: github.event_name == 'pull_request' | ||
name: Run build_linux script | ||
run: | | ||
chmod +x build_linux.sh | ||
./build_linux.sh | ||
cd linux | ||
mkdir build | ||
cd build | ||
cmake ../ | ||
make -j8 |
Oops, something went wrong.