-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor MINGW32_BUILD defines to WINDOWS_BUILD feat: bump amboso to 2.0.0 feat: bump invil to 0.2.1 feat: add SHARED_LIB define, which is now also in pack chain
- Loading branch information
Showing
12 changed files
with
130 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule amboso
updated
65 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#amboso compliant version folder, will ignore everything inside BUT the gitignore, to keep the clean dir | ||
* | ||
!.gitignore | ||
!static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../static/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# Define the package name and version | ||
AC_INIT([koliseo], [0.3.19], [[email protected]]) | ||
AC_INIT([koliseo], [0.3.20], [[email protected]]) | ||
|
||
# Verify automake version and enable foreign option | ||
AM_INIT_AUTOMAKE([foreign -Wall]) | ||
|
||
# Detect the host system and set PACK_PREFIX accordingly | ||
AC_CANONICAL_HOST | ||
build_linux=no | ||
build_windows=no | ||
build_mac=no | ||
echo "Host os: $host_os" | ||
AM_CONDITIONAL([OS_DARWIN], [test "$host_os" = "darwin"]) | ||
AM_CONDITIONAL([MINGW32_BUILD], [test "$host_os" = "mingw32"]) | ||
# | ||
|
||
AC_ARG_ENABLE([debug], | ||
[AS_HELP_STRING([--enable-debug], [Enable debug build])], | ||
[enable_debug=$enableval], | ||
|
@@ -27,53 +28,68 @@ AM_CONDITIONAL([CURSES_BUILD], [test "$enable_curses" = "yes"]) | |
AM_CONDITIONAL([GULP_BUILD], [test "$enable_gulp" = "yes"]) | ||
|
||
# Define the include and library paths based on the host system | ||
if test "$host_os" = "mingw32"; then | ||
echo "Building for mingw32: [$host_cpu-$host_vendor-$host_os]" | ||
# mingw32 specific flags | ||
if test "$enable_curses" = "yes"; then | ||
echo "Building with curses header" | ||
AC_SUBST([KOLISEO_CFLAGS], ["-I/usr/x86_64-w64-mingw32/include -static -fstack-protector -DMINGW32_BUILD -DNCURSES_STATIC"]) | ||
AC_SUBST([KOLISEO_LDFLAGS], ["-L/usr/x86_64-w64-mingw32/lib -lncursesw"]) | ||
else | ||
AC_SUBST([KOLISEO_CFLAGS], ["-I/usr/x86_64-w64-mingw32/include -static -fstack-protector -DMINGW32_BUILD"]) | ||
AC_SUBST([KOLISEO_LDFLAGS], ["-L/usr/x86_64-w64-mingw32/lib"]) | ||
fi | ||
AC_SUBST([CCOMP], ["/usr/bin/x86_64-w64-mingw32-gcc"]) | ||
AC_SUBST([OS], ["w64-mingw32"]) | ||
AC_SUBST([TARGET], ["demo.exe"]) | ||
fi | ||
if test "$host_os" = "darwin"; then | ||
echo "Building for macos: [$host_cpu-$host_vendor-$host_os]" | ||
# macOS specific flags | ||
if test "$enable_curses" = "yes"; then | ||
echo "Building with curses header" | ||
AC_SUBST([KOLISEO_LDFLAGS], ["-L/opt/homebrew/opt/ncurses/lib -lncurses"]) | ||
AC_SUBST([KOLISEO_CFLAGS], ["-I/opt/homebrew/opt/ncurses/include"]) | ||
else | ||
AC_SUBST([KOLISEO_LDFLAGS], [""]) | ||
AC_SUBST([KOLISEO_CFLAGS], [""]) | ||
fi | ||
AC_SUBST([OS], ["darwin"]) | ||
AC_SUBST([TARGET], ["demo"]) | ||
fi | ||
if test "$host_os" = "linux-gnu"; then | ||
echo "Building for Linux: [$host_cpu-$host_vendor-$host_os]" | ||
# Linux specific flags | ||
if test "$enable_curses" = "yes"; then | ||
echo "Building with curses header" | ||
AC_SUBST([KOLISEO_LDFLAGS], ["-lncurses"]) | ||
else | ||
AC_SUBST([KOLISEO_LDFLAGS], [""]) | ||
fi | ||
AC_SUBST([KOLISEO_CFLAGS], [""]) | ||
AC_SUBST([OS], ["Linux"]) | ||
AC_SUBST([TARGET], ["demo"]) | ||
fi | ||
case "${host_os}" in | ||
mingw*) | ||
echo "Building for mingw32: [$host_cpu-$host_vendor-$host_os]" | ||
# mingw32 specific flags | ||
if test "$enable_curses" = "yes"; then | ||
echo "Building with curses header" | ||
build_windows=yes | ||
AC_SUBST([KOLISEO_CFLAGS], ["-I/usr/x86_64-w64-mingw32/include -static -fstack-protector -DWINDOWS_BUILD -DNCURSES_STATIC"]) | ||
AC_SUBST([KOLISEO_LDFLAGS], ["-L/usr/x86_64-w64-mingw32/lib -lncursesw"]) | ||
else | ||
AC_SUBST([KOLISEO_CFLAGS], ["-I/usr/x86_64-w64-mingw32/include -static -fstack-protector -DWINDOWS_BUILD"]) | ||
AC_SUBST([KOLISEO_LDFLAGS], ["-L/usr/x86_64-w64-mingw32/lib"]) | ||
fi | ||
AC_SUBST([CCOMP], ["/usr/bin/x86_64-w64-mingw32-gcc"]) | ||
AC_SUBST([OS], ["w64-mingw32"]) | ||
AC_SUBST([TARGET], ["demo.exe"]) | ||
AC_SUBST([SHARED_LIB], ["libkoliseo.dll"]) | ||
;; | ||
darwin*) | ||
echo "Building for macos: [$host_cpu-$host_vendor-$host_os]" | ||
build_mac=yes | ||
# macOS specific flags | ||
if test "$enable_curses" = "yes"; then | ||
echo "Building with curses header" | ||
AC_SUBST([KOLISEO_LDFLAGS], ["-L/opt/homebrew/opt/ncurses/lib -lncurses"]) | ||
AC_SUBST([KOLISEO_CFLAGS], ["-I/opt/homebrew/opt/ncurses/include"]) | ||
else | ||
AC_SUBST([KOLISEO_LDFLAGS], [""]) | ||
AC_SUBST([KOLISEO_CFLAGS], [""]) | ||
fi | ||
AC_SUBST([OS], ["darwin"]) | ||
AC_SUBST([TARGET], ["demo"]) | ||
AC_SUBST([SHARED_LIB], ["libkoliseo.so"]) | ||
;; | ||
linux*) | ||
echo "Building for Linux: [$host_cpu-$host_vendor-$host_os]" | ||
build_linux=yes | ||
# Linux specific flags | ||
if test "$enable_curses" = "yes"; then | ||
echo "Building with curses header" | ||
AC_SUBST([KOLISEO_LDFLAGS], ["-lncurses"]) | ||
else | ||
AC_SUBST([KOLISEO_LDFLAGS], [""]) | ||
fi | ||
AC_SUBST([KOLISEO_CFLAGS], [""]) | ||
AC_SUBST([OS], ["Linux"]) | ||
AC_SUBST([TARGET], ["demo"]) | ||
AC_SUBST([SHARED_LIB], ["libkoliseo.so"]) | ||
;; | ||
*) | ||
AC_MSG_ERROR(["OS $host_os is not supported"]) | ||
;; | ||
esac | ||
|
||
AM_CONDITIONAL([WINDOWS_BUILD], [test "$build_windows" = "yes"]) | ||
AM_CONDITIONAL([DARWIN_BUILD], [test "$build_mac" = "yes"]) | ||
AM_CONDITIONAL([LINUX_BUILD], [test "$build_linux" = "yes"]) | ||
|
||
# Set a default version number if not specified externally | ||
AC_ARG_VAR([VERSION], [Version number]) | ||
if test -z "$VERSION"; then | ||
VERSION="0.3.19" | ||
VERSION="0.3.20" | ||
fi | ||
|
||
# Output variables to the config.h header | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule invil
updated
11 files
+2 −0 | .gitignore | |
+28 −0 | CHANGELOG.md | |
+1 −1 | Cargo.lock | |
+1 −1 | Cargo.toml | |
+10 −4 | README.md | |
+3 −2 | bin/stego.lock | |
+3 −0 | bin/v0.2.1/.gitignore | |
+1 −1 | kazoj/bone/vershw.k.stdout | |
+35 −13 | src/core.rs | |
+3 −1 | src/main.rs | |
+121 −8 | src/ops.rs |
Oops, something went wrong.