Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
MishimaHaruna committed Oct 28, 2023
1 parent b097666 commit fe86a66
Show file tree
Hide file tree
Showing 34 changed files with 2,353 additions and 40 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Thumbs.db
/core
/ipch
/login-server
/CMakeCache.txt
/CMakeFiles
/cmake_install.cmake
/Makefile
/Makefile.cache
/api-server
Expand All @@ -50,13 +53,18 @@ Thumbs.db
/Hercules.xcodeproj/project.xcworkspace/xcshareddata/Hercules.xccheckout

# /3rdparty/libconfig/
/3rdparty/libconfig/CMakeFiles
/3rdparty/libconfig/cmake_install.cmake
/3rdparty/libconfig/Makefile
/3rdparty/libconfig/config.h
/3rdparty/libconfig/*.a
/3rdparty/libconfig/*.o

# /3rdparty/libbacktrace/
/3rdparty/libbacktrace/Makefile
/3rdparty/libbacktrace/*.o
/3rdparty/libbacktrace/backtrace-supported.h
/3rdparty/libbacktrace/config.h

# /3rdparty/http-parser/
/3rdparty/http-parser/Makefile
Expand All @@ -74,7 +82,10 @@ Thumbs.db
/3rdparty/libgif/Makefile

# /3rdparty/mt19937ar/
/3rdparty/mt19937ar/CMakeFiles
/3rdparty/mt19937ar/cmake_install.cmake
/3rdparty/mt19937ar/Makefile
/3rdparty/mt19937ar/*.a
/3rdparty/mt19937ar/*.o

# /cache/
Expand All @@ -93,12 +104,19 @@ Thumbs.db
/src/char/obj_sql

# /src/common/
/src/common/CMakeFiles
/src/common/cmake_install.cmake
/src/common/Makefile
/src/common/obj_all
/src/common/obj_all
/src/common/obj_sql
/src/common/sysinfo.inc
/src/common/config.h
/src/common/*.a

# /src/login/
/src/login/CMakeFiles
/src/login/cmake_install.cmake
/src/login/Makefile
/src/login/obj_sql

Expand Down
64 changes: 64 additions & 0 deletions 3rdparty/libbacktrace/config.h.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# undef _POSIX_PTHREAD_SEMANTICS
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# undef _TANDEM_SOURCE
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# undef __EXTENSIONS__
#endif

/* Define to 1 if on MINIX. */
#undef _MINIX

/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#undef _POSIX_1_SOURCE

/* Define to 1 if you need to in order for `stat' and other things to work. */
#undef _POSIX_SOURCE

/* Define to 1 if we have uselocale */
#undef HAVE_USELOCALE
/* Define to 1 if we have newlocale */
#undef HAVE_NEWLOCALE
/* Define to 1 if we have freelocale */
#undef HAVE_FREELOCALE
/* Define to 1 if we have xlocale.h */
#undef HAVE_XLOCALE_H

/* Define if _Unwind_GetIPInfo is available */
#undef HAVE_GETIPINFO
/* Define to 1 if you have the __sync functions */
#undef HAVE_SYNC_FUNCTIONS
/* Define to 1 if you have the __atomic functions */
#undef HAVE_ATOMIC_FUNCTIONS
/* ELF size: 32 or 64 */
#undef BACKTRACE_ELF_SIZE
/* XCOFF size: 32 or 64 */
#undef BACKTRACE_XCOFF_SIZE
/* Define if dl_iterate_phdr is available. */
#undef HAVE_DL_ITERATE_PHDR
/* Define to 1 if you have the fcntl function */
#undef HAVE_FCNTL
/* Define if getexecname is available */
#undef HAVE_GETEXECNAME
/* */
#undef HAVE_DECL_STRNLEN
/* */
#undef HAVE_LSTAT
/* */
#undef HAVE_READLINK
/* */
#undef HAVE_EXECINFO_H
22 changes: 22 additions & 0 deletions 3rdparty/libconfig/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#project(libconfig C)

#add_library(config
target_sources(libconfig
grammar.c
grammar.h
libconfig.c
libconfig.h
parsectx.h
scanctx.c
scanctx.h
scanner.c
scanner.h
strbuf.c
strbuf.h
wincompat.h
)

#check_include_file(xlocale.h HAVE_XLOCALE_H)
#if(HAVE_XLOCALE_H)
# target_compile_definitions(config HAVE_XLOCALE_H=1)
#endif()
39 changes: 39 additions & 0 deletions 3rdparty/libconfig/config.h.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# undef _POSIX_PTHREAD_SEMANTICS
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# undef _TANDEM_SOURCE
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# undef __EXTENSIONS__
#endif

/* Define to 1 if on MINIX. */
#undef _MINIX

/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#undef _POSIX_1_SOURCE

/* Define to 1 if you need to in order for `stat' and other things to work. */
#undef _POSIX_SOURCE

/* Define to 1 if we have uselocale */
#undef HAVE_USELOCALE
/* Define to 1 if we have newlocale */
#undef HAVE_NEWLOCALE
/* Define to 1 if we have freelocale */
#undef HAVE_FREELOCALE
/* Define to 1 if we have xlocale.h */
#undef HAVE_XLOCALE_H
9 changes: 9 additions & 0 deletions 3rdparty/libconfig/config.h.cm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#cmakedefine _GNU_SOURCE
/* Define to 1 if we have uselocale */
#cmakedefine HAVE_USELOCALE
/* Define to 1 if we have newlocale */
#cmakedefine HAVE_NEWLOCALE
/* Define to 1 if we have freelocale */
#cmakedefine HAVE_FREELOCALE
/* Define to 1 if we have xlocale.h */
#cmakedefine HAVE_XLOCALE_H
2 changes: 1 addition & 1 deletion 3rdparty/libconfig/libconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#ifdef HAVE_CONFIG_H
#include "ac_config.h"
#include "config.h"
#endif

#include <locale.h>
Expand Down
4 changes: 4 additions & 0 deletions 3rdparty/libconfig/scanctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
----------------------------------------------------------------------------
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "scanctx.h"
#include "wincompat.h"

Expand Down
7 changes: 7 additions & 0 deletions 3rdparty/mt19937ar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#PROJECT(mt19937ar C)

#add_library(mt19937ar STATIC
target_sources(mt19937ar
mt19937ar.c
mt19937ar.h
)
Loading

0 comments on commit fe86a66

Please sign in to comment.