Commit b5c28d27 authored by nanahira's avatar nanahira

Merge branch 'master' into develop

parents 913b5d46 7dacdd6d
...@@ -7,6 +7,10 @@ stages: ...@@ -7,6 +7,10 @@ stages:
variables: variables:
GIT_DEPTH: "1" GIT_DEPTH: "1"
.no_888:
except:
- '888'
mat_common: mat_common:
stage: prepare stage: prepare
tags: tags:
...@@ -24,6 +28,7 @@ mat_common: ...@@ -24,6 +28,7 @@ mat_common:
- sqlite3 - sqlite3
mat_windows: mat_windows:
extends: .no_888
stage: prepare stage: prepare
tags: tags:
- linux - linux
...@@ -36,6 +41,7 @@ mat_windows: ...@@ -36,6 +41,7 @@ mat_windows:
- premake5.exe - premake5.exe
mat_macos: mat_macos:
extends: .no_888
stage: prepare stage: prepare
tags: tags:
- linux - linux
...@@ -46,13 +52,20 @@ mat_macos: ...@@ -46,13 +52,20 @@ mat_macos:
paths: paths:
- premake5 - premake5
.build_unix: .build:
extends: .no_888
stage: build stage: build
dependencies:
- mat_common
artifacts:
paths:
- dist
.build_unix:
extends: .build
tags: tags:
- noavx2 - noavx2
image: git-registry.moenext.com/mycard/docker-ygopro-builder:debian11 image: git-registry.moenext.com/mycard/docker-ygopro-builder:debian11
dependencies:
- mat_common
variables: variables:
PREMAKE_OS: linux PREMAKE_OS: linux
BUILD_TYPE: x64 BUILD_TYPE: x64
...@@ -66,12 +79,10 @@ mat_macos: ...@@ -66,12 +79,10 @@ mat_macos:
- mkdir -p dist/$BUILD_TYPE - mkdir -p dist/$BUILD_TYPE
- cp build/bin/$BUILD_TYPE/Release/libocgcore.* dist/$BUILD_TYPE/ - cp build/bin/$BUILD_TYPE/Release/libocgcore.* dist/$BUILD_TYPE/
- cp build/bin/$BUILD_TYPE/Release/libsqlite3.* dist/$BUILD_TYPE/ || true - cp build/bin/$BUILD_TYPE/Release/libsqlite3.* dist/$BUILD_TYPE/ || true
artifacts:
paths:
- dist
build_linux_x64: build_linux_x64:
extends: .build_unix extends: .build_unix
except: []
build_linux_x32: build_linux_x32:
extends: .build_unix extends: .build_unix
...@@ -88,7 +99,7 @@ build_wasm: ...@@ -88,7 +99,7 @@ build_wasm:
image: git-registry.moenext.com/mycard/docker-ygopro-builder:debian12 image: git-registry.moenext.com/mycard/docker-ygopro-builder:debian12
.build_windows: .build_windows:
stage: build extends: .build
dependencies: dependencies:
- mat_common - mat_common
- mat_windows - mat_windows
...@@ -98,9 +109,6 @@ build_wasm: ...@@ -98,9 +109,6 @@ build_wasm:
- copy premake\dll.lua dll.lua - copy premake\dll.lua dll.lua
- '.\premake5.exe vs2019 --file=dll.lua --sqlite3-dir=sqlite3' - '.\premake5.exe vs2019 --file=dll.lua --sqlite3-dir=sqlite3'
- mkdir dist - mkdir dist
artifacts:
paths:
- dist
build_windows_x32: build_windows_x32:
extends: .build_windows extends: .build_windows
...@@ -144,6 +152,7 @@ build_macos_m1: ...@@ -144,6 +152,7 @@ build_macos_m1:
BUILD_TYPE: arm64 BUILD_TYPE: arm64
build_macos: build_macos:
extends: .no_888
stage: combine stage: combine
dependencies: dependencies:
- build_macos_x64 - build_macos_x64
......
...@@ -33,6 +33,8 @@ workspace "ocgcoredll" ...@@ -33,6 +33,8 @@ workspace "ocgcoredll"
configurations { "Release", "Debug" } configurations { "Release", "Debug" }
platforms { "x64", "x32", "arm64", "wasm" } platforms { "x64", "x32", "arm64", "wasm" }
defines { "LUA_USE_LONGJMP" }
for _, boolOption in ipairs(boolOptions) do for _, boolOption in ipairs(boolOptions) do
ApplyBoolean(boolOption) ApplyBoolean(boolOption)
end end
...@@ -81,7 +83,7 @@ workspace "ocgcoredll" ...@@ -81,7 +83,7 @@ workspace "ocgcoredll"
filter "platforms:wasm" filter "platforms:wasm"
toolset "emcc" toolset "emcc"
defines { "LUA_USE_C89", "LUA_USE_LONGJMP" } defines { "LUA_USE_C89" }
pic "On" pic "On"
filter {} filter {}
......
project "ocgcore" project "ocgcore"
if OCGCORE_DYNAMIC then if OCGCORE_DYNAMIC then
kind "SharedLib" kind "SharedLib"
links { LUA_LIB_NAME or "lua" } links { LUA_LIB_NAME }
libdirs { LUA_LIB_DIR }
else else
kind "StaticLib" kind "StaticLib"
end end
......
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