commit
87c0be470b
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -27,3 +27,7 @@ Thumbs.db
|
||||||
# Build directories
|
# Build directories
|
||||||
build/
|
build/
|
||||||
obj-*/
|
obj-*/
|
||||||
|
|
||||||
|
# AMXX plugin build related files
|
||||||
|
plugins/compile.dat
|
||||||
|
plugins/compiled/
|
||||||
|
|
|
@ -4,8 +4,8 @@ compiler:
|
||||||
before_script:
|
before_script:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -y g++-multilib libc6-dev-i386 lib32stdc++6 lib32z1-dev
|
- sudo apt-get install -y g++-multilib libc6-dev-i386 lib32stdc++6 lib32z1-dev
|
||||||
- CHECKOUT_DIR=$PWD && cd .. && $CHECKOUT_DIR/support/checkout-deps.sh && cd $CHECKOUT_DIR
|
- CHECKOUT_DIR=$PWD && cd .. && $CHECKOUT_DIR/support/checkout-deps.sh --no-mysql && cd $CHECKOUT_DIR
|
||||||
script:
|
script:
|
||||||
- mkdir build && cd build
|
- mkdir build && cd build
|
||||||
- python ../configure.py --enable-optimize
|
- python ../configure.py --enable-optimize --no-mysql
|
||||||
- ambuild
|
- ambuild
|
||||||
|
|
|
@ -412,6 +412,7 @@
|
||||||
<None Include="..\..\plugins\include\amxconst.inc" />
|
<None Include="..\..\plugins\include\amxconst.inc" />
|
||||||
<None Include="..\..\plugins\include\amxmisc.inc" />
|
<None Include="..\..\plugins\include\amxmisc.inc" />
|
||||||
<None Include="..\..\plugins\include\amxmodx.inc" />
|
<None Include="..\..\plugins\include\amxmodx.inc" />
|
||||||
|
<None Include="..\..\plugins\include\amxmodx_version.inc" />
|
||||||
<None Include="..\..\plugins\include\cellarray.inc" />
|
<None Include="..\..\plugins\include\cellarray.inc" />
|
||||||
<None Include="..\..\plugins\include\celltrie.inc" />
|
<None Include="..\..\plugins\include\celltrie.inc" />
|
||||||
<None Include="..\..\plugins\include\core.inc" />
|
<None Include="..\..\plugins\include\core.inc" />
|
||||||
|
@ -423,7 +424,6 @@
|
||||||
<None Include="..\..\plugins\include\messages.inc" />
|
<None Include="..\..\plugins\include\messages.inc" />
|
||||||
<None Include="..\..\plugins\include\sorting.inc" />
|
<None Include="..\..\plugins\include\sorting.inc" />
|
||||||
<None Include="..\..\plugins\include\string.inc" />
|
<None Include="..\..\plugins\include\string.inc" />
|
||||||
<None Include="..\..\plugins\include\svn_version.inc" />
|
|
||||||
<None Include="..\..\plugins\include\time.inc" />
|
<None Include="..\..\plugins\include\time.inc" />
|
||||||
<None Include="..\..\plugins\include\vault.inc" />
|
<None Include="..\..\plugins\include\vault.inc" />
|
||||||
<None Include="..\..\plugins\include\vector.inc" />
|
<None Include="..\..\plugins\include\vector.inc" />
|
||||||
|
|
|
@ -360,6 +360,9 @@
|
||||||
<None Include="..\..\plugins\include\amxmodx.inc">
|
<None Include="..\..\plugins\include\amxmodx.inc">
|
||||||
<Filter>Pawn Includes</Filter>
|
<Filter>Pawn Includes</Filter>
|
||||||
</None>
|
</None>
|
||||||
|
<None Include="..\..\plugins\include\amxmodx_version.inc">
|
||||||
|
<Filter>Pawn Includes</Filter>
|
||||||
|
</None>
|
||||||
<None Include="..\..\plugins\include\core.inc">
|
<None Include="..\..\plugins\include\core.inc">
|
||||||
<Filter>Pawn Includes</Filter>
|
<Filter>Pawn Includes</Filter>
|
||||||
</None>
|
</None>
|
||||||
|
@ -387,9 +390,6 @@
|
||||||
<None Include="..\..\plugins\include\string.inc">
|
<None Include="..\..\plugins\include\string.inc">
|
||||||
<Filter>Pawn Includes</Filter>
|
<Filter>Pawn Includes</Filter>
|
||||||
</None>
|
</None>
|
||||||
<None Include="..\..\plugins\include\svn_version.inc">
|
|
||||||
<Filter>Pawn Includes</Filter>
|
|
||||||
</None>
|
|
||||||
<None Include="..\..\plugins\include\time.inc">
|
<None Include="..\..\plugins\include\time.inc">
|
||||||
<Filter>Pawn Includes</Filter>
|
<Filter>Pawn Includes</Filter>
|
||||||
</None>
|
</None>
|
||||||
|
|
|
@ -230,6 +230,7 @@ Section "MainSection" SEC01
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\amxconst.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\amxconst.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\amxmisc.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\amxmisc.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\amxmodx.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\amxmodx.inc"
|
||||||
|
File "installer\files\base\addons\amxmodx\scripting\include\amxmodx_version.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\cellarray.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\cellarray.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\celltrie.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\celltrie.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\core.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\core.inc"
|
||||||
|
@ -271,7 +272,6 @@ Section "MainSection" SEC01
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\sorting.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\sorting.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\sqlx.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\sqlx.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\string.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\string.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\svn_version.inc"
|
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\tfcconst.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\tfcconst.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\tfcstats.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\tfcstats.inc"
|
||||||
File "installer\files\base\addons\amxmodx\scripting\include\tfcx.inc"
|
File "installer\files\base\addons\amxmodx\scripting\include\tfcx.inc"
|
||||||
|
@ -633,7 +633,6 @@ Section Uninstall
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\tfcstats.inc"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\tfcstats.inc"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\tfcconst.inc"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\tfcconst.inc"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\time.inc"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\time.inc"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\svn_version.inc"
|
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\string.inc"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\string.inc"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\sqlx.inc"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\sqlx.inc"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\sorting.inc"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\sorting.inc"
|
||||||
|
@ -678,6 +677,7 @@ Section Uninstall
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmod.inc"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmod.inc"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmisc.inc"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmisc.inc"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxconst.inc"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxconst.inc"
|
||||||
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\include\amxmodx_version.inc"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\timeleft.sma"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\timeleft.sma"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\telemenu.sma"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\telemenu.sma"
|
||||||
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\statscfg.sma"
|
Delete "$INSTDIR\files\base\addons\amxmodx\scripting\statscfg.sma"
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#endif
|
#endif
|
||||||
#define _amxconst_included
|
#define _amxconst_included
|
||||||
|
|
||||||
#include <svn_version>
|
#include <amxmodx_version>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the buffer size AMX Mod X uses internally to retrieve strings from plugins.
|
* This is the buffer size AMX Mod X uses internally to retrieve strings from plugins.
|
||||||
|
|
16
plugins/include/amxmodx_version.inc
Normal file
16
plugins/include/amxmodx_version.inc
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/* AMX Mod X constants
|
||||||
|
*
|
||||||
|
* by the AMX Mod X Development Team
|
||||||
|
* originally developed by OLO
|
||||||
|
*
|
||||||
|
* This file is provided as is (no warranties).
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined _amxmodx_version_included
|
||||||
|
#endinput
|
||||||
|
#endif
|
||||||
|
#define _amxmodx_version_included
|
||||||
|
|
||||||
|
#define AMXX_VERSION 1.83
|
||||||
|
#define AMXX_VERSION_NUM 183
|
||||||
|
stock const AMXX_VERSION_STR[] = "1.8.3-manual";
|
|
@ -1,19 +0,0 @@
|
||||||
/* AMX Mod X constants
|
|
||||||
*
|
|
||||||
* by the AMX Mod X Development Team
|
|
||||||
* originally developed by OLO
|
|
||||||
*
|
|
||||||
* This file is provided as is (no warranties).
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined _svnversion_included
|
|
||||||
#endinput
|
|
||||||
#endif
|
|
||||||
#define _svnversion_included
|
|
||||||
|
|
||||||
#tryinclude <amxmodx_version>
|
|
||||||
#if !defined _amxmodx_version_included
|
|
||||||
#define AMXX_VERSION 1.83
|
|
||||||
#define AMXX_VERSION_NUM 183
|
|
||||||
stock const AMXX_VERSION_STR[] = "1.8.3-dev";
|
|
||||||
#endif
|
|
|
@ -120,7 +120,7 @@ for amxx_file in AMXX.plugins:
|
||||||
|
|
||||||
# Copy the generated version .inc.
|
# Copy the generated version .inc.
|
||||||
for generated_header in AMXX.generated_headers:
|
for generated_header in AMXX.generated_headers:
|
||||||
if 'inc' in generated_header.path:
|
if 'amxmodx_version.inc' in generated_header.path:
|
||||||
builder.AddCopy(generated_header, folder_map['base/addons/amxmodx/scripting/include'])
|
builder.AddCopy(generated_header, folder_map['base/addons/amxmodx/scripting/include'])
|
||||||
break
|
break
|
||||||
|
|
||||||
|
@ -286,7 +286,6 @@ scripting_files = [
|
||||||
'include/newmenus.inc',
|
'include/newmenus.inc',
|
||||||
'include/sorting.inc',
|
'include/sorting.inc',
|
||||||
'include/sqlx.inc',
|
'include/sqlx.inc',
|
||||||
'include/svn_version.inc',
|
|
||||||
'include/time.inc',
|
'include/time.inc',
|
||||||
'include/vector.inc',
|
'include/vector.inc',
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,49 +1,51 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
trap "exit" INT
|
trap "exit" INT
|
||||||
|
|
||||||
ismac=0
|
|
||||||
iswin=0
|
|
||||||
|
|
||||||
archive_ext=tar.gz
|
|
||||||
decomp="tar zxf"
|
|
||||||
|
|
||||||
if [ `uname` = "Darwin" ]; then
|
|
||||||
ismac=1
|
|
||||||
elif [ `uname` != "Linux" ] && [ -n "${COMSPEC:+1}" ]; then
|
|
||||||
iswin=1
|
|
||||||
archive_ext=zip
|
|
||||||
decomp=unzip
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d "amxmodx" ]; then
|
if [ ! -d "amxmodx" ]; then
|
||||||
git clone https://github.com/alliedmodders/amxmodx.git
|
git clone https://github.com/alliedmodders/amxmodx.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $ismac -eq 1 ]; then
|
if [ "$1" != "--no-mysql" ]; then
|
||||||
mysqlver=mysql-5.5.28-osx10.5-x86
|
ismac=0
|
||||||
mysqlurl=http://cdn.mysql.com/archives/mysql-5.5/$mysqlver.$archive_ext
|
iswin=0
|
||||||
elif [ $iswin -eq 1 ]; then
|
|
||||||
mysqlver=mysql-noinstall-5.0.24a-win32
|
|
||||||
mysqlurl=http://cdn.mysql.com/archives/mysql-5.0/$mysqlver.$archive_ext
|
|
||||||
# The folder in the zip archive does not contain the substring "-noinstall", so strip it
|
|
||||||
mysqlver=${mysqlver/-noinstall}
|
|
||||||
else
|
|
||||||
mysqlver=mysql-5.6.15-linux-glibc2.5-i686
|
|
||||||
mysqlurl=http://cdn.mysql.com/archives/mysql-5.6/$mysqlver.$archive_ext
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d "mysql-5.0" ]; then
|
archive_ext=tar.gz
|
||||||
if [ `command -v wget` ]; then
|
decomp="tar zxf"
|
||||||
wget $mysqlurl -O mysql.$archive_ext
|
|
||||||
elif [ `command -v curl` ]; then
|
if [ `uname` = "Darwin" ]; then
|
||||||
curl -o mysql.$archive_ext $mysqlurl
|
ismac=1
|
||||||
else
|
elif [ `uname` != "Linux" ] && [ -n "${COMSPEC:+1}" ]; then
|
||||||
echo "Failed to locate wget or curl. Install one of these programs to download MySQL."
|
iswin=1
|
||||||
exit 1
|
archive_ext=zip
|
||||||
|
decomp=unzip
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $ismac -eq 1 ]; then
|
||||||
|
mysqlver=mysql-5.5.28-osx10.5-x86
|
||||||
|
mysqlurl=http://cdn.mysql.com/archives/mysql-5.5/$mysqlver.$archive_ext
|
||||||
|
elif [ $iswin -eq 1 ]; then
|
||||||
|
mysqlver=mysql-noinstall-5.0.24a-win32
|
||||||
|
mysqlurl=http://cdn.mysql.com/archives/mysql-5.0/$mysqlver.$archive_ext
|
||||||
|
# The folder in the zip archive does not contain the substring "-noinstall", so strip it
|
||||||
|
mysqlver=${mysqlver/-noinstall}
|
||||||
|
else
|
||||||
|
mysqlver=mysql-5.6.15-linux-glibc2.5-i686
|
||||||
|
mysqlurl=http://cdn.mysql.com/archives/mysql-5.6/$mysqlver.$archive_ext
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "mysql-5.0" ]; then
|
||||||
|
if [ `command -v wget` ]; then
|
||||||
|
wget $mysqlurl -O mysql.$archive_ext
|
||||||
|
elif [ `command -v curl` ]; then
|
||||||
|
curl -o mysql.$archive_ext $mysqlurl
|
||||||
|
else
|
||||||
|
echo "Failed to locate wget or curl. Install one of these programs to download MySQL."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
$decomp mysql.$archive_ext
|
||||||
|
mv $mysqlver mysql-5.0
|
||||||
|
rm mysql.$archive_ext
|
||||||
fi
|
fi
|
||||||
$decomp mysql.$archive_ext
|
|
||||||
mv $mysqlver mysql-5.0
|
|
||||||
rm mysql.$archive_ext
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
checkout ()
|
checkout ()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user