Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mel-florance committed Apr 14, 2021
1 parent 127573d commit 2bc1c84
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You can access the documentation directly on the wiki page:\
###### Ubuntu build

```console
sudo apt install libmysqlclient-dev libmysqlconn-dev openssl
sudo apt install libmysqlclient-dev libmysqlcppconn-dev openssl
git clone https://github.com/Vyraax/Linguini.git
cd Linguini
./setup.sh
Expand Down
36 changes: 24 additions & 12 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ project "Server"
staticruntime "On"
systemversion "latest"

postbuildcommands {
"{COPY} ./project ../Binaries/Release-windows-x86_64/Server/project",
"{COPY} ./project ../Binaries/Debug-windows-x86_64/Server/project",
"{COPY} ./vendors/mysql/lib/libmysql.dll ../Binaries/Debug-windows-x86_64/Server",
"{COPY} ./vendors/mysql/lib/libmysql.dll ../Binaries/Release-windows-x86_64/Server"
}

defines {
"PLATFORM_WINDOWS",
"_CRT_SECURE_NO_WARNINGS",
Expand All @@ -70,11 +63,6 @@ project "Server"
staticruntime "On"
systemversion "latest"

postbuildcommands {
"{COPY} ./project ../Binaries/Debug-linux-x86_64/Server/project",
"{COPY} ./project ../Binaries/Release-linux-x86_64/Server/project",
}

defines {
"PLATFORM_LINUX",
"_CRT_SECURE_NO_WARNINGS",
Expand All @@ -94,8 +82,32 @@ project "Server"
filter "configurations:Debug"
defines "DEBUG"
symbols "On"

if os.host() == "linux" then
postbuildcommands {
"{COPY} ./project ../Binaries/Debug-linux-x86_64/Server/project",
}
end

if os.host() == "windows" then
postbuildcommands {
"{COPY} ./project ../Binaries/Debug-windows-x86_64/Server/project",
}
end

filter "configurations:Release"
defines "RELEASE"
runtime "Release"
optimize "On"

if os.host() == "linux" then
postbuildcommands {
"{COPY} ./project ../Binaries/Release-linux-x86_64/Server/project",
}
end

if os.host() == "windows" then
postbuildcommands {
"{COPY} ./project ../Binaries/Release-windows-x86_64/Server/project",
}
end

0 comments on commit 2bc1c84

Please sign in to comment.