Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-2pick
Commits
4aa2bd34
Commit
4aa2bd34
authored
Dec 01, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
irrtest
parent
ebf8f8d4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
178 additions
and
161 deletions
+178
-161
.travis.yml
.travis.yml
+10
-2
gframe/lzma/premake4.lua
gframe/lzma/premake4.lua
+2
-2
gframe/premake4.lua
gframe/premake4.lua
+36
-27
premake/ikpmp3/premake4.lua
premake/ikpmp3/premake4.lua
+1
-1
premake4.lua
premake4.lua
+62
-62
premake5.lua
premake5.lua
+67
-67
No files found.
.travis.yml
View file @
4aa2bd34
...
...
@@ -3,6 +3,8 @@ os: osx
sudo
:
required
dist
:
trusty
osx_image
:
xcode8
env
:
-
USE_IRRKLANG=mac
before_install
:
-
brew update > /dev/null
-
brew install freetype libevent sqlite dylibbundler > /dev/null
...
...
@@ -14,8 +16,8 @@ before_install:
-
cd ..
-
curl --location --retry 5 https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha12-macosx.tar.gz | tar zfx -
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip
-
unzip -q irrlicht-1.8.4.zip
-
cd irrlicht-1.8.4/
-
curl --location --retry 5 https://github.com/moecube/ygopro/raw/master/premake/irrlicht/irrlicht-mac.patch | patch -p1
...
...
@@ -25,6 +27,12 @@ before_install:
-
cp -rf ../../../include /usr/local/include/irrlicht
-
cd ../../../../
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://www.ambiera.at/downloads/irrKlang-32bit-1.5.0.zip
-
unzip -q irrKlang-32bit-1.5.0.zip
-
cp -rf irrKlang-1.5.0/lib/Win32-gcc/libirrKlang.a /usr/local/lib/
-
cp -rf irrKlang-1.5.0/include /usr/local/include/irrKlang
-
cp -rf irrKlang-1.5.0/irrKlang-1.5.0/bin/macosx-gcc *.dylib .
script
:
-
./premake5 gmake --cc=clang
-
cd build
...
...
@@ -45,7 +53,7 @@ script:
-
security import cert.p12 -k build.keychain -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign
-
codesign --deep --keychain build.keychain --sign "$(security find-identity -v -p codesigning build.keychain | head -1 | grep -o '".*"' | tr -d '"')" ygopro.app
-
zip -q -r ygopro-koishi-mac.zip ygopro.app
-
zip -q -r ygopro-koishi-mac.zip ygopro.app
*.dylib
deploy
:
provider
:
releases
...
...
gframe/lzma/premake4.lua
View file @
4aa2bd34
project
"clzma"
kind
"StaticLib"
files
{
"**.c"
,
"**.h"
}
kind
"StaticLib"
files
{
"**.c"
,
"**.h"
}
gframe/premake4.lua
View file @
4aa2bd34
include
"lzma"
project
"ygopro"
kind
"WindowedApp"
kind
"WindowedApp"
files
{
"**.cpp"
,
"**.cc"
,
"**.c"
,
"**.h"
}
excludes
"lzma/**"
includedirs
{
"../ocgcore"
}
links
{
"ocgcore"
,
"clzma"
,
"Irrlicht"
,
"freetype"
,
"sqlite3"
,
"lua"
,
"event"
}
files
{
"**.cpp"
,
"**.cc"
,
"**.c"
,
"**.h"
}
excludes
"lzma/**"
includedirs
{
"../ocgcore"
}
links
{
"ocgcore"
,
"clzma"
,
"Irrlicht"
,
"freetype"
,
"sqlite3"
,
"lua"
,
"event"
}
configuration
"windows"
files
"ygopro.rc"
excludes
"CGUIButton.cpp"
includedirs
{
"../irrlicht/include"
,
"../freetype/include"
,
"../event/include"
,
"../sqlite3"
}
if
USE_IRRKLANG
then
defines
{
"YGOPRO_USE_IRRKLANG"
}
links
{
"irrKlang"
,
"ikpMP3"
}
includedirs
{
"../irrklang/include"
}
if
IRRKLANG_PRO
then
defines
{
"IRRKLANG_STATIC"
}
end
libdirs
{
"../irrklang/lib/Win32-visualStudio"
}
end
links
{
"opengl32"
,
"ws2_32"
,
"winmm"
,
"gdi32"
,
"kernel32"
,
"user32"
,
"imm32"
}
configuration
{
"windows"
,
"not vs*"
}
includedirs
{
"/mingw/include/irrlicht"
,
"/mingw/include/freetype2"
}
configuration
"not vs*"
buildoptions
{
"-std=gnu++0x"
,
"-fno-rtti"
}
configuration
"not windows"
includedirs
{
"/usr/include/lua"
,
"/usr/include/lua5.3"
,
"/usr/include/lua/5.3"
,
"/usr/include/irrlicht"
,
"/usr/include/freetype2"
}
excludes
{
"COSOperator.*"
}
links
{
"event_pthreads"
,
"GL"
,
"dl"
,
"pthread"
}
configuration
"windows"
files
"ygopro.rc"
excludes
"CGUIButton.cpp"
includedirs
{
"../irrlicht/include"
,
"../freetype/include"
,
"../event/include"
,
"../sqlite3"
}
if
USE_IRRKLANG
then
defines
{
"YGOPRO_USE_IRRKLANG"
}
links
{
"irrKlang"
}
includedirs
{
"../irrklang/include"
}
if
IRRKLANG_PRO
then
links
{
"ikpMP3"
}
defines
{
"IRRKLANG_STATIC"
}
end
libdirs
{
"../irrklang/lib/Win32-visualStudio"
}
end
links
{
"opengl32"
,
"ws2_32"
,
"winmm"
,
"gdi32"
,
"kernel32"
,
"user32"
,
"imm32"
}
configuration
{
"windows"
,
"not vs*"
}
includedirs
{
"/mingw/include/irrlicht"
,
"/mingw/include/freetype2"
}
configuration
"not vs*"
buildoptions
{
"-std=gnu++0x"
,
"-fno-rtti"
}
configuration
"not windows"
includedirs
{
"/usr/include/lua"
,
"/usr/include/lua5.3"
,
"/usr/include/lua/5.3"
,
"/usr/include/irrlicht"
,
"/usr/include/freetype2"
}
excludes
{
"COSOperator.*"
}
links
{
"event_pthreads"
,
"GL"
,
"dl"
,
"pthread"
}
if
USE_IRRKLANG
then
defines
{
"YGOPRO_USE_IRRKLANG"
}
links
{
"irrKlang"
}
includedirs
{
"/usr/include/irrKlang"
}
if
os.getenv
(
"USE_IRRKLANG"
)
==
"mac"
then
libdirs
{
"../irrklang/lib/Win32-visualStudio"
}
end
end
premake/ikpmp3/premake4.lua
View file @
4aa2bd34
...
...
@@ -2,4 +2,4 @@ project "ikpMP3"
kind
"StaticLib"
files
{
"*.cpp"
,
"*.h"
,
"decoder/*.c"
,
"decoder/*.h"
}
includedirs
{
"../irrklang/include"
}
includedirs
{
"../irrklang/include"
}
premake4.lua
View file @
4aa2bd34
solution
"ygo"
location
"build"
language
"C++"
objdir
"obj"
startproject
"ygopro"
configurations
{
"Debug"
,
"Release"
}
defines
{
"LUA_COMPAT_5_2"
}
configuration
"windows"
defines
{
"WIN32"
,
"_WIN32"
}
configuration
"bsd"
defines
{
"LUA_USE_POSIX"
}
includedirs
{
"/usr/local/include"
}
libdirs
{
"/usr/local/lib"
}
configuration
"macosx"
defines
{
"LUA_USE_MACOSX"
}
includedirs
{
"/usr/local/include/*"
}
libdirs
{
"/usr/local/lib"
,
"/usr/X11/lib"
}
buildoptions
{
"-stdlib=libc++"
}
links
{
"OpenGL.framework"
,
"Cocoa.framework"
,
"IOKit.framework"
}
configuration
"linux"
defines
{
"LUA_USE_LINUX"
}
configuration
"vs*"
flags
"EnableSSE2"
buildoptions
{
"-wd4996"
}
defines
{
"_CRT_SECURE_NO_WARNINGS"
}
configuration
"not vs*"
buildoptions
{
"-fno-strict-aliasing"
,
"-Wno-multichar"
}
configuration
{
"not vs*"
,
"windows"
}
buildoptions
{
"-static-libgcc"
}
configuration
"Debug"
flags
"Symbols"
defines
"_DEBUG"
targetdir
"bin/debug"
configuration
{
"Release"
,
"not vs*"
}
flags
"Symbols"
defines
"NDEBUG"
buildoptions
"-march=native"
configuration
{
"Debug"
,
"vs*"
}
defines
{
"_ITERATOR_DEBUG_LEVEL=0"
}
configuration
"Release"
--flags { "OptimizeSpeed" }
targetdir
"bin/release"
include
"ocgcore"
include
"gframe"
if
os
.
is
(
"windows"
)
then
include
"event"
include
"freetype"
include
"irrlicht"
include
"lua"
include
"sqlite3"
end
location
"build"
language
"C++"
objdir
"obj"
startproject
"ygopro"
configurations
{
"Debug"
,
"Release"
}
defines
{
"LUA_COMPAT_5_2"
}
configuration
"windows"
defines
{
"WIN32"
,
"_WIN32"
}
configuration
"bsd"
defines
{
"LUA_USE_POSIX"
}
includedirs
{
"/usr/local/include"
}
libdirs
{
"/usr/local/lib"
}
configuration
"macosx"
defines
{
"LUA_USE_MACOSX"
}
includedirs
{
"/usr/local/include/*"
}
libdirs
{
"/usr/local/lib"
,
"/usr/X11/lib"
}
buildoptions
{
"-stdlib=libc++"
}
links
{
"OpenGL.framework"
,
"Cocoa.framework"
,
"IOKit.framework"
}
configuration
"linux"
defines
{
"LUA_USE_LINUX"
}
configuration
"vs*"
flags
"EnableSSE2"
buildoptions
{
"-wd4996"
}
defines
{
"_CRT_SECURE_NO_WARNINGS"
}
configuration
"not vs*"
buildoptions
{
"-fno-strict-aliasing"
,
"-Wno-multichar"
}
configuration
{
"not vs*"
,
"windows"
}
buildoptions
{
"-static-libgcc"
}
configuration
"Debug"
flags
"Symbols"
defines
"_DEBUG"
targetdir
"bin/debug"
configuration
{
"Release"
,
"not vs*"
}
flags
"Symbols"
defines
"NDEBUG"
buildoptions
"-march=native"
configuration
{
"Debug"
,
"vs*"
}
defines
{
"_ITERATOR_DEBUG_LEVEL=0"
}
configuration
"Release"
--flags { "OptimizeSpeed" }
targetdir
"bin/release"
include
"ocgcore"
include
"gframe"
if
os
.
is
(
"windows"
)
then
include
"event"
include
"freetype"
include
"irrlicht"
include
"lua"
include
"sqlite3"
end
premake5.lua
View file @
4aa2bd34
solution
"ygo"
location
"build"
language
"C++"
objdir
"obj"
if
os
.
ishost
(
"windows"
)
or
os.getenv
(
"USE_IRRKLANG"
)
then
USE_IRRKLANG
=
true
if
os.getenv
(
"irrklang_pro"
)
then
IRRKLANG_PRO
=
true
end
end
startproject
"ygopro"
location
"build"
language
"C++"
objdir
"obj"
if
os
.
ishost
(
"windows"
)
or
os.getenv
(
"USE_IRRKLANG"
)
then
USE_IRRKLANG
=
true
if
os.getenv
(
"irrklang_pro"
)
then
IRRKLANG_PRO
=
true
end
end
startproject
"ygopro"
configurations
{
"Debug"
,
"Release"
}
defines
{
"LUA_COMPAT_5_2"
}
configurations
{
"Debug"
,
"Release"
}
defines
{
"LUA_COMPAT_5_2"
}
configuration
"windows"
defines
{
"WIN32"
,
"_WIN32"
,
"WINVER=0x0501"
}
libdirs
{
"$(DXSDK_DIR)Lib/x86"
}
entrypoint
"mainCRTStartup"
toolset
"v140_xp"
startproject
"ygopro"
configuration
"windows"
defines
{
"WIN32"
,
"_WIN32"
,
"WINVER=0x0501"
}
libdirs
{
"$(DXSDK_DIR)Lib/x86"
}
entrypoint
"mainCRTStartup"
toolset
"v140_xp"
startproject
"ygopro"
configuration
"bsd"
defines
{
"LUA_USE_POSIX"
}
includedirs
{
"/usr/local/include"
}
libdirs
{
"/usr/local/lib"
}
configuration
"bsd"
defines
{
"LUA_USE_POSIX"
}
includedirs
{
"/usr/local/include"
}
libdirs
{
"/usr/local/lib"
}
configuration
"macosx"
defines
{
"LUA_USE_MACOSX"
}
includedirs
{
"/usr/local/include"
,
"/usr/local/include/*"
}
libdirs
{
"/usr/local/lib"
,
"/usr/X11/lib"
}
buildoptions
{
"-stdlib=libc++"
}
links
{
"OpenGL.framework"
,
"Cocoa.framework"
,
"IOKit.framework"
}
configuration
"macosx"
defines
{
"LUA_USE_MACOSX"
}
includedirs
{
"/usr/local/include"
,
"/usr/local/include/*"
}
libdirs
{
"/usr/local/lib"
,
"/usr/X11/lib"
}
buildoptions
{
"-stdlib=libc++"
}
links
{
"OpenGL.framework"
,
"Cocoa.framework"
,
"IOKit.framework"
}
configuration
"linux"
defines
{
"LUA_USE_LINUX"
}
configuration
"linux"
defines
{
"LUA_USE_LINUX"
}
configuration
"Release"
optimize
"Speed"
targetdir
"bin/release"
configuration
"Release"
optimize
"Speed"
targetdir
"bin/release"
configuration
"Debug"
symbols
"On"
defines
"_DEBUG"
targetdir
"bin/debug"
configuration
"Debug"
symbols
"On"
defines
"_DEBUG"
targetdir
"bin/debug"
configuration
{
"Release"
,
"vs*"
}
flags
{
"StaticRuntime"
,
"LinkTimeOptimization"
}
disablewarnings
{
"4244"
,
"4267"
,
"4838"
,
"4577"
,
"4819"
,
"4018"
,
"4996"
,
"4477"
}
configuration
{
"Release"
,
"vs*"
}
flags
{
"StaticRuntime"
,
"LinkTimeOptimization"
}
disablewarnings
{
"4244"
,
"4267"
,
"4838"
,
"4577"
,
"4819"
,
"4018"
,
"4996"
,
"4477"
}
configuration
{
"Release"
,
"not vs*"
}
symbols
"On"
defines
"NDEBUG"
buildoptions
"-march=native"
configuration
{
"Release"
,
"not vs*"
}
symbols
"On"
defines
"NDEBUG"
buildoptions
"-march=native"
configuration
{
"Debug"
,
"vs*"
}
defines
{
"_ITERATOR_DEBUG_LEVEL=0"
}
disablewarnings
{
"4819"
}
configuration
{
"Debug"
,
"vs*"
}
defines
{
"_ITERATOR_DEBUG_LEVEL=0"
}
disablewarnings
{
"4819"
}
configuration
"vs*"
vectorextensions
"SSE2"
defines
{
"_CRT_SECURE_NO_WARNINGS"
}
configuration
"not vs*"
buildoptions
{
"-fno-strict-aliasing"
,
"-Wno-multichar"
}
configuration
"vs*"
vectorextensions
"SSE2"
defines
{
"_CRT_SECURE_NO_WARNINGS"
}
configuration
"not vs*"
buildoptions
{
"-fno-strict-aliasing"
,
"-Wno-multichar"
}
configuration
{
"not vs*"
,
"windows"
}
buildoptions
{
"-static-libgcc"
}
configuration
{
"not vs*"
,
"windows"
}
buildoptions
{
"-static-libgcc"
}
include
"ocgcore"
include
"gframe"
if
os
.
ishost
(
"windows"
)
then
include
"event"
include
"freetype"
include
"irrlicht"
include
"lua"
include
"sqlite3"
if
IRRKLANG_PRO
then
include
"ikpmp3"
end
end
include
"ocgcore"
include
"gframe"
if
os
.
ishost
(
"windows"
)
then
include
"event"
include
"freetype"
include
"irrlicht"
include
"lua"
include
"sqlite3"
if
IRRKLANG_PRO
then
include
"ikpmp3"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment