Skip to content

Commit 17324de

Browse files
committed
git subrepo clone https://github.com/wiiu-env/libmocha deps/libmocha
subrepo: subdir: "deps/libmocha" merged: "630d9681bc" upstream: origin: "https://github.com/wiiu-env/libmocha" branch: "main" commit: "630d9681bc" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "73a0129"
1 parent 2ca2d96 commit 17324de

47 files changed

Lines changed: 3705 additions & 0 deletions

Some content is hidden

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

deps/libmocha/.clang-format

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Generated from CLion C/C++ Code Style settings
2+
BasedOnStyle: LLVM
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: Consecutive
6+
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
7+
AlignOperands: Align
8+
AllowAllArgumentsOnNextLine: false
9+
AllowAllConstructorInitializersOnNextLine: false
10+
AllowAllParametersOfDeclarationOnNextLine: false
11+
AllowShortBlocksOnASingleLine: Always
12+
AllowShortCaseLabelsOnASingleLine: false
13+
AllowShortFunctionsOnASingleLine: All
14+
AllowShortIfStatementsOnASingleLine: Always
15+
AllowShortLambdasOnASingleLine: All
16+
AllowShortLoopsOnASingleLine: true
17+
AlwaysBreakAfterReturnType: None
18+
AlwaysBreakTemplateDeclarations: Yes
19+
BreakBeforeBraces: Custom
20+
BraceWrapping:
21+
AfterCaseLabel: false
22+
AfterClass: false
23+
AfterControlStatement: Never
24+
AfterEnum: false
25+
AfterFunction: false
26+
AfterNamespace: false
27+
AfterUnion: false
28+
BeforeCatch: false
29+
BeforeElse: false
30+
IndentBraces: false
31+
SplitEmptyFunction: false
32+
SplitEmptyRecord: true
33+
BreakBeforeBinaryOperators: None
34+
BreakBeforeTernaryOperators: true
35+
BreakConstructorInitializers: BeforeColon
36+
BreakInheritanceList: BeforeColon
37+
ColumnLimit: 0
38+
CompactNamespaces: false
39+
ContinuationIndentWidth: 8
40+
IndentCaseLabels: true
41+
IndentPPDirectives: None
42+
IndentWidth: 4
43+
KeepEmptyLinesAtTheStartOfBlocks: true
44+
MaxEmptyLinesToKeep: 2
45+
NamespaceIndentation: All
46+
ObjCSpaceAfterProperty: false
47+
ObjCSpaceBeforeProtocolList: true
48+
PointerAlignment: Right
49+
ReflowComments: false
50+
SpaceAfterCStyleCast: true
51+
SpaceAfterLogicalNot: false
52+
SpaceAfterTemplateKeyword: false
53+
SpaceBeforeAssignmentOperators: true
54+
SpaceBeforeCpp11BracedList: false
55+
SpaceBeforeCtorInitializerColon: true
56+
SpaceBeforeInheritanceColon: true
57+
SpaceBeforeParens: ControlStatements
58+
SpaceBeforeRangeBasedForLoopColon: true
59+
SpaceInEmptyParentheses: false
60+
SpacesBeforeTrailingComments: 1
61+
SpacesInAngles: false
62+
SpacesInCStyleCastParentheses: false
63+
SpacesInContainerLiterals: false
64+
SpacesInParentheses: false
65+
SpacesInSquareBrackets: false
66+
TabWidth: 4
67+
UseTab: Never
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI-PR
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
clang-format:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: clang-format
11+
run: |
12+
docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./source ./include
13+
build-lib:
14+
runs-on: ubuntu-latest
15+
needs: clang-format
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: build lib
19+
run: |
20+
docker build . -f Dockerfile.buildlocal -t builder
21+
docker run --rm -v ${PWD}:/project builder make
22+
- uses: actions/upload-artifact@master
23+
with:
24+
name: lib
25+
path: "lib/*.a"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish Docker Image
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: ${{ github.repository }}
10+
11+
jobs:
12+
build-and-push-image:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v3
21+
- name: Extract Docker metadata
22+
id: meta
23+
uses: docker/metadata-action@v4
24+
with:
25+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
26+
tags: |
27+
type=raw,value={{date 'YYYYMMDD'}}-{{sha}}
28+
type=raw,value={{date 'YYYYMMDD'}}
29+
type=raw,value=latest
30+
- name: Log into registry ${{ env.REGISTRY }}
31+
uses: docker/[email protected]
32+
with:
33+
registry: ${{ env.REGISTRY }}
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.CI_PAT_WRITE_PACKAGE }}
36+
37+
- name: Build and push Docker image
38+
uses: docker/build-push-action@v4
39+
with:
40+
context: .
41+
tags: ${{ steps.meta.outputs.tags }}
42+
labels: ${{ steps.meta.outputs.labels }}
43+
push: true

deps/libmocha/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*.a
2+
/build
3+
*.bz2
4+
release/
5+
lib/
6+
CMakeLists.txt
7+
.idea/
8+
cmake-build-debug/
9+
share/

deps/libmocha/.gitrepo

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; DO NOT EDIT (unless you know what you are doing)
2+
;
3+
; This subdirectory is a git "subrepo", and this file is maintained by the
4+
; git-subrepo command. See https://github.com/ingydotnet/git-subrepo#readme
5+
;
6+
[subrepo]
7+
remote = https://github.com/wiiu-env/libmocha
8+
branch = main
9+
commit = 630d9681bc0f29cc03a373cad94b76f17cfae763
10+
parent = 2ca2d96f462272e2e7c1ded77ac884b9cdad010c
11+
method = merge
12+
cmdver = 0.4.6

deps/libmocha/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ghcr.io/wiiu-env/devkitppc:20230621
2+
3+
WORKDIR tmp_build
4+
COPY . .
5+
RUN make clean && make && mkdir -p /artifacts/wut/usr && cp -r lib /artifacts/wut/usr && cp -r include /artifacts/wut/usr
6+
WORKDIR /artifacts
7+
8+
FROM scratch
9+
COPY --from=0 /artifacts /artifacts
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM ghcr.io/wiiu-env/devkitppc:20230621
2+
3+
WORKDIR project

deps/libmocha/LICENSE

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
GNU LESSER GENERAL PUBLIC LICENSE
2+
Version 3, 29 June 2007
3+
4+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5+
6+
Everyone is permitted to copy and distribute verbatim copies of this license
7+
document, but changing it is not allowed.
8+
9+
This version of the GNU Lesser General Public License incorporates the terms
10+
and conditions of version 3 of the GNU General Public License, supplemented
11+
by the additional permissions listed below.
12+
13+
0. Additional Definitions.
14+
15+
As used herein, “this License” refers to version 3 of the GNU Lesser General
16+
Public License, and the “GNU GPL” refers to version 3 of the
17+
GNU General Public License.
18+
19+
“The Library” refers to a covered work governed by this License, other than
20+
an Application or a Combined Work as defined below.
21+
22+
An “Application” is any work that makes use of an interface provided by the
23+
Library, but which is not otherwise based on the Library. Defining a subclass
24+
of a class defined by the Library is deemed a mode of using an interface
25+
provided by the Library.
26+
27+
A “Combined Work” is a work produced by combining or linking an Application
28+
with the Library. The particular version of the Library with which the
29+
Combined Work was made is also called the “Linked Version”.
30+
31+
The “Minimal Corresponding Source” for a Combined Work means the Corresponding
32+
Source for the Combined Work, excluding any source code for portions of the
33+
Combined Work that, considered in isolation, are based on the Application,
34+
and not on the Linked Version.
35+
36+
The “Corresponding Application Code” for a Combined Work means the object code
37+
and/or source code for the Application, including any data and utility programs
38+
needed for reproducing the Combined Work from the Application, but excluding
39+
the System Libraries of the Combined Work.
40+
41+
1. Exception to Section 3 of the GNU GPL.
42+
43+
You may convey a covered work under sections 3 and 4 of this License without
44+
being bound by section 3 of the GNU GPL.
45+
46+
2. Conveying Modified Versions.
47+
48+
If you modify a copy of the Library, and, in your modifications, a facility
49+
refers to a function or data to be supplied by an Application that uses the
50+
facility (other than as an argument passed when the facility is invoked),
51+
then you may convey a copy of the modified version:
52+
53+
a) under this License, provided that you make a good faith effort to
54+
ensure that, in the event an Application does not supply the function or
55+
data, the facility still operates, and performs whatever part of its
56+
purpose remains meaningful, or
57+
58+
b) under the GNU GPL, with none of the additional permissions of this
59+
License applicable to that copy.
60+
61+
3. Object Code Incorporating Material from Library Header Files.
62+
63+
The object code form of an Application may incorporate material from a header
64+
file that is part of the Library. You may convey such object code under terms
65+
of your choice, provided that, if the incorporated material is not limited to
66+
numerical parameters, data structure layouts and accessors, or small macros,
67+
inline functions and templates (ten or fewer lines in length),
68+
you do both of the following:
69+
70+
a) Give prominent notice with each copy of the object code that the Library
71+
is used in it and that the Library and its use are covered by this License.
72+
73+
b) Accompany the object code with a copy of the GNU GPL
74+
and this license document.
75+
76+
4. Combined Works.
77+
78+
You may convey a Combined Work under terms of your choice that, taken together,
79+
effectively do not restrict modification of the portions of the Library
80+
contained in the Combined Work and reverse engineering for debugging such
81+
modifications, if you also do each of the following:
82+
83+
a) Give prominent notice with each copy of the Combined Work that the
84+
Library is used in it and that the Library and its use are covered
85+
by this License.
86+
87+
b) Accompany the Combined Work with a copy of the GNU GPL and
88+
this license document.
89+
90+
c) For a Combined Work that displays copyright notices during execution,
91+
include the copyright notice for the Library among these notices, as well
92+
as a reference directing the user to the copies of the GNU GPL
93+
and this license document.
94+
95+
d) Do one of the following:
96+
97+
0) Convey the Minimal Corresponding Source under the terms of this
98+
License, and the Corresponding Application Code in a form suitable
99+
for, and under terms that permit, the user to recombine or relink
100+
the Application with a modified version of the Linked Version to
101+
produce a modified Combined Work, in the manner specified by section 6
102+
of the GNU GPL for conveying Corresponding Source.
103+
104+
1) Use a suitable shared library mechanism for linking with the
105+
Library. A suitable mechanism is one that (a) uses at run time a
106+
copy of the Library already present on the user's computer system,
107+
and (b) will operate properly with a modified version of the Library
108+
that is interface-compatible with the Linked Version.
109+
110+
e) Provide Installation Information, but only if you would otherwise be
111+
required to provide such information under section 6 of the GNU GPL, and
112+
only to the extent that such information is necessary to install and
113+
execute a modified version of the Combined Work produced by recombining
114+
or relinking the Application with a modified version of the Linked Version.
115+
(If you use option 4d0, the Installation Information must accompany the
116+
Minimal Corresponding Source and Corresponding Application Code. If you
117+
use option 4d1, you must provide the Installation Information in the
118+
manner specified by section 6 of the GNU GPL for
119+
conveying Corresponding Source.)
120+
121+
5. Combined Libraries.
122+
123+
You may place library facilities that are a work based on the Library side by
124+
side in a single library together with other library facilities that are not
125+
Applications and are not covered by this License, and convey such a combined
126+
library under terms of your choice, if you do both of the following:
127+
128+
a) Accompany the combined library with a copy of the same work based on
129+
the Library, uncombined with any other library facilities, conveyed under
130+
the terms of this License.
131+
132+
b) Give prominent notice with the combined library that part of it is a
133+
work based on the Library, and explaining where to find the accompanying
134+
uncombined form of the same work.
135+
136+
6. Revised Versions of the GNU Lesser General Public License.
137+
138+
The Free Software Foundation may publish revised and/or new versions of the
139+
GNU Lesser General Public License from time to time. Such new versions will
140+
be similar in spirit to the present version, but may differ in detail to
141+
address new problems or concerns.
142+
143+
Each version is given a distinguishing version number. If the Library as you
144+
received it specifies that a certain numbered version of the GNU Lesser
145+
General Public License “or any later version” applies to it, you have the
146+
option of following the terms and conditions either of that published version
147+
or of any later version published by the Free Software Foundation. If the
148+
Library as you received it does not specify a version number of the GNU Lesser
149+
General Public License, you may choose any version of the GNU Lesser General
150+
Public License ever published by the Free Software Foundation.
151+
152+
If the Library as you received it specifies that a proxy can decide whether
153+
future versions of the GNU Lesser General Public License shall apply, that
154+
proxy's public statement of acceptance of any version is permanent
155+
authorization for you to choose that version for the Library.

0 commit comments

Comments
 (0)