Skip to content

Commit 9ae0986

Browse files
committed
Initial commit
1 parent 73d1762 commit 9ae0986

Some content is hidden

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

54 files changed

+4602
-2
lines changed

.gitattributes

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# Auto detect text files and perform LF normalization
2-
* text=auto
1+
*.html linguist-detectable=false

.gitignore

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
### Windows
2+
3+
# Windows image file caches
4+
Thumbs.db
5+
ehthumbs.db
6+
7+
# Folder config file
8+
Desktop.ini
9+
10+
# Recycle Bin used on file shares
11+
$RECYCLE.BIN/
12+
13+
# Windows Installer files
14+
*.cab
15+
*.msi
16+
*.msm
17+
*.msp
18+
19+
# Shortcuts
20+
*.lnk
21+
22+
### OSX
23+
24+
.DS_Store
25+
.AppleDouble
26+
.LSOverride
27+
28+
# Icon must end with two \r
29+
Icon
30+
31+
# Thumbnails
32+
._*
33+
34+
# Files that might appear on external disk
35+
.Spotlight-V100
36+
.Trashes
37+
38+
# Directories potentially created on remote AFP share
39+
.AppleDB
40+
.AppleDesktop
41+
Network Trash Folder
42+
Temporary Items
43+
.apdisk
44+
45+
### Visual Studio
46+
47+
# User-specific files
48+
*.suo
49+
*.user
50+
*.userosscache
51+
*.sln.docstates
52+
53+
# User-specific files (MonoDevelop/Xamarin Studio)
54+
*.userprefs
55+
56+
# Build results
57+
build
58+
59+
# Visual Studio 2015 cache/options directory
60+
.vs/
61+
62+
# MSTest test Results
63+
[Tt]est[Rr]esult*/
64+
[Bb]uild[Ll]og.*
65+
66+
*_i.c
67+
*_p.c
68+
*_i.h
69+
*.ilk
70+
*.meta
71+
*.obj
72+
*.pch
73+
*.pdb
74+
*.pgc
75+
*.pgd
76+
*.rsp
77+
*.sbr
78+
*.tlb
79+
*.tli
80+
*.tlh
81+
*.tmp
82+
*.tmp_proj
83+
*.log
84+
*.vspscc
85+
*.vssscc
86+
.builds
87+
*.pidb
88+
*.svclog
89+
*.scc
90+
91+
# Visual C++ cache files
92+
ipch/
93+
*.aps
94+
*.ncb
95+
*.opendb
96+
*.opensdf
97+
*.sdf
98+
*.cachefile
99+
100+
# Visual Studio profiler
101+
*.psess
102+
*.vsp
103+
*.vspx
104+
*.sap
105+
106+
# TFS 2012 Local Workspace
107+
$tf/
108+
109+
# Guidance Automation Toolkit
110+
*.gpState
111+
112+
# Visual Studio cache files
113+
# files ending in .cache can be ignored
114+
*.[Cc]ache
115+
# but keep track of directories ending in .cache
116+
!*.[Cc]ache/
117+
118+
# Others
119+
~$*
120+
*~
121+
*.dbmdl
122+
*.dbproj.schemaview
123+
*.pfx
124+
*.publishsettings
125+
126+
# Backup & report files from converting an old project file
127+
# to a newer Visual Studio version. Backup files are not needed,
128+
# because we have git ;-)
129+
_UpgradeReport_Files/
130+
Backup*/
131+
UpgradeLog*.XML
132+
UpgradeLog*.htm
133+
134+
# SQL Server files
135+
*.mdf
136+
*.ldf
137+
138+
### IDA
139+
*.id0
140+
*.id1
141+
*.id2
142+
*.nam
143+
*.til
144+
145+
### Custom user files
146+
# User scripts
147+
user*.bat
148+
149+
# Premake binary
150+
#premake5.exe

.gitmodules

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[submodule "deps/imgui"]
2+
path = deps/imgui
3+
url = https://github.com/fedddddd/imgui.git
4+
[submodule "deps/GSL"]
5+
path = deps/GSL
6+
url = https://github.com/Microsoft/GSL.git
7+
[submodule "deps/libtommath"]
8+
path = deps/libtommath
9+
url = https://github.com/libtom/libtommath.git
10+
[submodule "deps/libtomcrypt"]
11+
path = deps/libtomcrypt
12+
url = https://github.com/libtom/libtomcrypt.git
13+
[submodule "deps/zlib"]
14+
path = deps/zlib
15+
url = https://github.com/madler/zlib.git
16+
[submodule "deps/json"]
17+
path = deps/json
18+
url = https://github.com/nlohmann/json.git
19+
[submodule "deps/curl"]
20+
path = deps/curl
21+
url = https://github.com/curl/curl.git
22+
[submodule "imgui"]
23+
path = imgui
24+
url = https://github.com/fedddddd/imgui.git
25+
[submodule "GSL"]
26+
path = GSL
27+
url = https://github.com/Microsoft/GSL.git
28+
[submodule "libtommath"]
29+
path = libtommath
30+
url = https://github.com/libtom/libtommath.git
31+
[submodule "libtomcrypt"]
32+
path = libtomcrypt
33+
url = https://github.com/libtom/libtomcrypt.git
34+
[submodule "zlib"]
35+
path = zlib
36+
url = https://github.com/madler/zlib.git
37+
[submodule "json"]
38+
path = json
39+
url = https://github.com/nlohmann/json.git
40+
[submodule "deps/DPP"]
41+
path = deps/DPP
42+
url = https://github.com/brainboxdotcc/DPP.git
43+
[submodule "deps/openssl"]
44+
path = deps/openssl
45+
url = https://github.com/openssl/openssl.git
46+
[submodule "deps/mongoose"]
47+
path = deps/mongoose
48+
url = https://github.com/cesanta/mongoose.git

deps/GSL

Submodule GSL added at 4300304

deps/curl

Submodule curl added at 3f283e9

deps/json

Submodule json added at 6cc0eaf

deps/libtomcrypt

Submodule libtomcrypt added at b96e96c

deps/libtommath

Submodule libtommath added at 7f96509

deps/mongoose

Submodule mongoose added at d5b5cec

deps/premake/curl.lua

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
curl = {
2+
source = path.join(dependencies.basePath, "curl"),
3+
}
4+
5+
function curl.import()
6+
links { "curl" }
7+
8+
filter "toolset:msc*"
9+
links { "Crypt32.lib" }
10+
filter {}
11+
12+
curl.includes()
13+
end
14+
15+
function curl.includes()
16+
filter "toolset:msc*"
17+
includedirs {
18+
path.join(curl.source, "include"),
19+
}
20+
21+
defines {
22+
"CURL_STRICTER",
23+
"CURL_STATICLIB",
24+
"CURL_DISABLE_LDAP",
25+
}
26+
filter {}
27+
end
28+
29+
function curl.project()
30+
if not os.istarget("windows") then
31+
return
32+
end
33+
34+
project "curl"
35+
language "C"
36+
37+
curl.includes()
38+
39+
includedirs {
40+
path.join(curl.source, "lib"),
41+
}
42+
43+
files {
44+
path.join(curl.source, "lib/**.c"),
45+
path.join(curl.source, "lib/**.h"),
46+
}
47+
48+
defines {
49+
"BUILDING_LIBCURL",
50+
}
51+
52+
filter "toolset:msc*"
53+
54+
defines {
55+
"USE_SCHANNEL",
56+
"USE_WINDOWS_SSPI",
57+
"USE_THREADS_WIN32",
58+
}
59+
60+
filter "toolset:not msc*"
61+
62+
defines {
63+
"USE_GNUTLS",
64+
"USE_THREADS_POSIX",
65+
}
66+
67+
filter {}
68+
69+
warnings "Off"
70+
kind "StaticLib"
71+
end
72+
73+
table.insert(dependencies, curl)

deps/premake/gsl.lua

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
gsl = {
2+
source = path.join(dependencies.basePath, "GSL"),
3+
}
4+
5+
function gsl.import()
6+
gsl.includes()
7+
end
8+
9+
function gsl.includes()
10+
includedirs {
11+
path.join(gsl.source, "include")
12+
}
13+
end
14+
15+
function gsl.project()
16+
17+
end
18+
19+
table.insert(dependencies, gsl)

deps/premake/json.lua

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
json = {
2+
source = path.join(dependencies.basePath, "json")
3+
}
4+
5+
function json.import()
6+
json.includes()
7+
end
8+
9+
function json.includes()
10+
includedirs {path.join(json.source, "single_include/*")}
11+
end
12+
13+
function json.project()
14+
15+
end
16+
17+
table.insert(dependencies, json)

deps/premake/libtomcrypt.lua

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
libtomcrypt = {
2+
source = path.join(dependencies.basePath, "libtomcrypt"),
3+
}
4+
5+
function libtomcrypt.import()
6+
links {
7+
"libtomcrypt"
8+
}
9+
10+
libtomcrypt.includes()
11+
end
12+
13+
function libtomcrypt.includes()
14+
includedirs {
15+
path.join(libtomcrypt.source, "src/headers")
16+
}
17+
18+
defines {
19+
"LTC_NO_FAST",
20+
"LTC_NO_PROTOTYPES",
21+
"LTC_NO_RSA_BLINDING",
22+
}
23+
end
24+
25+
function libtomcrypt.project()
26+
project "libtomcrypt"
27+
language "C"
28+
29+
libtomcrypt.includes()
30+
libtommath.import()
31+
32+
files {
33+
path.join(libtomcrypt.source, "src/**.c"),
34+
}
35+
36+
removefiles {
37+
path.join(libtomcrypt.source, "src/**/*tab.c"),
38+
path.join(libtomcrypt.source, "src/encauth/ocb3/**.c"),
39+
}
40+
41+
defines {
42+
"_CRT_SECURE_NO_WARNINGS",
43+
"LTC_SOURCE",
44+
"_LIB",
45+
"USE_LTM"
46+
}
47+
48+
removedefines {
49+
"_DLL",
50+
"_USRDLL"
51+
}
52+
53+
linkoptions {
54+
"-IGNORE:4221"
55+
}
56+
57+
warnings "Off"
58+
kind "StaticLib"
59+
end
60+
61+
table.insert(dependencies, libtomcrypt)

0 commit comments

Comments
 (0)