Skip to content

Commit fdb3b29

Browse files
committed
Premake scripts, docs, license, projects, travis
1 parent df2515d commit fdb3b29

23 files changed

+1535
-1
lines changed

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
*.suo
2+
*.sdf
3+
*.vc.db
4+
*.opendb
5+
*.opensdf
6+
*.ncb
7+
*.user
8+
*.tags
9+
*.session
10+
*.sublime-workspace
11+
*.make
12+
Makefile
13+
*.sln
14+
*.vcproj
15+
*.vcproj.*
16+
*.vcxproj
17+
*.vcxproj.*
18+
ipch
19+
.vs/
20+
Debug
21+
Intermediate
22+
Profile
23+
Release
24+
Build
25+
Bin
26+
27+
Logs
28+
Doc
29+
DataPC
30+
31+
.DS_Store
32+
thumbs.db
33+
*~

.travis.before_install.linux.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Suppress apt-get confirmation prompts and update
2+
printf "APT::Get::Assume-Yes \"true\";" | sudo tee -a /etc/apt/apt.conf
3+
sudo apt-get update
4+
5+
# Install linux prerequisites
6+
sudo DEBIAN_FRONTEND=noninteractive Dependencies/install-packages-linux.sh
7+
8+
# Update compiler
9+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

.travis.before_install.osx.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Install macos prerequisites
2+
sudo Dependencies/install-packages-macos.sh

.travis.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
language: cpp
2+
3+
#linux globals
4+
dist: trusty
5+
sudo: required
6+
addons:
7+
apt:
8+
sources:
9+
- ubuntu-toolchain-r-test
10+
packages:
11+
- gcc-5
12+
- g++-5
13+
14+
matrix:
15+
include:
16+
- os: linux
17+
compiler: gcc
18+
env:
19+
- CONFIG=debug
20+
- os: linux
21+
compiler: gcc
22+
env:
23+
- CONFIG=intermediate
24+
- os: linux
25+
compiler: gcc
26+
env:
27+
- CONFIG=profile
28+
- os: linux
29+
compiler: gcc
30+
env:
31+
- CONFIG=release
32+
- os: osx
33+
compiler: clang
34+
env:
35+
- CONFIG=debug
36+
- os: osx
37+
compiler: clang
38+
env:
39+
- CONFIG=intermediate
40+
- os: osx
41+
compiler: clang
42+
env:
43+
- CONFIG=profile
44+
- os: osx
45+
compiler: clang
46+
env:
47+
- CONFIG=release
48+
49+
git:
50+
submodules: false
51+
52+
before_install:
53+
- git submodule update --init --recursive
54+
- ./.travis.before_install.$TRAVIS_OS_NAME.sh
55+
56+
script:
57+
- cd Dependencies
58+
- ../premake.sh gmake
59+
- cd Build
60+
- make -j4 config=${CONFIG}_x64
61+
- cd ../..
62+
- ./premake.sh gmake
63+
- cd Build
64+
- make -j4 config=${CONFIG}_x64
65+
66+
notifications:
67+
slack:
68+
rooms:
69+
secure: nn6rH9yj4/eJYNkAXrMIk4oVrweT3rznA5ATtuHzFeeG5uMT0qr1c1yQqDsSKsxtPan1RFo2awJ/PZkGQmuRVTcmVuaHs0eLPVrTXgfy2yjjuqwg4aLlK7PBEnv6oxUDyJOo9K9RYMcPIqXu0vcikgo+C4Oc6qL5MiOa7RleVjI=
70+
on_start: never
71+
on_success: always
72+
on_failure: always

.vscode/tasks.json

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Premake",
8+
"type": "shell",
9+
"command": "./premake.sh",
10+
"presentation": {
11+
"reveal": "always",
12+
"panel": "new"
13+
},
14+
"args": [
15+
"gmake"
16+
],
17+
"windows": {
18+
"args": [
19+
"vs2015"
20+
],
21+
"command": ".\\premake.bat"
22+
}
23+
},
24+
{
25+
"label": "Build Debug",
26+
"type": "shell",
27+
"command": "make",
28+
"presentation": {
29+
"reveal": "always",
30+
"panel": "new"
31+
},
32+
"args": [
33+
"config=debug_x64"
34+
],
35+
"problemMatcher": {
36+
"owner": "cpp",
37+
"fileLocation": [
38+
"relative",
39+
"${workspaceRoot}"
40+
],
41+
"pattern": {
42+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
43+
"file": 1,
44+
"line": 2,
45+
"column": 3,
46+
"severity": 4,
47+
"message": 5
48+
}
49+
},
50+
"group": {
51+
"kind": "build",
52+
"isDefault": true
53+
},
54+
"windows": {
55+
"command": "make.cmd"
56+
}
57+
},
58+
{
59+
"label": "Build All",
60+
"type": "shell",
61+
"command": "make",
62+
"presentation": {
63+
"reveal": "always",
64+
"panel": "new"
65+
},
66+
"args": [
67+
"all"
68+
],
69+
"problemMatcher": {
70+
"owner": "cpp",
71+
"fileLocation": [
72+
"relative",
73+
"${workspaceRoot}"
74+
],
75+
"pattern": {
76+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
77+
"file": 1,
78+
"line": 2,
79+
"column": 3,
80+
"severity": 4,
81+
"message": 5
82+
}
83+
},
84+
"group": {
85+
"kind": "build",
86+
"isDefault": true
87+
},
88+
"windows": {
89+
"command": "make.cmd"
90+
}
91+
}
92+
]
93+
}

Core-Premake.sublime-project

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"folders":
3+
[
4+
{
5+
"file_include_patterns":
6+
[
7+
"*.bat*",
8+
"*.lua*",
9+
"*.sh*",
10+
"*.yml*"
11+
],
12+
"folder_exclude_patterns":
13+
[
14+
"*"
15+
],
16+
"follow_symlinks": true,
17+
"path": "."
18+
},
19+
{
20+
"file_include_patterns":
21+
[
22+
"*.lua*",
23+
"*.bat*",
24+
"*.sh*"
25+
],
26+
"folder_exclude_patterns":
27+
[
28+
"*"
29+
],
30+
"follow_symlinks": true,
31+
"path": "Dependencies"
32+
},
33+
{
34+
"follow_symlinks": true,
35+
"path": "Dependencies"
36+
}
37+
],
38+
"settings":
39+
{
40+
"tab_size": 4,
41+
"translate_tabs_to_spaces": false,
42+
"word_wrap": false
43+
}
44+
}

Core.code-workspace

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
]
7+
}

Core.sublime-project

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"folders":
3+
[
4+
{
5+
"path": ".",
6+
"file_include_patterns": ["*.*"],
7+
"file_exclude_patterns": ["*.make","*.vcxproj","*.sln"],
8+
"folder_exclude_patterns": ["Build","Bin"]
9+
}
10+
],
11+
"settings":
12+
{
13+
"sublimegdb_commandline": "gdb ./Bin/x64/Debug/Helium-Tools-Editor --interpreter=mi",
14+
"sublimegdb_exec_cmd": "-exec-run",
15+
"sublimegdb_workingdir": "${folder:${project_path:Bin}}",
16+
"tab_size": 4,
17+
"translate_tabs_to_spaces": false,
18+
"word_wrap": false
19+
}
20+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# install packages from apt
2+
apt-get install build-essential

Dependencies/install-packages-macos.sh

Whitespace-only changes.

0 commit comments

Comments
 (0)