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
4611008a
Commit
4611008a
authored
Dec 19, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_mac
parent
5d83e80a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
12 deletions
+8
-12
.travis.yml
.travis.yml
+6
-4
gframe/premake4.lua
gframe/premake4.lua
+1
-2
gframe/sound_manager.cpp
gframe/sound_manager.cpp
+0
-2
gframe/sound_manager.h
gframe/sound_manager.h
+0
-2
premake5.lua
premake5.lua
+1
-2
No files found.
.travis.yml
View file @
4611008a
...
...
@@ -55,20 +55,21 @@ before_install:
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://www.ambiera.at/downloads/irrKlang-64bit-1.5.0.zip
-
unzip -q irrKlang-64bit-1.5.0.zip
-
mv -f irrKlang-64bit-1.5.0 irrklang
-
mv -f irrklang/plugins/ikpMP3 ikpmp3
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
mv -f irrklang/bin/macosx-gcc/libirrklang.dylib irrklang/bin/macosx-gcc/libirrKlang.dylib;
sudo cp -rf irrklang/bin/macosx-gcc/
*
.dylib /usr/local/lib/;
sudo cp -rf irrklang/bin/macosx-gcc/
libirrKlang
.dylib /usr/local/lib/;
fi
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
mv -f irrklang/bin/linux-gcc-64/libIrrKlang.so irrklang/bin/linux-gcc-64/libirrKlang.so;
cp -rf irrklang/bin/linux-gcc-64/
*
.so .;
cp -rf irrklang/bin/linux-gcc-64/
libirrKlang
.so .;
fi
script
:
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./premake5 gmake --cc=clang; fi
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./premake5 gmake; fi
-
cd build
-
make config=release ygopro
-
make config=release ygopro
-j4
-
cd ..
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv -f bin/release/ygopro ./; strip ygopro;
fi
...
...
@@ -90,7 +91,7 @@ script:
fi
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
zip -q -r ygopro-koishi-$TRAVIS_OS_NAME.zip ygopro
*
.so;
zip -q -r ygopro-koishi-$TRAVIS_OS_NAME.zip ygopro
libirrKlang
.so;
fi
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
zip -q -r ygopro-koishi-$TRAVIS_OS_NAME.zip ygopro.app;
...
...
@@ -100,6 +101,7 @@ deploy:
provider
:
releases
file
:
ygopro-koishi-$TRAVIS_OS_NAME.zip
skip_cleanup
:
true
overwrite
:
true
on
:
tags
:
true
api-key
:
$NANAHIRA
gframe/premake4.lua
View file @
4611008a
...
...
@@ -9,10 +9,9 @@ project "ygopro"
links
{
"ocgcore"
,
"clzma"
,
"Irrlicht"
,
"freetype"
,
"sqlite3"
,
"lua"
,
"event"
}
if
USE_IRRKLANG
then
defines
{
"YGOPRO_USE_IRRKLANG"
}
links
{
"irrKlang"
}
links
{
"irrKlang"
,
"ikpmp3"
}
includedirs
{
"../irrklang/include"
}
if
IRRKLANG_PRO
then
links
{
"ikpMP3"
}
defines
{
"IRRKLANG_STATIC"
}
end
end
...
...
gframe/sound_manager.cpp
View file @
4611008a
...
...
@@ -16,9 +16,7 @@ bool SoundManager::Init() {
if
(
!
engineSound
||
!
engineMusic
)
{
return
false
;
}
else
{
#ifdef IRRKLANG_STATIC
irrklang
::
ikpMP3Init
(
engineMusic
);
#endif
return
true
;
}
#endif // YGOPRO_USE_IRRKLANG
...
...
gframe/sound_manager.h
View file @
4611008a
...
...
@@ -5,10 +5,8 @@
#include "game.h"
#ifdef YGOPRO_USE_IRRKLANG
#include <irrKlang.h>
#ifdef IRRKLANG_STATIC
#include "../ikpmp3/ikpMP3.h"
#endif
#endif
#define wcsicmp _wcsicmp
...
...
premake5.lua
View file @
4611008a
...
...
@@ -8,7 +8,6 @@ solution "ygo"
IRRKLANG_PRO
=
true
end
end
startproject
"ygopro"
configurations
{
"Debug"
,
"Release"
}
defines
{
"LUA_COMPAT_5_2"
}
...
...
@@ -76,6 +75,6 @@ solution "ygo"
include
"lua"
include
"sqlite3"
end
if
IRRKLANG_PRO
then
if
USE_IRRKLANG
then
include
"ikpmp3"
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