Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
List
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
MobiusMei
ygopro
Commits
fb06abe7
Commit
fb06abe7
authored
Apr 16, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build ikpmp3 as default and fix m1 things
parent
02a747d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
.ci/exec-macos-platform.sh
.ci/exec-macos-platform.sh
+11
-3
.gitlab-ci.yml
.gitlab-ci.yml
+5
-5
premake5.lua
premake5.lua
+4
-1
No files found.
.ci/exec-macos-platform.sh
View file @
fb06abe7
...
...
@@ -2,7 +2,7 @@
set
-x
set
-o
errexit
TARGET_YGOPRO_BINARY_PATH
=
./ygopro-platforms/ygopro-platform-
$TARGET_PATFORM
TARGET_YGOPRO_BINARY_PATH
=
./ygopro-platforms/ygopro-platform-
$TARGET_P
L
ATFORM
export
EVENT_INCLUDE_DIR
=
$PWD
/libevent-stable/include
export
EVENT_LIB_DIR
=
$PWD
/libevent-stable/lib
export
IRRLICHT_INCLUDE_DIR
=
$PWD
/irrlicht/include
...
...
@@ -10,7 +10,12 @@ export IRRLICHT_LIB_DIR=$PWD/irrlicht
git submodule update
--init
./premake5 gmake
--cc
=
clang
--build-freetype
--build-sqlite
if
[[
$TARGET_PLATFORM
==
"x86"
]]
;
then
./premake5 gmake
--cc
=
clang
--build-freetype
--build-sqlite
--build-ikpmp3
else
./premake5 gmake
--cc
=
clang
--build-freetype
--build-sqlite
--no-use-irrklang
fi
cd
build
make
config
=
release
-j4
cd
..
...
...
@@ -18,5 +23,8 @@ cd ..
mkdir
ygopro-platforms
mv
bin/release/YGOPro.app
$TARGET_YGOPRO_BINARY_PATH
install_name_tool
-change
/usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib
$TARGET_YGOPRO_BINARY_PATH
if
[[
$TARGET_PLATFORM
==
"x86"
]]
;
then
install_name_tool
-change
/usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib
$TARGET_YGOPRO_BINARY_PATH
fi
strip
$TARGET_YGOPRO_BINARY_PATH
.gitlab-ci.yml
View file @
fb06abe7
...
...
@@ -173,10 +173,10 @@ exec_linux:
-
git submodule update --init
-
mkdir lib
-
cp -rf irrklang/bin/linux-gcc-64/libIrrKlang.so ./lib/
-
cp -rf irrklang/bin/linux-gcc-64/ikpMP3.so ./lib/
#
- cp -rf irrklang/bin/linux-gcc-64/ikpMP3.so ./lib/
-
export EVENT_INCLUDE_DIR=$PWD/libevent-stable/include
-
export EVENT_LIB_DIR=$PWD/libevent-stable/lib
-
./premake5 gmake --build-freetype --build-sqlite --build-irrlicht
-
./premake5 gmake --build-freetype --build-sqlite --build-irrlicht
--build-ikpmp3 --irrklang-pro
-
cd build
-
make config=release -j$(nproc)
-
cd ..
...
...
@@ -197,7 +197,7 @@ exec_macos_platform_x86:
-
mat_common
-
mat_macos_platform_x86
variables
:
TARGET_PATFORM
:
x86
TARGET_P
L
ATFORM
:
x86
cache
:
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
...
...
@@ -205,7 +205,7 @@ exec_macos_platform_x86:
-
obj/
script
:
-
./.ci/exec-macos-platform.sh
-
install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib ./ygopro-platforms/ygopro-platform-$TARGET_PATFORM
-
install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/../Frameworks/libirrklang.dylib ./ygopro-platforms/ygopro-platform-$TARGET_P
L
ATFORM
artifacts
:
paths
:
-
ygopro-platforms
...
...
@@ -219,7 +219,7 @@ exec_macos_platform_m1:
-
mat_common
-
mat_macos_platform_m1
variables
:
TARGET_PATFORM
:
m1
TARGET_P
L
ATFORM
:
m1
MAC_ARM
:
'
1'
NO_USE_IRRKLANG
:
'
1'
cache
:
...
...
premake5.lua
View file @
fb06abe7
...
...
@@ -46,6 +46,7 @@ newoption { trigger = "irrklang-pro", category = "YGOPro - irrklang - pro", desc
newoption
{
trigger
=
"no-irrklang-pro"
,
category
=
"YGOPro - irrklang - pro"
,
description
=
""
}
newoption
{
trigger
=
"irrklang-pro-release-lib-dir"
,
category
=
"YGOPro - irrklang - pro"
,
description
=
""
,
value
=
"PATH"
}
newoption
{
trigger
=
"irrklang-pro-debug-lib-dir"
,
category
=
"YGOPro - irrklang - pro"
,
description
=
""
,
value
=
"PATH"
}
newoption
{
trigger
=
'build-ikpmp3'
,
category
=
"YGOPro - irrklang - ikpmp3"
,
description
=
""
,
value
=
"PATH"
}
newoption
{
trigger
=
"winxp-support"
,
category
=
"YGOPro"
,
description
=
""
}
newoption
{
trigger
=
"mac-arm"
,
category
=
"YGOPro"
,
description
=
"M1"
}
...
...
@@ -141,6 +142,8 @@ if IRRKLANG_PRO then
IRRKLANG_PRO_DEBUG_LIB_DIR
=
GetParam
(
"irrklang-pro-debug-lib-dir"
)
or
"../irrklang/lib/Win32-visualStudio-debug"
end
BUILD_IKPMP3
=
USE_IRRKLANG
and
(
GetParam
(
"build-ikpmp3"
)
or
IRRKLANG_PRO
)
if
GetParam
(
"winxp-support"
)
and
os
.
istarget
(
"windows"
)
then
WINXP_SUPPORT
=
true
end
...
...
@@ -230,6 +233,6 @@ workspace "YGOPro"
if
BUILD_SQLITE
then
include
"sqlite3"
end
if
USE_IRRKLANG
and
IRRKLANG_PRO
then
if
BUILD_IKPMP3
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