Commit 630c7265 authored by Dylam De La Torre's avatar Dylam De La Torre Committed by edo9300

Fix premake4 build for linux and enhancements (#7)

* fix premake4 build on Linux

* linux premake4 build enhancement

this commit enables the resulting ygopro executable
able to search the missing .so libraries in the
running directory.

eliminates the need to install irrklang on the system
as root and can also potentially be used to change
the ocgcore without needing to recompile the GUI.

* add .gitignore file
parent e60b6503
# Ignore image thumbnail files created by windows
Thumbs.db
# Ignore Finder view option files created by OS X
.DS_Store
# Ignore autogenerated source files
Source/Core/Common/scmrev.h
# Ignore files output by build
/[Bb]uild*/
/[Bb]in/
/obj/
/irrKlang/
# Android cmake builds to here then copies to Source/Android.
/libs/
# Ignore various files created by visual studio/msbuild
*.ipch
*.opensdf
*.sdf
*.suo
*.vcxproj.user
*.obj
*.tlog
*.VC.opendb
*.VC.db
.vs/
# Ignore build info file created by QtCreator
CMakeLists.txt.user
# Ignore files created by posix people
*~
# Ignore vim swapfiles
*.swp
# Ignore emacs temp files
\#*\#
.\#*
# Ignore kdevelop files/dirs
*.kdev4
# Ignore IDEA/Clion files/dirs
/.idea/
...@@ -22,3 +22,4 @@ project "ygopro" ...@@ -22,3 +22,4 @@ project "ygopro"
includedirs { "/usr/include/lua", "/usr/include/lua5.3", "/usr/include/lua/5.3", "/usr/include/irrlicht", "/usr/include/freetype2" } includedirs { "/usr/include/lua", "/usr/include/lua5.3", "/usr/include/lua/5.3", "/usr/include/irrlicht", "/usr/include/freetype2" }
excludes { "COSOperator.*" } excludes { "COSOperator.*" }
links { "event_pthreads", "GL", "dl", "pthread" } links { "event_pthreads", "GL", "dl", "pthread" }
linkoptions { "-Wl,-rpath '-Wl,\$\$ORIGIN'" }
...@@ -2,7 +2,9 @@ solution "ygo" ...@@ -2,7 +2,9 @@ solution "ygo"
location "build" location "build"
language "C++" language "C++"
objdir "obj" objdir "obj"
startproject "ygopro" if os.is("windows") then
startproject "ygopro"
end
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
defines { "LUA_COMPAT_5_2" } defines { "LUA_COMPAT_5_2" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment