Skip to content

Commit 05eedf0

Browse files
committed
add licence to main.cpp
1 parent 95b65b5 commit 05eedf0

File tree

2 files changed

+53
-38
lines changed

2 files changed

+53
-38
lines changed

README-MINGW.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
2-
install mingw-get then mingw-develp[er-tools , mingw32-base , mingw32-gcc-g++ packages
3-
add mingw and msys bin dirs to windows %PATH%
4-
install jack for windows
5-
download and extract SDL-mingw , SDL_gfx , SDL_ttf tarballs
1+
* install mingw-get then mingw-develp[er-tools , mingw32-base , mingw32-gcc-g++ packages
2+
* add mingw and msys bin dirs to windows %PATH%
3+
* install jack for windows
4+
* download and extract SDL-mingw , SDL_gfx , SDL_ttf tarballs
65
e.g. SDL-devel-1.2.15-mingw32.tar.gz
76
SDL_gfx-2.0.25.tar.gz
87
SDL_ttf-devel-2.0.11-VC.zip (pre-bult binaries)
9-
compile and install SDL, SDL_gfx, and SDL_ttf libs
10-
workaround if system dirs are borked - e.g.
11-
* /usr/include/ is /c/MinGW/msys/1.0/include
12-
* sdl headers must be in /c/MinGW/msys/1.0/include
13-
* but jack headers must be in /c/MinGW/include
14-
```bash
15-
$ cp -rf /usr/include/* /c/MinGW/include/
16-
$ rm -rf /usr/include/
17-
$ ln -s /c/MinGW/include /usr/include
18-
```
19-
copy any pre-built libs and headers to system dirs
8+
* compile and install SDL, SDL_gfx, and SDL_ttf libs
9+
* copy any pre-built libs and headers to system dirs
2010
```bash
2111
$ cp /c/Program\ Files/Jack/includes/jack /usr/include/
2212
$ cp /c/src/sdl/SDL-1.2.15/include/SDL/SDL.h /usr/include/SDL/
2313
$ cp /c/src/sdl/SDL_gfx-2.0.25/SDL_gfxPrimitives.h /usr/include/SDL/
2414
$ cp /c/src/sdl/SDL_gfx-2.0.25/SDL_rotozoom.h /usr/include/SDL/
2515
$ cp /c/src/sdl/SDL_ttf-2.0.11/include/SDL_ttf.h /usr/include/SDL/
2616
```
27-
copy static libs to system lib dir
17+
* copy static libs to system lib dir
2818
```bash
2919
$ cp /c/Program\ Files/Jack/lib/libjack.lib /usr/lib/
3020
$ cp /c/src/sdl/SDL_gfx-2.0.25/Release/SDL_gfx.lib /usr/lib/
3121
$ cp /c/src/sdl/SDL_ttf-2.0.11/lib/x86/SDL_ttf.lib /usr/lib/
3222
```
23+
24+
workaround if system dirs are borked - e.g. GitBash gets MinGW confused
25+
```bash
26+
### * /usr/include/ is /c/MinGW/msys/1.0/include
27+
### * sdl headers must be in /c/MinGW/msys/1.0/include
28+
### * but jack headers must be in /c/MinGW/include
29+
30+
$ cp -rf /usr/include/* /c/MinGW/include/
31+
$ rm -rf /usr/include/
32+
$ ln -s /c/MinGW/include /usr/include
33+
```

src/main.cpp

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
1-
/*
2-
Loopidity MVC classes:
3-
Loopidity - main controller class (== 0 instances)
4-
LoopiditySDL - main view class (== 0 instances)
5-
Scene - scene model class (== NUM_SCENES instances)
6-
SceneSDL - scene view class (== NUM_SCENES instances)
7-
Loop - loop model class (<= NUM_SCENES * N_LOOPS instances)
8-
LoopSDL - loop view class (<= NUM_SCENES * N_LOOPS instances)
9-
JackIO - JACK wrapper class (== 0 instances)
10-
Trace - debug trace class (== 0 instances)
11-
*/
12-
13-
14-
#ifdef _WIN32
15-
# include <fstream>
16-
#endif // _WIN32
1+
/*\ Loopidity - multitrack audio looper designed for live handsfree use
2+
|*| https://github.com/bill-auger/loopidity/issues/
3+
|*| Copyright 2013,2015 Bill Auger - https://bill-auger.github.io/
4+
|*|
5+
|*| This file is part of Loopidity.
6+
|*|
7+
|*| Loopidity is free software: you can redistribute it and/or modify
8+
|*| it under the terms of the GNU General Public License version 3
9+
|*| as published by the Free Software Foundation.
10+
|*|
11+
|*| Loopidity is distributed in the hope that it will be useful,
12+
|*| but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
|*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
|*| GNU General Public License for more details.
15+
|*|
16+
|*| You should have received a copy of the GNU General Public License
17+
|*| along with Loopidity. If not, see <http://www.gnu.org/licenses/>.
18+
\*/
19+
20+
/*\ Loopidity MVC classes:
21+
|*| Loopidity - main controller class (== 0 instances)
22+
|*| LoopiditySDL - main view class (== 0 instances)
23+
|*| Scene - scene model class (== NUM_SCENES instances)
24+
|*| SceneSDL - scene view class (== NUM_SCENES instances)
25+
|*| Loop - loop model class (<= N_LOOPS * NUM_SCENES instances)
26+
|*| LoopSDL - loop view class (<= N_LOOPS * NUM_SCENES instances)
27+
|*| JackIO - JACK wrapper class (== 0 instances)
28+
|*| Trace - debug trace class (== 0 instances)
29+
\*/
30+
1731

1832
#include "loopidity.h"
1933

@@ -22,11 +36,11 @@ Trace - debug trace class (== 0 instances)
2236

2337
int main(int argc , char** argv)
2438
{
25-
DEBUG_TRACE_MAIN_IN
26-
27-
int exitStatus = Loopidity::Main(argc , argv) ; Loopidity::Cleanup() ;
39+
int exitStatus = Loopidity::Main(argc , argv) ; Loopidity::Cleanup() ;
2840

29-
DEBUG_TRACE_MAIN_OUT
41+
#if DEBUG_TRACE
42+
if (exitStatus) cout << INIT_FAIL_MSG << endl ;
43+
#endif
3044

31-
return exitStatus ;
45+
return exitStatus ;
3246
}

0 commit comments

Comments
 (0)