Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
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
perfectdicky
YGOProUnity_V2
Commits
75b4ce58
Commit
75b4ce58
authored
Sep 07, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.mycard.moe:mycard/YGOProUnity_V2
parents
6f9abf03
de0cebc4
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1591 additions
and
0 deletions
+1591
-0
.gitignore
.gitignore
+7
-0
.gitlab-ci.yml
.gitlab-ci.yml
+23
-0
AI_core_vs2017solution/build/android/jni/Android.mk
AI_core_vs2017solution/build/android/jni/Android.mk
+50
-0
AI_core_vs2017solution/build/android/jni/Application.mk
AI_core_vs2017solution/build/android/jni/Application.mk
+7
-0
AI_core_vs2017solution/build/gmake.linux/Makefile
AI_core_vs2017solution/build/gmake.linux/Makefile
+68
-0
AI_core_vs2017solution/build/gmake.linux/lua.make
AI_core_vs2017solution/build/gmake.linux/lua.make
+304
-0
AI_core_vs2017solution/build/gmake.linux/ocgcore.make
AI_core_vs2017solution/build/gmake.linux/ocgcore.make
+229
-0
AI_core_vs2017solution/build/gmake.linux/sqlite3.make
AI_core_vs2017solution/build/gmake.linux/sqlite3.make
+147
-0
AI_core_vs2017solution/build/gmake.macos/Makefile
AI_core_vs2017solution/build/gmake.macos/Makefile
+61
-0
AI_core_vs2017solution/build/gmake.macos/lua.make
AI_core_vs2017solution/build/gmake.macos/lua.make
+297
-0
AI_core_vs2017solution/build/gmake.macos/ocgcore.make
AI_core_vs2017solution/build/gmake.macos/ocgcore.make
+217
-0
AI_core_vs2017solution/build/gmake.macos/sqlite3.make
AI_core_vs2017solution/build/gmake.macos/sqlite3.make
+137
-0
AI_core_vs2017solution/core.sln
AI_core_vs2017solution/core.sln
+44
-0
No files found.
.gitignore
View file @
75b4ce58
...
@@ -61,3 +61,10 @@ Windbot/
...
@@ -61,3 +61,10 @@ Windbot/
config/config.conf
config/config.conf
config/hosts.conf
config/hosts.conf
config/translation.conf
config/translation.conf
AI_core_vs2017solution/ocgcore
AI_core_vs2017solution/sqlite3
AI_core_vs2017solution/bin
AI_core_vs2017solution/obj
AI_core_vs2017solution/Release
AI_core_vs2017solution/Debug
AI_core_vs2017solution/lua
.gitlab-ci.yml
View file @
75b4ce58
stages
:
stages
:
-
fetch_ocgcore
-
ocgcore
-
ocgcore
-
build_and_test
-
build_and_test
-
pack
-
pack
...
@@ -7,6 +8,7 @@ stages:
...
@@ -7,6 +8,7 @@ stages:
# If you are looking for a place where to add 'UNITY_LICENSE_FILE' and other secrets, please visit your project's gitlab page:
# If you are looking for a place where to add 'UNITY_LICENSE_FILE' and other secrets, please visit your project's gitlab page:
# settings > CI/CD > Variables instead
# settings > CI/CD > Variables instead
variables
:
variables
:
GIT_DEPTH
:
'
1'
BUILD_NAME
:
YGOPro2
BUILD_NAME
:
YGOPro2
UNITY_ACTIVATION_FILE
:
./unity3d.alf
UNITY_ACTIVATION_FILE
:
./unity3d.alf
UNITY_VERSION
:
"
2021.1.18f1"
UNITY_VERSION
:
"
2021.1.18f1"
...
@@ -43,10 +45,31 @@ image: $IMAGE:$UNITY_VERSION-base-$IMAGE_VERSION
...
@@ -43,10 +45,31 @@ image: $IMAGE:$UNITY_VERSION-base-$IMAGE_VERSION
tags
:
tags
:
-
linux
-
linux
fetch_ocgcore
:
extends
:
.common_image
stage
:
fetch_ocgcore
dependencies
:
[]
script
:
-
cd AI_core_vs2017solution
# lua
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/lua-5.3.5.tar.gz | tar zfx -
-
mv lua-5.3.5/src lua
-
rm -rf lua-5.3.5
# sqlite3
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/sqlite-autoconf-3360000.tar.gz | tar zfx -
-
mv sqlite-autoconf-3360000 sqlite3
# ocgcore
-
git clone --depth=1 -b x64 https://github.com/mycard/ygopro-core ocgcore
-
cd ..
artifacts
:
paths
:
-
AI_core_vs2017solution
.ocgcore
:
.ocgcore
:
extends
:
.common_image
extends
:
.common_image
stage
:
ocgcore
stage
:
ocgcore
dependencies
:
-
fetch_ocgcore
cache
:
cache
:
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
paths
:
...
...
AI_core_vs2017solution/build/android/jni/Android.mk
0 → 100644
View file @
75b4ce58
LOCAL_PATH
:=
$(
call
my-dir
)
/../../..
######### [sqlite3] ##########
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
sqlite3
LOCAL_SRC_FILES
:=
sqlite3/sqlite3.c
include
$(BUILD_SHARED_LIBRARY)
##############################
######### [ocgcore] ##########
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
ocgcore
TARGET_FORMAT_STRING_CFLAGS
:=
ifeq
($(TARGET_ARCH_ABI), x86)
LOCAL_CFLAGS
+=
-fno-stack-protector
endif
ifeq
($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_CFLAGS
+=
-mno-unaligned-access
endif
LOCAL_MODULE_FILENAME
:=
libocgcore
LOCAL_SRC_FILES
:=
ocgcore/card.cpp
\
ocgcore/duel.cpp
\
ocgcore/effect.cpp
\
ocgcore/field.cpp
\
ocgcore/group.cpp
\
ocgcore/interpreter.cpp
\
ocgcore/libcard.cpp
\
ocgcore/libdebug.cpp
\
ocgcore/libduel.cpp
\
ocgcore/libeffect.cpp
\
ocgcore/libgroup.cpp
\
ocgcore/mem.cpp
\
ocgcore/ocgapi.cpp
\
ocgcore/operations.cpp
\
ocgcore/playerop.cpp
\
ocgcore/processor.cpp
\
ocgcore/scriptlib.cpp
LOCAL_CFLAGS
:=
-DUSE_LUA
-std
=
c++14
LOCAL_C_INCLUDES
+=
$(LOCAL_PATH)
/lua
LOCAL_STATIC_LIBRARIES
+=
liblua5.3
include
$(BUILD_SHARED_LIBRARY)
include
$(LOCAL_PATH)/lua/Android.mk
##############################
AI_core_vs2017solution/build/android/jni/Application.mk
0 → 100644
View file @
75b4ce58
APP_ABI
:=
armeabi-v7a
APP_ABI
+=
x86
APP_PLATFORM
:=
android-16
APP_ALLOW_MISSING_DEPS
=
true
APP_STL
:=
c++_static
APP_CPPFLAGS
:=
-Wno-error
=
format-security
-std
=
c++14
-fpermissive
APP_OPTIM
:=
release
AI_core_vs2017solution/build/gmake.linux/Makefile
0 → 100644
View file @
75b4ce58
# Alternative GNU Make workspace makefile autogenerated by Premake
ifndef
config
config
=
release
endif
ifndef
verbose
SILENT
=
@
endif
ifeq
($(config),release)
ocgcore_config
=
release
lua_config
=
release
sqlite3_config
=
release
else
ifeq
($(config),release32)
ocgcore_config
=
release32
lua_config
=
release32
sqlite3_config
=
release32
else
$(error
"invalid configuration $(config)"
)
endif
PROJECTS
:=
ocgcore lua sqlite3
.PHONY
:
all clean help $(PROJECTS)
all
:
$(PROJECTS)
ocgcore
:
lua
ifneq
(,$(ocgcore_config))
@
echo
"==== Building ocgcore (
$(ocgcore_config)
) ===="
@
${MAKE}
--no-print-directory
-C
.
-f
ocgcore.make
config
=
$(ocgcore_config)
endif
lua
:
ifneq
(,$(lua_config))
@
echo
"==== Building lua (
$(lua_config)
) ===="
@
${MAKE}
--no-print-directory
-C
.
-f
lua.make
config
=
$(lua_config)
endif
sqlite3
:
ifneq
(,$(sqlite3_config))
@
echo
"==== Building sqlite3 (
$(sqlite3_config)
) ===="
@
${MAKE}
--no-print-directory
-C
.
-f
sqlite3.make
config
=
$(sqlite3_config)
endif
clean
:
@
${MAKE}
--no-print-directory
-C
.
-f
ocgcore.make clean
@
${MAKE}
--no-print-directory
-C
.
-f
lua.make clean
@
${MAKE}
--no-print-directory
-C
.
-f
sqlite3.make clean
help
:
@
echo
"Usage: make [config=name] [target]"
@
echo
""
@
echo
"CONFIGURATIONS:"
@
echo
" release"
@
echo
" release32"
@
echo
""
@
echo
"TARGETS:"
@
echo
" all (default)"
@
echo
" clean"
@
echo
" ocgcore"
@
echo
" lua"
@
echo
" sqlite3"
@
echo
""
@
echo
"For more information, see https://github.com/premake/premake-core/wiki"
\ No newline at end of file
AI_core_vs2017solution/build/gmake.linux/lua.make
0 → 100644
View file @
75b4ce58
# Alternative GNU Make project makefile autogenerated by Premake
ifndef
config
config
=
release
endif
ifndef
verbose
SILENT
=
@
endif
.PHONY
:
clean prebuild
SHELLTYPE
:=
posix
ifeq
(.exe,$(findstring .exe,$(ComSpec)))
SHELLTYPE
:=
msdos
endif
# Configurations
# #############################################
ifeq
($(origin CC), default)
CC
=
clang
endif
ifeq
($(origin CXX), default)
CXX
=
clang++
endif
ifeq
($(origin AR), default)
AR
=
ar
endif
DEFINES
+=
-DLUA_COMPAT_5_2
-DLUA_USE_LINUX
INCLUDES
+=
FORCE_INCLUDE
+=
ALL_CPPFLAGS
+=
$(CPPFLAGS)
-MMD
-MP
$(DEFINES)
$(INCLUDES)
ALL_RESFLAGS
+=
$(RESFLAGS)
$(DEFINES)
$(INCLUDES)
LIBS
+=
LDDEPS
+=
ALL_LDFLAGS
+=
$(LDFLAGS)
LINKCMD
=
$(AR)
-rcs
"
$@
"
$(OBJECTS)
define
PREBUILDCMDS
endef
define
PRELINKCMDS
endef
define
POSTBUILDCMDS
endef
ifeq
($(config),release)
TARGETDIR
=
../../bin/gmake.linux/x64
TARGET
=
$(TARGETDIR)
/liblua.a
OBJDIR
=
../../obj/gmake.linux/x64/lua
ALL_CFLAGS
+=
$(CFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
ALL_CXXFLAGS
+=
$(CXXFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
else
ifeq
($(config),release32)
TARGETDIR
=
../../bin/gmake.linux/x86
TARGET
=
$(TARGETDIR)
/liblua.a
OBJDIR
=
../../obj/gmake.linux/x86/lua
ALL_CFLAGS
+=
$(CFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-m32
-fno-strict-aliasing
-Wno-format-security
ALL_CXXFLAGS
+=
$(CXXFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-m32
-fno-strict-aliasing
-Wno-format-security
endif
# Per File Configurations
# #############################################
# File sets
# #############################################
GENERATED
:=
OBJECTS
:=
GENERATED
+=
$(OBJDIR)
/lapi.o
GENERATED
+=
$(OBJDIR)
/lauxlib.o
GENERATED
+=
$(OBJDIR)
/lbaselib.o
GENERATED
+=
$(OBJDIR)
/lbitlib.o
GENERATED
+=
$(OBJDIR)
/lcode.o
GENERATED
+=
$(OBJDIR)
/lcorolib.o
GENERATED
+=
$(OBJDIR)
/lctype.o
GENERATED
+=
$(OBJDIR)
/ldblib.o
GENERATED
+=
$(OBJDIR)
/ldebug.o
GENERATED
+=
$(OBJDIR)
/ldo.o
GENERATED
+=
$(OBJDIR)
/ldump.o
GENERATED
+=
$(OBJDIR)
/lfunc.o
GENERATED
+=
$(OBJDIR)
/lgc.o
GENERATED
+=
$(OBJDIR)
/linit.o
GENERATED
+=
$(OBJDIR)
/liolib.o
GENERATED
+=
$(OBJDIR)
/llex.o
GENERATED
+=
$(OBJDIR)
/lmathlib.o
GENERATED
+=
$(OBJDIR)
/lmem.o
GENERATED
+=
$(OBJDIR)
/loadlib.o
GENERATED
+=
$(OBJDIR)
/lobject.o
GENERATED
+=
$(OBJDIR)
/lopcodes.o
GENERATED
+=
$(OBJDIR)
/loslib.o
GENERATED
+=
$(OBJDIR)
/lparser.o
GENERATED
+=
$(OBJDIR)
/lstate.o
GENERATED
+=
$(OBJDIR)
/lstring.o
GENERATED
+=
$(OBJDIR)
/lstrlib.o
GENERATED
+=
$(OBJDIR)
/ltable.o
GENERATED
+=
$(OBJDIR)
/ltablib.o
GENERATED
+=
$(OBJDIR)
/ltm.o
GENERATED
+=
$(OBJDIR)
/lundump.o
GENERATED
+=
$(OBJDIR)
/lutf8lib.o
GENERATED
+=
$(OBJDIR)
/lvm.o
GENERATED
+=
$(OBJDIR)
/lzio.o
OBJECTS
+=
$(OBJDIR)
/lapi.o
OBJECTS
+=
$(OBJDIR)
/lauxlib.o
OBJECTS
+=
$(OBJDIR)
/lbaselib.o
OBJECTS
+=
$(OBJDIR)
/lbitlib.o
OBJECTS
+=
$(OBJDIR)
/lcode.o
OBJECTS
+=
$(OBJDIR)
/lcorolib.o
OBJECTS
+=
$(OBJDIR)
/lctype.o
OBJECTS
+=
$(OBJDIR)
/ldblib.o
OBJECTS
+=
$(OBJDIR)
/ldebug.o
OBJECTS
+=
$(OBJDIR)
/ldo.o
OBJECTS
+=
$(OBJDIR)
/ldump.o
OBJECTS
+=
$(OBJDIR)
/lfunc.o
OBJECTS
+=
$(OBJDIR)
/lgc.o
OBJECTS
+=
$(OBJDIR)
/linit.o
OBJECTS
+=
$(OBJDIR)
/liolib.o
OBJECTS
+=
$(OBJDIR)
/llex.o
OBJECTS
+=
$(OBJDIR)
/lmathlib.o
OBJECTS
+=
$(OBJDIR)
/lmem.o
OBJECTS
+=
$(OBJDIR)
/loadlib.o
OBJECTS
+=
$(OBJDIR)
/lobject.o
OBJECTS
+=
$(OBJDIR)
/lopcodes.o
OBJECTS
+=
$(OBJDIR)
/loslib.o
OBJECTS
+=
$(OBJDIR)
/lparser.o
OBJECTS
+=
$(OBJDIR)
/lstate.o
OBJECTS
+=
$(OBJDIR)
/lstring.o
OBJECTS
+=
$(OBJDIR)
/lstrlib.o
OBJECTS
+=
$(OBJDIR)
/ltable.o
OBJECTS
+=
$(OBJDIR)
/ltablib.o
OBJECTS
+=
$(OBJDIR)
/ltm.o
OBJECTS
+=
$(OBJDIR)
/lundump.o
OBJECTS
+=
$(OBJDIR)
/lutf8lib.o
OBJECTS
+=
$(OBJDIR)
/lvm.o
OBJECTS
+=
$(OBJDIR)
/lzio.o
# Rules
# #############################################
all
:
$(TARGET)
@
:
$(TARGET)
:
$(GENERATED) $(OBJECTS) $(LDDEPS) | $(TARGETDIR)
$(PRELINKCMDS)
@
echo
Linking lua
$(SILENT)
$(LINKCMD)
$(POSTBUILDCMDS)
$(TARGETDIR)
:
@
echo
Creating
$(TARGETDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(TARGETDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(TARGETDIR)
)
endif
$(OBJDIR)
:
@
echo
Creating
$(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(OBJDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
clean
:
@
echo
Cleaning lua
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
rm
-f
$(TARGET)
$(SILENT)
rm
-rf
$(GENERATED)
$(SILENT)
rm
-rf
$(OBJDIR)
else
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(TARGET)
)
del
$(
subst
/,
\\
,
$(TARGET)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(GENERATED)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(GENERATED)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(OBJDIR)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
prebuild
:
| $(OBJDIR)
$(PREBUILDCMDS)
ifneq
(,$(PCH))
$(OBJECTS)
:
$(GCH) | $(PCH_PLACEHOLDER)
$(GCH)
:
$(PCH) | prebuild
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
-x
c++-header
$(ALL_CXXFLAGS)
-o
"
$@
"
-MF
"
$
(@:%.gch=%.d)"
-c
"
$<
"
$(PCH_PLACEHOLDER)
:
$(GCH) | $(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
touch
"
$@
"
else
$(SILENT)
echo
$null
>>
"
$@
"
endif
else
$(OBJECTS)
:
| prebuild
endif
# File Rules
# #############################################
$(OBJDIR)/lapi.o
:
../../lua/lapi.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lauxlib.o
:
../../lua/lauxlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lbaselib.o
:
../../lua/lbaselib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lbitlib.o
:
../../lua/lbitlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lcode.o
:
../../lua/lcode.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lcorolib.o
:
../../lua/lcorolib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lctype.o
:
../../lua/lctype.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ldblib.o
:
../../lua/ldblib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ldebug.o
:
../../lua/ldebug.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ldo.o
:
../../lua/ldo.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ldump.o
:
../../lua/ldump.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lfunc.o
:
../../lua/lfunc.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lgc.o
:
../../lua/lgc.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/linit.o
:
../../lua/linit.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/liolib.o
:
../../lua/liolib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/llex.o
:
../../lua/llex.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lmathlib.o
:
../../lua/lmathlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lmem.o
:
../../lua/lmem.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/loadlib.o
:
../../lua/loadlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lobject.o
:
../../lua/lobject.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lopcodes.o
:
../../lua/lopcodes.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/loslib.o
:
../../lua/loslib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lparser.o
:
../../lua/lparser.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lstate.o
:
../../lua/lstate.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lstring.o
:
../../lua/lstring.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lstrlib.o
:
../../lua/lstrlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ltable.o
:
../../lua/ltable.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ltablib.o
:
../../lua/ltablib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ltm.o
:
../../lua/ltm.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lundump.o
:
../../lua/lundump.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lutf8lib.o
:
../../lua/lutf8lib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lvm.o
:
../../lua/lvm.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lzio.o
:
../../lua/lzio.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
-include
$(OBJECTS:%.o=%.d)
ifneq
(,$(PCH))
-include
$(PCH_PLACEHOLDER).d
endif
\ No newline at end of file
AI_core_vs2017solution/build/gmake.linux/ocgcore.make
0 → 100644
View file @
75b4ce58
# Alternative GNU Make project makefile autogenerated by Premake
ifndef
config
config
=
release
endif
ifndef
verbose
SILENT
=
@
endif
.PHONY
:
clean prebuild
SHELLTYPE
:=
posix
ifeq
(.exe,$(findstring .exe,$(ComSpec)))
SHELLTYPE
:=
msdos
endif
# Configurations
# #############################################
ifeq
($(origin CC), default)
CC
=
clang
endif
ifeq
($(origin CXX), default)
CXX
=
clang++
endif
ifeq
($(origin AR), default)
AR
=
ar
endif
ifeq
($(config),release32)
LDFLAGS
+=
-m32
-L
/usr/lib32
endif
DEFINES
+=
-DUSE_LUA
INCLUDES
+=
-I
../../lua
FORCE_INCLUDE
+=
ALL_CPPFLAGS
+=
$(CPPFLAGS)
-MMD
-MP
$(DEFINES)
$(INCLUDES)
ALL_RESFLAGS
+=
$(RESFLAGS)
$(DEFINES)
$(INCLUDES)
ALL_LDFLAGS
+=
$(LDFLAGS)
-shared
-static-libstdc
++
-static-libgcc
-Wl
,-soname
=
libocgcore.so
LINKCMD
=
$(CXX)
-o
"
$@
"
$(OBJECTS)
$(RESOURCES)
$(ALL_LDFLAGS)
$(LIBS)
define
PREBUILDCMDS
endef
define
PRELINKCMDS
endef
define
POSTBUILDCMDS
endef
ifeq
($(config),release)
TARGETDIR
=
../../bin/gmake.linux/x64
TARGET
=
$(TARGETDIR)
/libocgcore.so
OBJDIR
=
../../obj/gmake.linux/x64/ocgcore
ALL_CFLAGS
+=
$(CFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
-std
=
c++14
ALL_CXXFLAGS
+=
$(CXXFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
-std
=
c++14
LIBS
+=
../../bin/gmake.linux/x64/liblua.a
LDDEPS
+=
../../bin/gmake.linux/x64/liblua.a
else
ifeq
($(config),release32)
TARGETDIR
=
../../bin/gmake.linux/x86
TARGET
=
$(TARGETDIR)
/libocgcore.so
OBJDIR
=
../../obj/gmake.linux/x86/ocgcore
ALL_CFLAGS
+=
$(CFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-m32
-fno-strict-aliasing
-Wno-format-security
-std
=
c++14
ALL_CXXFLAGS
+=
$(CXXFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-m32
-fno-strict-aliasing
-Wno-format-security
-std
=
c++14
LIBS
+=
../../bin/gmake.linux/x86/liblua.a
LDDEPS
+=
../../bin/gmake.linux/x86/liblua.a
endif
# Per File Configurations
# #############################################
# File sets
# #############################################
GENERATED
:=
OBJECTS
:=
GENERATED
+=
$(OBJDIR)
/card.o
GENERATED
+=
$(OBJDIR)
/duel.o
GENERATED
+=
$(OBJDIR)
/effect.o
GENERATED
+=
$(OBJDIR)
/field.o
GENERATED
+=
$(OBJDIR)
/group.o
GENERATED
+=
$(OBJDIR)
/interpreter.o
GENERATED
+=
$(OBJDIR)
/libcard.o
GENERATED
+=
$(OBJDIR)
/libdebug.o
GENERATED
+=
$(OBJDIR)
/libduel.o
GENERATED
+=
$(OBJDIR)
/libeffect.o
GENERATED
+=
$(OBJDIR)
/libgroup.o
GENERATED
+=
$(OBJDIR)
/mem.o
GENERATED
+=
$(OBJDIR)
/ocgapi.o
GENERATED
+=
$(OBJDIR)
/operations.o
GENERATED
+=
$(OBJDIR)
/playerop.o
GENERATED
+=
$(OBJDIR)
/processor.o
GENERATED
+=
$(OBJDIR)
/scriptlib.o
OBJECTS
+=
$(OBJDIR)
/card.o
OBJECTS
+=
$(OBJDIR)
/duel.o
OBJECTS
+=
$(OBJDIR)
/effect.o
OBJECTS
+=
$(OBJDIR)
/field.o
OBJECTS
+=
$(OBJDIR)
/group.o
OBJECTS
+=
$(OBJDIR)
/interpreter.o
OBJECTS
+=
$(OBJDIR)
/libcard.o
OBJECTS
+=
$(OBJDIR)
/libdebug.o
OBJECTS
+=
$(OBJDIR)
/libduel.o
OBJECTS
+=
$(OBJDIR)
/libeffect.o
OBJECTS
+=
$(OBJDIR)
/libgroup.o
OBJECTS
+=
$(OBJDIR)
/mem.o
OBJECTS
+=
$(OBJDIR)
/ocgapi.o
OBJECTS
+=
$(OBJDIR)
/operations.o
OBJECTS
+=
$(OBJDIR)
/playerop.o
OBJECTS
+=
$(OBJDIR)
/processor.o
OBJECTS
+=
$(OBJDIR)
/scriptlib.o
# Rules
# #############################################
all
:
$(TARGET)
@
:
$(TARGET)
:
$(GENERATED) $(OBJECTS) $(LDDEPS) | $(TARGETDIR)
$(PRELINKCMDS)
@
echo
Linking ocgcore
$(SILENT)
$(LINKCMD)
$(POSTBUILDCMDS)
$(TARGETDIR)
:
@
echo
Creating
$(TARGETDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(TARGETDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(TARGETDIR)
)
endif
$(OBJDIR)
:
@
echo
Creating
$(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(OBJDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
clean
:
@
echo
Cleaning ocgcore
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
rm
-f
$(TARGET)
$(SILENT)
rm
-rf
$(GENERATED)
$(SILENT)
rm
-rf
$(OBJDIR)
else
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(TARGET)
)
del
$(
subst
/,
\\
,
$(TARGET)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(GENERATED)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(GENERATED)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(OBJDIR)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
prebuild
:
| $(OBJDIR)
$(PREBUILDCMDS)
ifneq
(,$(PCH))
$(OBJECTS)
:
$(GCH) | $(PCH_PLACEHOLDER)
$(GCH)
:
$(PCH) | prebuild
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
-x
c++-header
$(ALL_CXXFLAGS)
-o
"
$@
"
-MF
"
$
(@:%.gch=%.d)"
-c
"
$<
"
$(PCH_PLACEHOLDER)
:
$(GCH) | $(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
touch
"
$@
"
else
$(SILENT)
echo
$null
>>
"
$@
"
endif
else
$(OBJECTS)
:
| prebuild
endif
# File Rules
# #############################################
$(OBJDIR)/card.o
:
../../ocgcore/card.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/duel.o
:
../../ocgcore/duel.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/effect.o
:
../../ocgcore/effect.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/field.o
:
../../ocgcore/field.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/group.o
:
../../ocgcore/group.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/interpreter.o
:
../../ocgcore/interpreter.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libcard.o
:
../../ocgcore/libcard.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libdebug.o
:
../../ocgcore/libdebug.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libduel.o
:
../../ocgcore/libduel.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libeffect.o
:
../../ocgcore/libeffect.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libgroup.o
:
../../ocgcore/libgroup.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/mem.o
:
../../ocgcore/mem.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ocgapi.o
:
../../ocgcore/ocgapi.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/operations.o
:
../../ocgcore/operations.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/playerop.o
:
../../ocgcore/playerop.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/processor.o
:
../../ocgcore/processor.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/scriptlib.o
:
../../ocgcore/scriptlib.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
-include
$(OBJECTS:%.o=%.d)
ifneq
(,$(PCH))
-include
$(PCH_PLACEHOLDER).d
endif
AI_core_vs2017solution/build/gmake.linux/sqlite3.make
0 → 100644
View file @
75b4ce58
# Alternative GNU Make project makefile autogenerated by Premake
ifndef
config
config
=
release
endif
ifndef
verbose
SILENT
=
@
endif
.PHONY
:
clean prebuild
SHELLTYPE
:=
posix
ifeq
(.exe,$(findstring .exe,$(ComSpec)))
SHELLTYPE
:=
msdos
endif
# Configurations
# #############################################
ifeq
($(origin CC), default)
CC
=
clang
endif
ifeq
($(origin CXX), default)
CXX
=
clang++
endif
ifeq
($(origin AR), default)
AR
=
ar
endif
ifeq
($(config),release32)
LDFLAGS
+=
-m32
-L
/usr/lib32
endif
DEFINES
+=
INCLUDES
+=
FORCE_INCLUDE
+=
ALL_CPPFLAGS
+=
$(CPPFLAGS)
-MMD
-MP
$(DEFINES)
$(INCLUDES)
ALL_RESFLAGS
+=
$(RESFLAGS)
$(DEFINES)
$(INCLUDES)
LIBS
+=
LDDEPS
+=
ALL_LDFLAGS
+=
$(LDFLAGS)
-static-libstdc
++
-static-libgcc
-shared
-Wl
,-soname
=
libsqlite3.so
LINKCMD
=
$(CXX)
-o
"
$@
"
$(OBJECTS)
$(RESOURCES)
$(ALL_LDFLAGS)
$(LIBS)
define
PREBUILDCMDS
endef
define
PRELINKCMDS
endef
define
POSTBUILDCMDS
endef
ifeq
($(config),release)
TARGETDIR
=
../../bin/gmake.linux/x64
TARGET
=
$(TARGETDIR)
/libsqlite3.so
OBJDIR
=
../../obj/gmake.linux/x64/sqlite3
ALL_CFLAGS
+=
$(CFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
ALL_CXXFLAGS
+=
$(CXXFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
else
ifeq
($(config),release32)
TARGETDIR
=
../../bin/gmake.linux/x86
TARGET
=
$(TARGETDIR)
/libsqlite3.so
OBJDIR
=
../../obj/gmake.linux/x86/sqlite3
ALL_CFLAGS
+=
$(CFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-m32
-fno-strict-aliasing
-Wno-format-security
ALL_CXXFLAGS
+=
$(CXXFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-m32
-fno-strict-aliasing
-Wno-format-security
endif
# Per File Configurations
# #############################################
# File sets
# #############################################
GENERATED
:=
OBJECTS
:=
GENERATED
+=
$(OBJDIR)
/sqlite3.o
OBJECTS
+=
$(OBJDIR)
/sqlite3.o
# Rules
# #############################################
all
:
$(TARGET)
@
:
$(TARGET)
:
$(GENERATED) $(OBJECTS) $(LDDEPS) | $(TARGETDIR)
$(PRELINKCMDS)
@
echo
Linking sqlite3
$(SILENT)
$(LINKCMD)
$(POSTBUILDCMDS)
$(TARGETDIR)
:
@
echo
Creating
$(TARGETDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(TARGETDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(TARGETDIR)
)
endif
$(OBJDIR)
:
@
echo
Creating
$(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(OBJDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
clean
:
@
echo
Cleaning sqlite3
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
rm
-f
$(TARGET)
$(SILENT)
rm
-rf
$(GENERATED)
$(SILENT)
rm
-rf
$(OBJDIR)
else
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(TARGET)
)
del
$(
subst
/,
\\
,
$(TARGET)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(GENERATED)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(GENERATED)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(OBJDIR)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
prebuild
:
| $(OBJDIR)
$(PREBUILDCMDS)
ifneq
(,$(PCH))
$(OBJECTS)
:
$(GCH) | $(PCH_PLACEHOLDER)
$(GCH)
:
$(PCH) | prebuild
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
-x
c++-header
$(ALL_CXXFLAGS)
-o
"
$@
"
-MF
"
$
(@:%.gch=%.d)"
-c
"
$<
"
$(PCH_PLACEHOLDER)
:
$(GCH) | $(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
touch
"
$@
"
else
$(SILENT)
echo
$null
>>
"
$@
"
endif
else
$(OBJECTS)
:
| prebuild
endif
# File Rules
# #############################################
$(OBJDIR)/sqlite3.o
:
../../sqlite3/sqlite3.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
-include
$(OBJECTS:%.o=%.d)
ifneq
(,$(PCH))
-include
$(PCH_PLACEHOLDER).d
endif
AI_core_vs2017solution/build/gmake.macos/Makefile
0 → 100644
View file @
75b4ce58
# Alternative GNU Make workspace makefile autogenerated by Premake
ifndef
config
config
=
release
endif
ifndef
verbose
SILENT
=
@
endif
ifeq
($(config),release)
ocgcore_config
=
release
lua_config
=
release
sqlite3_config
=
release
else
$(error
"invalid configuration $(config)"
)
endif
PROJECTS
:=
ocgcore lua sqlite3
.PHONY
:
all clean help $(PROJECTS)
all
:
$(PROJECTS)
ocgcore
:
lua
ifneq
(,$(ocgcore_config))
@
echo
"==== Building ocgcore (
$(ocgcore_config)
) ===="
@
${MAKE}
--no-print-directory
-C
.
-f
ocgcore.make
config
=
$(ocgcore_config)
endif
lua
:
ifneq
(,$(lua_config))
@
echo
"==== Building lua (
$(lua_config)
) ===="
@
${MAKE}
--no-print-directory
-C
.
-f
lua.make
config
=
$(lua_config)
endif
sqlite3
:
ifneq
(,$(sqlite3_config))
@
echo
"==== Building sqlite3 (
$(sqlite3_config)
) ===="
@
${MAKE}
--no-print-directory
-C
.
-f
sqlite3.make
config
=
$(sqlite3_config)
endif
clean
:
@
${MAKE}
--no-print-directory
-C
.
-f
ocgcore.make clean
@
${MAKE}
--no-print-directory
-C
.
-f
lua.make clean
@
${MAKE}
--no-print-directory
-C
.
-f
sqlite3.make clean
help
:
@
echo
"Usage: make [config=name] [target]"
@
echo
""
@
echo
"CONFIGURATIONS:"
@
echo
" release"
@
echo
""
@
echo
"TARGETS:"
@
echo
" all (default)"
@
echo
" clean"
@
echo
" ocgcore"
@
echo
" lua"
@
echo
" sqlite3"
@
echo
""
@
echo
"For more information, see https://github.com/premake/premake-core/wiki"
\ No newline at end of file
AI_core_vs2017solution/build/gmake.macos/lua.make
0 → 100644
View file @
75b4ce58
# Alternative GNU Make project makefile autogenerated by Premake
ifndef
config
config
=
release
endif
ifndef
verbose
SILENT
=
@
endif
.PHONY
:
clean prebuild
SHELLTYPE
:=
posix
ifeq
(.exe,$(findstring .exe,$(ComSpec)))
SHELLTYPE
:=
msdos
endif
# Configurations
# #############################################
ifeq
($(origin CC), default)
CC
=
clang
endif
ifeq
($(origin CXX), default)
CXX
=
clang++
endif
ifeq
($(origin AR), default)
AR
=
ar
endif
OSX_FLAGS
=
-mmacosx-version-min
=
10.9
-arch
x86_64
DEFINES
+=
-DLUA_COMPAT_5_2
-DLUA_USE_MACOSX
INCLUDES
+=
FORCE_INCLUDE
+=
ALL_CPPFLAGS
+=
$(CPPFLAGS)
-MMD
-MP
$(DEFINES)
$(INCLUDES)
ALL_RESFLAGS
+=
$(RESFLAGS)
$(DEFINES)
$(INCLUDES)
LIBS
+=
LDDEPS
+=
ALL_LDFLAGS
+=
$(LDFLAGS)
LINKCMD
=
$(AR)
-rcs
"
$@
"
$(OBJECTS)
define
PREBUILDCMDS
endef
define
PRELINKCMDS
endef
define
POSTBUILDCMDS
endef
ifeq
($(config),release)
TARGETDIR
=
../../bin/gmake.macos
TARGET
=
$(TARGETDIR)
/liblua.a
OBJDIR
=
../../obj/gmake.macos/lua
ALL_CFLAGS
+=
$(CFLAGS)
$(ALL_CPPFLAGS)
-O3
-fno-strict-aliasing
-Wno-format-security
-x
c++
$(OSX_FLAGS)
ALL_CXXFLAGS
+=
$(CXXFLAGS)
$(ALL_CPPFLAGS)
-O3
-fno-strict-aliasing
-Wno-format-security
-x
c++
$(OSX_FLAGS)
endif
# Per File Configurations
# #############################################
# File sets
# #############################################
GENERATED
:=
OBJECTS
:=
GENERATED
+=
$(OBJDIR)
/lapi.o
GENERATED
+=
$(OBJDIR)
/lauxlib.o
GENERATED
+=
$(OBJDIR)
/lbaselib.o
GENERATED
+=
$(OBJDIR)
/lbitlib.o
GENERATED
+=
$(OBJDIR)
/lcode.o
GENERATED
+=
$(OBJDIR)
/lcorolib.o
GENERATED
+=
$(OBJDIR)
/lctype.o
GENERATED
+=
$(OBJDIR)
/ldblib.o
GENERATED
+=
$(OBJDIR)
/ldebug.o
GENERATED
+=
$(OBJDIR)
/ldo.o
GENERATED
+=
$(OBJDIR)
/ldump.o
GENERATED
+=
$(OBJDIR)
/lfunc.o
GENERATED
+=
$(OBJDIR)
/lgc.o
GENERATED
+=
$(OBJDIR)
/linit.o
GENERATED
+=
$(OBJDIR)
/liolib.o
GENERATED
+=
$(OBJDIR)
/llex.o
GENERATED
+=
$(OBJDIR)
/lmathlib.o
GENERATED
+=
$(OBJDIR)
/lmem.o
GENERATED
+=
$(OBJDIR)
/loadlib.o
GENERATED
+=
$(OBJDIR)
/lobject.o
GENERATED
+=
$(OBJDIR)
/lopcodes.o
GENERATED
+=
$(OBJDIR)
/loslib.o
GENERATED
+=
$(OBJDIR)
/lparser.o
GENERATED
+=
$(OBJDIR)
/lstate.o
GENERATED
+=
$(OBJDIR)
/lstring.o
GENERATED
+=
$(OBJDIR)
/lstrlib.o
GENERATED
+=
$(OBJDIR)
/ltable.o
GENERATED
+=
$(OBJDIR)
/ltablib.o
GENERATED
+=
$(OBJDIR)
/ltm.o
GENERATED
+=
$(OBJDIR)
/lundump.o
GENERATED
+=
$(OBJDIR)
/lutf8lib.o
GENERATED
+=
$(OBJDIR)
/lvm.o
GENERATED
+=
$(OBJDIR)
/lzio.o
OBJECTS
+=
$(OBJDIR)
/lapi.o
OBJECTS
+=
$(OBJDIR)
/lauxlib.o
OBJECTS
+=
$(OBJDIR)
/lbaselib.o
OBJECTS
+=
$(OBJDIR)
/lbitlib.o
OBJECTS
+=
$(OBJDIR)
/lcode.o
OBJECTS
+=
$(OBJDIR)
/lcorolib.o
OBJECTS
+=
$(OBJDIR)
/lctype.o
OBJECTS
+=
$(OBJDIR)
/ldblib.o
OBJECTS
+=
$(OBJDIR)
/ldebug.o
OBJECTS
+=
$(OBJDIR)
/ldo.o
OBJECTS
+=
$(OBJDIR)
/ldump.o
OBJECTS
+=
$(OBJDIR)
/lfunc.o
OBJECTS
+=
$(OBJDIR)
/lgc.o
OBJECTS
+=
$(OBJDIR)
/linit.o
OBJECTS
+=
$(OBJDIR)
/liolib.o
OBJECTS
+=
$(OBJDIR)
/llex.o
OBJECTS
+=
$(OBJDIR)
/lmathlib.o
OBJECTS
+=
$(OBJDIR)
/lmem.o
OBJECTS
+=
$(OBJDIR)
/loadlib.o
OBJECTS
+=
$(OBJDIR)
/lobject.o
OBJECTS
+=
$(OBJDIR)
/lopcodes.o
OBJECTS
+=
$(OBJDIR)
/loslib.o
OBJECTS
+=
$(OBJDIR)
/lparser.o
OBJECTS
+=
$(OBJDIR)
/lstate.o
OBJECTS
+=
$(OBJDIR)
/lstring.o
OBJECTS
+=
$(OBJDIR)
/lstrlib.o
OBJECTS
+=
$(OBJDIR)
/ltable.o
OBJECTS
+=
$(OBJDIR)
/ltablib.o
OBJECTS
+=
$(OBJDIR)
/ltm.o
OBJECTS
+=
$(OBJDIR)
/lundump.o
OBJECTS
+=
$(OBJDIR)
/lutf8lib.o
OBJECTS
+=
$(OBJDIR)
/lvm.o
OBJECTS
+=
$(OBJDIR)
/lzio.o
# Rules
# #############################################
all
:
$(TARGET)
@
:
$(TARGET)
:
$(GENERATED) $(OBJECTS) $(LDDEPS) | $(TARGETDIR)
$(PRELINKCMDS)
@
echo
Linking lua
$(SILENT)
$(LINKCMD)
$(POSTBUILDCMDS)
$(TARGETDIR)
:
@
echo
Creating
$(TARGETDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(TARGETDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(TARGETDIR)
)
endif
$(OBJDIR)
:
@
echo
Creating
$(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(OBJDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
clean
:
@
echo
Cleaning lua
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
rm
-f
$(TARGET)
$(SILENT)
rm
-rf
$(GENERATED)
$(SILENT)
rm
-rf
$(OBJDIR)
else
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(TARGET)
)
del
$(
subst
/,
\\
,
$(TARGET)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(GENERATED)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(GENERATED)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(OBJDIR)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
prebuild
:
| $(OBJDIR)
$(PREBUILDCMDS)
ifneq
(,$(PCH))
$(OBJECTS)
:
$(GCH) | $(PCH_PLACEHOLDER)
$(GCH)
:
$(PCH) | prebuild
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
-x
c++-header
$(ALL_CXXFLAGS)
-o
"
$@
"
-MF
"
$
(@:%.gch=%.d)"
-c
"
$<
"
$(PCH_PLACEHOLDER)
:
$(GCH) | $(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
touch
"
$@
"
else
$(SILENT)
echo
$null
>>
"
$@
"
endif
else
$(OBJECTS)
:
| prebuild
endif
# File Rules
# #############################################
$(OBJDIR)/lapi.o
:
../../lua/lapi.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lauxlib.o
:
../../lua/lauxlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lbaselib.o
:
../../lua/lbaselib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lbitlib.o
:
../../lua/lbitlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lcode.o
:
../../lua/lcode.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lcorolib.o
:
../../lua/lcorolib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lctype.o
:
../../lua/lctype.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ldblib.o
:
../../lua/ldblib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ldebug.o
:
../../lua/ldebug.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ldo.o
:
../../lua/ldo.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ldump.o
:
../../lua/ldump.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lfunc.o
:
../../lua/lfunc.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lgc.o
:
../../lua/lgc.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/linit.o
:
../../lua/linit.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/liolib.o
:
../../lua/liolib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/llex.o
:
../../lua/llex.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lmathlib.o
:
../../lua/lmathlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lmem.o
:
../../lua/lmem.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/loadlib.o
:
../../lua/loadlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lobject.o
:
../../lua/lobject.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lopcodes.o
:
../../lua/lopcodes.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/loslib.o
:
../../lua/loslib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lparser.o
:
../../lua/lparser.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lstate.o
:
../../lua/lstate.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lstring.o
:
../../lua/lstring.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lstrlib.o
:
../../lua/lstrlib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ltable.o
:
../../lua/ltable.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ltablib.o
:
../../lua/ltablib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ltm.o
:
../../lua/ltm.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lundump.o
:
../../lua/lundump.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lutf8lib.o
:
../../lua/lutf8lib.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lvm.o
:
../../lua/lvm.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/lzio.o
:
../../lua/lzio.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
-include
$(OBJECTS:%.o=%.d)
ifneq
(,$(PCH))
-include
$(PCH_PLACEHOLDER).d
endif
AI_core_vs2017solution/build/gmake.macos/ocgcore.make
0 → 100644
View file @
75b4ce58
# Alternative GNU Make project makefile autogenerated by Premake
ifndef
config
config
=
release
endif
ifndef
verbose
SILENT
=
@
endif
.PHONY
:
clean prebuild
SHELLTYPE
:=
posix
ifeq
(.exe,$(findstring .exe,$(ComSpec)))
SHELLTYPE
:=
msdos
endif
# Configurations
# #############################################
ifeq
($(origin CC), default)
CC
=
clang
endif
ifeq
($(origin CXX), default)
CXX
=
clang++
endif
ifeq
($(origin AR), default)
AR
=
ar
endif
OSX_FLAGS
=
-mmacosx-version-min
=
10.9
-arch
x86_64
DEFINES
+=
-DUSE_LUA
INCLUDES
+=
-I
../../lua
FORCE_INCLUDE
+=
ALL_CPPFLAGS
+=
$(CPPFLAGS)
-MMD
-MP
$(DEFINES)
$(INCLUDES)
ALL_RESFLAGS
+=
$(RESFLAGS)
$(DEFINES)
$(INCLUDES)
ALL_LDFLAGS
+=
$(LDFLAGS)
$(OSX_FLAGS)
-dynamiclib
-Wl
,-install_name,@rpath/ocgcore.bundle
LINKCMD
=
$(CXX)
-o
"
$@
"
$(OBJECTS)
$(RESOURCES)
$(ALL_LDFLAGS)
$(LIBS)
define
PREBUILDCMDS
endef
define
PRELINKCMDS
endef
define
POSTBUILDCMDS
endef
ifeq
($(config),release)
TARGETDIR
=
../../bin/gmake.macos
TARGET
=
$(TARGETDIR)
/ocgcore.bundle
OBJDIR
=
../../obj/gmake.macos/ocgcore
ALL_CFLAGS
+=
$(CFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
-std
=
c++14
$(OSX_FLAGS)
ALL_CXXFLAGS
+=
$(CXXFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
-std
=
c++14
$(OSX_FLAGS)
LIBS
+=
../../bin/gmake.macos/liblua.a
LDDEPS
+=
../../bin/gmake.macos/liblua.a
endif
# Per File Configurations
# #############################################
# File sets
# #############################################
GENERATED
:=
OBJECTS
:=
GENERATED
+=
$(OBJDIR)
/card.o
GENERATED
+=
$(OBJDIR)
/duel.o
GENERATED
+=
$(OBJDIR)
/effect.o
GENERATED
+=
$(OBJDIR)
/field.o
GENERATED
+=
$(OBJDIR)
/group.o
GENERATED
+=
$(OBJDIR)
/interpreter.o
GENERATED
+=
$(OBJDIR)
/libcard.o
GENERATED
+=
$(OBJDIR)
/libdebug.o
GENERATED
+=
$(OBJDIR)
/libduel.o
GENERATED
+=
$(OBJDIR)
/libeffect.o
GENERATED
+=
$(OBJDIR)
/libgroup.o
GENERATED
+=
$(OBJDIR)
/mem.o
GENERATED
+=
$(OBJDIR)
/ocgapi.o
GENERATED
+=
$(OBJDIR)
/operations.o
GENERATED
+=
$(OBJDIR)
/playerop.o
GENERATED
+=
$(OBJDIR)
/processor.o
GENERATED
+=
$(OBJDIR)
/scriptlib.o
OBJECTS
+=
$(OBJDIR)
/card.o
OBJECTS
+=
$(OBJDIR)
/duel.o
OBJECTS
+=
$(OBJDIR)
/effect.o
OBJECTS
+=
$(OBJDIR)
/field.o
OBJECTS
+=
$(OBJDIR)
/group.o
OBJECTS
+=
$(OBJDIR)
/interpreter.o
OBJECTS
+=
$(OBJDIR)
/libcard.o
OBJECTS
+=
$(OBJDIR)
/libdebug.o
OBJECTS
+=
$(OBJDIR)
/libduel.o
OBJECTS
+=
$(OBJDIR)
/libeffect.o
OBJECTS
+=
$(OBJDIR)
/libgroup.o
OBJECTS
+=
$(OBJDIR)
/mem.o
OBJECTS
+=
$(OBJDIR)
/ocgapi.o
OBJECTS
+=
$(OBJDIR)
/operations.o
OBJECTS
+=
$(OBJDIR)
/playerop.o
OBJECTS
+=
$(OBJDIR)
/processor.o
OBJECTS
+=
$(OBJDIR)
/scriptlib.o
# Rules
# #############################################
all
:
$(TARGET)
@
:
$(TARGET)
:
$(GENERATED) $(OBJECTS) $(LDDEPS) | $(TARGETDIR)
$(PRELINKCMDS)
@
echo
Linking ocgcore
$(SILENT)
$(LINKCMD)
$(POSTBUILDCMDS)
$(TARGETDIR)
:
@
echo
Creating
$(TARGETDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(TARGETDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(TARGETDIR)
)
endif
$(OBJDIR)
:
@
echo
Creating
$(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(OBJDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
clean
:
@
echo
Cleaning ocgcore
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
rm
-f
$(TARGET)
$(SILENT)
rm
-rf
$(GENERATED)
$(SILENT)
rm
-rf
$(OBJDIR)
else
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(TARGET)
)
del
$(
subst
/,
\\
,
$(TARGET)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(GENERATED)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(GENERATED)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(OBJDIR)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
prebuild
:
| $(OBJDIR)
$(PREBUILDCMDS)
ifneq
(,$(PCH))
$(OBJECTS)
:
$(GCH) | $(PCH_PLACEHOLDER)
$(GCH)
:
$(PCH) | prebuild
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
-x
c++-header
$(ALL_CXXFLAGS)
-o
"
$@
"
-MF
"
$
(@:%.gch=%.d)"
-c
"
$<
"
$(PCH_PLACEHOLDER)
:
$(GCH) | $(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
touch
"
$@
"
else
$(SILENT)
echo
$null
>>
"
$@
"
endif
else
$(OBJECTS)
:
| prebuild
endif
# File Rules
# #############################################
$(OBJDIR)/card.o
:
../../ocgcore/card.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/duel.o
:
../../ocgcore/duel.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/effect.o
:
../../ocgcore/effect.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/field.o
:
../../ocgcore/field.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/group.o
:
../../ocgcore/group.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/interpreter.o
:
../../ocgcore/interpreter.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libcard.o
:
../../ocgcore/libcard.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libdebug.o
:
../../ocgcore/libdebug.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libduel.o
:
../../ocgcore/libduel.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libeffect.o
:
../../ocgcore/libeffect.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/libgroup.o
:
../../ocgcore/libgroup.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/mem.o
:
../../ocgcore/mem.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/ocgapi.o
:
../../ocgcore/ocgapi.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/operations.o
:
../../ocgcore/operations.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/playerop.o
:
../../ocgcore/playerop.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/processor.o
:
../../ocgcore/processor.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
$(OBJDIR)/scriptlib.o
:
../../ocgcore/scriptlib.cpp
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
$(ALL_CXXFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
-include
$(OBJECTS:%.o=%.d)
ifneq
(,$(PCH))
-include
$(PCH_PLACEHOLDER).d
endif
AI_core_vs2017solution/build/gmake.macos/sqlite3.make
0 → 100644
View file @
75b4ce58
# Alternative GNU Make project makefile autogenerated by Premake
ifndef
config
config
=
release
endif
ifndef
verbose
SILENT
=
@
endif
.PHONY
:
clean prebuild
SHELLTYPE
:=
posix
ifeq
(.exe,$(findstring .exe,$(ComSpec)))
SHELLTYPE
:=
msdos
endif
# Configurations
# #############################################
ifeq
($(origin CC), default)
CC
=
clang
endif
ifeq
($(origin CXX), default)
CXX
=
clang++
endif
ifeq
($(origin AR), default)
AR
=
ar
endif
OSX_FLAGS
=
-mmacosx-version-min
=
10.9
-arch
x86_64
DEFINES
+=
INCLUDES
+=
FORCE_INCLUDE
+=
ALL_CPPFLAGS
+=
$(CPPFLAGS)
-MMD
-MP
$(DEFINES)
$(INCLUDES)
ALL_RESFLAGS
+=
$(RESFLAGS)
$(DEFINES)
$(INCLUDES)
LIBS
+=
LDDEPS
+=
ALL_LDFLAGS
+=
$(LDFLAGS)
$(OSX_FLAGS)
-dynamiclib
-Wl
,-install_name,@rpath/sqlite3.bundle
LINKCMD
=
$(CXX)
-o
"
$@
"
$(OBJECTS)
$(RESOURCES)
$(ALL_LDFLAGS)
$(LIBS)
define
PREBUILDCMDS
endef
define
PRELINKCMDS
endef
define
POSTBUILDCMDS
endef
ifeq
($(config),release)
TARGETDIR
=
../../bin/gmake.macos
TARGET
=
$(TARGETDIR)
/sqlite3.bundle
OBJDIR
=
../../obj/gmake.macos/sqlite3
ALL_CFLAGS
+=
$(CFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
$(OSX_FLAGS)
ALL_CXXFLAGS
+=
$(CXXFLAGS)
$(ALL_CPPFLAGS)
-O3
-fPIC
-fno-strict-aliasing
-Wno-format-security
$(OSX_FLAGS)
endif
# Per File Configurations
# #############################################
# File sets
# #############################################
GENERATED
:=
OBJECTS
:=
GENERATED
+=
$(OBJDIR)
/sqlite3.o
OBJECTS
+=
$(OBJDIR)
/sqlite3.o
# Rules
# #############################################
all
:
$(TARGET)
@
:
$(TARGET)
:
$(GENERATED) $(OBJECTS) $(LDDEPS) | $(TARGETDIR)
$(PRELINKCMDS)
@
echo
Linking sqlite3
$(SILENT)
$(LINKCMD)
$(POSTBUILDCMDS)
$(TARGETDIR)
:
@
echo
Creating
$(TARGETDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(TARGETDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(TARGETDIR)
)
endif
$(OBJDIR)
:
@
echo
Creating
$(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
mkdir
-p
$(OBJDIR)
else
$(SILENT)
mkdir
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
clean
:
@
echo
Cleaning sqlite3
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
rm
-f
$(TARGET)
$(SILENT)
rm
-rf
$(GENERATED)
$(SILENT)
rm
-rf
$(OBJDIR)
else
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(TARGET)
)
del
$(
subst
/,
\\
,
$(TARGET)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(GENERATED)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(GENERATED)
)
$(SILENT)
if
exist
$(
subst
/,
\\
,
$(OBJDIR)
)
rmdir
/s /q
$(
subst
/,
\\
,
$(OBJDIR)
)
endif
prebuild
:
| $(OBJDIR)
$(PREBUILDCMDS)
ifneq
(,$(PCH))
$(OBJECTS)
:
$(GCH) | $(PCH_PLACEHOLDER)
$(GCH)
:
$(PCH) | prebuild
@
echo
$(
notdir
$<
)
$(SILENT)
$(CXX)
-x
c++-header
$(ALL_CXXFLAGS)
-o
"
$@
"
-MF
"
$
(@:%.gch=%.d)"
-c
"
$<
"
$(PCH_PLACEHOLDER)
:
$(GCH) | $(OBJDIR)
ifeq
(posix,$(SHELLTYPE))
$(SILENT)
touch
"
$@
"
else
$(SILENT)
echo
$null
>>
"
$@
"
endif
else
$(OBJECTS)
:
| prebuild
endif
# File Rules
# #############################################
$(OBJDIR)/sqlite3.o
:
../../sqlite3/sqlite3.c
@
echo
$(
notdir
$<
)
$(SILENT)
$(CC)
$(ALL_CFLAGS)
$(FORCE_INCLUDE)
-o
"
$@
"
-MF
"
$
(@:%.o=%.d)"
-c
"
$<
"
-include
$(OBJECTS:%.o=%.d)
ifneq
(,$(PCH))
-include
$(PCH_PLACEHOLDER).d
endif
AI_core_vs2017solution/core.sln
0 → 100644
View file @
75b4ce58
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30011.22
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ocgcore", "ocgcore\ocgcore.vcxproj", "{63635A2D-8303-46F7-8C8B-D1C36655F820}"
ProjectSection(ProjectDependencies) = postProject
{C7DFD3BA-8990-4312-A454-FCCADB81218B} = {C7DFD3BA-8990-4312-A454-FCCADB81218B}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lua", "lua\lua.vcxproj", "{C7DFD3BA-8990-4312-A454-FCCADB81218B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{63635A2D-8303-46F7-8C8B-D1C36655F820}.Debug|x64.ActiveCfg = Debug|x64
{63635A2D-8303-46F7-8C8B-D1C36655F820}.Debug|x64.Build.0 = Debug|x64
{63635A2D-8303-46F7-8C8B-D1C36655F820}.Debug|x86.ActiveCfg = Debug|Win32
{63635A2D-8303-46F7-8C8B-D1C36655F820}.Debug|x86.Build.0 = Debug|Win32
{63635A2D-8303-46F7-8C8B-D1C36655F820}.Release|x64.ActiveCfg = Release|x64
{63635A2D-8303-46F7-8C8B-D1C36655F820}.Release|x64.Build.0 = Release|x64
{63635A2D-8303-46F7-8C8B-D1C36655F820}.Release|x86.ActiveCfg = Release|Win32
{63635A2D-8303-46F7-8C8B-D1C36655F820}.Release|x86.Build.0 = Release|Win32
{C7DFD3BA-8990-4312-A454-FCCADB81218B}.Debug|x64.ActiveCfg = Debug|x64
{C7DFD3BA-8990-4312-A454-FCCADB81218B}.Debug|x64.Build.0 = Debug|x64
{C7DFD3BA-8990-4312-A454-FCCADB81218B}.Debug|x86.ActiveCfg = Debug|Win32
{C7DFD3BA-8990-4312-A454-FCCADB81218B}.Debug|x86.Build.0 = Debug|Win32
{C7DFD3BA-8990-4312-A454-FCCADB81218B}.Release|x64.ActiveCfg = Release|x64
{C7DFD3BA-8990-4312-A454-FCCADB81218B}.Release|x64.Build.0 = Release|x64
{C7DFD3BA-8990-4312-A454-FCCADB81218B}.Release|x86.ActiveCfg = Release|Win32
{C7DFD3BA-8990-4312-A454-FCCADB81218B}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6B0513E2-BC41-4C0B-91E8-E596BD9336CF}
EndGlobalSection
EndGlobal
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