diff options
author | Hello=) <hello@themanaworld.org> | 2024-03-28 03:58:45 +0300 |
---|---|---|
committer | Hello=) <hello@themanaworld.org> | 2024-03-28 03:58:45 +0300 |
commit | db0b1da0060f5eb4b2af040c22ea9373d36970af (patch) | |
tree | dc2bdc0478c341bf4368fee4993c20e52f2d41c1 /src/nbproject | |
download | guildbot-db0b1da0060f5eb4b2af040c22ea9373d36970af.tar.gz guildbot-db0b1da0060f5eb4b2af040c22ea9373d36970af.tar.bz2 guildbot-db0b1da0060f5eb4b2af040c22ea9373d36970af.tar.xz guildbot-db0b1da0060f5eb4b2af040c22ea9373d36970af.zip |
Initial commit of Guild Bot, as seen in:
$ sha256sum guildsrc.zip
ef61469ab59ce3f5dd3289505e89bd5b84e3a82b89cda90d25ae3c41f7464beb guildsrc.zip
Verification shown its source 100% match to currently running version on TMWA.
The following changes were made VS version found in guildsrc.zip:
1) src/build and src/dist content completely removed.
Rationale: build-time artifacts; binaries contained login/password.
2) Executable flag (+x) removed from src/automation.cpp and src/main.cpp.
Rationale: executable CPP sources are weird thing. No change to file content.
3) src/main.cpp changes: 3 lines:
std::string main_username = "test";
std::string main_pw = "test";
std::string main_host = "127.0.0.1";
Rationale: avoid leaking real production credentials and ensure experimenters
dont hammer real TMW prod server by experiments.
Effort been made to preserve original file timestamps, etc. However toplevel src/
dir date adjusted to date of mentioned changes.
Diffstat (limited to 'src/nbproject')
-rw-r--r-- | src/nbproject/Makefile-Debug.mk | 175 | ||||
-rw-r--r-- | src/nbproject/Makefile-Release.mk | 176 | ||||
-rw-r--r-- | src/nbproject/Makefile-impl.mk | 123 | ||||
-rw-r--r-- | src/nbproject/Makefile-variables.mk | 24 | ||||
-rw-r--r-- | src/nbproject/Package-Debug.bash | 74 | ||||
-rw-r--r-- | src/nbproject/Package-Release.bash | 74 | ||||
-rw-r--r-- | src/nbproject/configurations.xml | 131 | ||||
-rw-r--r-- | src/nbproject/private/configurations.xml | 43 | ||||
-rw-r--r-- | src/nbproject/private/private.properties | 0 | ||||
-rw-r--r-- | src/nbproject/private/private.xml | 4 | ||||
-rw-r--r-- | src/nbproject/project.properties | 0 | ||||
-rw-r--r-- | src/nbproject/project.xml | 15 |
12 files changed, 839 insertions, 0 deletions
diff --git a/src/nbproject/Makefile-Debug.mk b/src/nbproject/Makefile-Debug.mk new file mode 100644 index 0000000..d5830e6 --- /dev/null +++ b/src/nbproject/Makefile-Debug.mk @@ -0,0 +1,175 @@ +# +# Generated Makefile - do not edit! +# +# Edit the Makefile in the project folder instead (../Makefile). Each target +# has a -pre and a -post target defined where you can add customized code. +# +# This makefile implements configuration specific macros and targets. + + +# Environment +MKDIR=mkdir +CP=cp +CCADMIN=CCadmin +RANLIB=ranlib +CC=gcc +CCC=g++ +CXX=g++ +FC=gfortran +AS=as + +# Macros +CND_PLATFORM=GNU-Linux-x86 +CND_CONF=Debug +CND_DISTDIR=dist + +# Include project Makefile +include Makefile + +# Object Directory +OBJECTDIR=build/${CND_CONF}/${CND_PLATFORM} + +# Object Files +OBJECTFILES= \ + ${OBJECTDIR}/utils/stringutils.o \ + ${OBJECTDIR}/net/maploginhandler.o \ + ${OBJECTDIR}/game.o \ + ${OBJECTDIR}/net/messageout.o \ + ${OBJECTDIR}/onlinelist.o \ + ${OBJECTDIR}/net/nethandler.o \ + ${OBJECTDIR}/main.o \ + ${OBJECTDIR}/net/messagein.o \ + ${OBJECTDIR}/automation.o \ + ${OBJECTDIR}/net/packet.o \ + ${OBJECTDIR}/net/charserverhandler.o \ + ${OBJECTDIR}/net/loginhandler.o \ + ${OBJECTDIR}/utils/specialfolder.o \ + ${OBJECTDIR}/net/network.o \ + ${OBJECTDIR}/net/chathandler.o \ + ${OBJECTDIR}/net/protocol.o \ + ${OBJECTDIR}/net/messagehandler.o + +# C Compiler Flags +CFLAGS= + +# CC Compiler Flags +CCFLAGS=-pg +CXXFLAGS=-pg + +# Fortran Compiler Flags +FFLAGS= + +# Assembler Flags +ASFLAGS= + +# Link Libraries and Options +LDLIBSOPTIONS=-L/usr/lib -lSDL -lSDL_net -lpthread -lcurl + +# Build Targets +.build-conf: ${BUILD_SUBPROJECTS} + ${MAKE} -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/guild + +dist/Debug/GNU-Linux-x86/guild: ${OBJECTFILES} + ${MKDIR} -p dist/Debug/GNU-Linux-x86 + ${LINK.cc} -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/guild ${OBJECTFILES} ${LDLIBSOPTIONS} + +${OBJECTDIR}/utils/stringutils.o: nbproject/Makefile-${CND_CONF}.mk utils/stringutils.cpp + ${MKDIR} -p ${OBJECTDIR}/utils + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/utils/stringutils.o utils/stringutils.cpp + +${OBJECTDIR}/net/maploginhandler.o: nbproject/Makefile-${CND_CONF}.mk net/maploginhandler.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/maploginhandler.o net/maploginhandler.cpp + +${OBJECTDIR}/game.o: nbproject/Makefile-${CND_CONF}.mk game.cpp + ${MKDIR} -p ${OBJECTDIR} + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/game.o game.cpp + +${OBJECTDIR}/net/messageout.o: nbproject/Makefile-${CND_CONF}.mk net/messageout.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/messageout.o net/messageout.cpp + +${OBJECTDIR}/onlinelist.o: nbproject/Makefile-${CND_CONF}.mk onlinelist.cpp + ${MKDIR} -p ${OBJECTDIR} + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/onlinelist.o onlinelist.cpp + +${OBJECTDIR}/net/nethandler.o: nbproject/Makefile-${CND_CONF}.mk net/nethandler.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/nethandler.o net/nethandler.cpp + +${OBJECTDIR}/main.o: nbproject/Makefile-${CND_CONF}.mk main.cpp + ${MKDIR} -p ${OBJECTDIR} + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/main.o main.cpp + +${OBJECTDIR}/net/messagein.o: nbproject/Makefile-${CND_CONF}.mk net/messagein.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/messagein.o net/messagein.cpp + +${OBJECTDIR}/automation.o: nbproject/Makefile-${CND_CONF}.mk automation.cpp + ${MKDIR} -p ${OBJECTDIR} + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/automation.o automation.cpp + +${OBJECTDIR}/net/packet.o: nbproject/Makefile-${CND_CONF}.mk net/packet.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/packet.o net/packet.cpp + +${OBJECTDIR}/net/charserverhandler.o: nbproject/Makefile-${CND_CONF}.mk net/charserverhandler.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/charserverhandler.o net/charserverhandler.cpp + +${OBJECTDIR}/net/loginhandler.o: nbproject/Makefile-${CND_CONF}.mk net/loginhandler.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/loginhandler.o net/loginhandler.cpp + +${OBJECTDIR}/utils/specialfolder.o: nbproject/Makefile-${CND_CONF}.mk utils/specialfolder.cpp + ${MKDIR} -p ${OBJECTDIR}/utils + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/utils/specialfolder.o utils/specialfolder.cpp + +${OBJECTDIR}/net/network.o: nbproject/Makefile-${CND_CONF}.mk net/network.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/network.o net/network.cpp + +${OBJECTDIR}/net/chathandler.o: nbproject/Makefile-${CND_CONF}.mk net/chathandler.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/chathandler.o net/chathandler.cpp + +${OBJECTDIR}/net/protocol.o: nbproject/Makefile-${CND_CONF}.mk net/protocol.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/protocol.o net/protocol.cpp + +${OBJECTDIR}/net/messagehandler.o: nbproject/Makefile-${CND_CONF}.mk net/messagehandler.cpp + ${MKDIR} -p ${OBJECTDIR}/net + ${RM} $@.d + $(COMPILE.cc) -g -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/messagehandler.o net/messagehandler.cpp + +# Subprojects +.build-subprojects: + +# Clean Targets +.clean-conf: ${CLEAN_SUBPROJECTS} + ${RM} -r build/Debug + ${RM} dist/Debug/GNU-Linux-x86/guild + +# Subprojects +.clean-subprojects: + +# Enable dependency checking +.dep.inc: .depcheck-impl + +include .dep.inc diff --git a/src/nbproject/Makefile-Release.mk b/src/nbproject/Makefile-Release.mk new file mode 100644 index 0000000..90d16af --- /dev/null +++ b/src/nbproject/Makefile-Release.mk @@ -0,0 +1,176 @@ +# +# Generated Makefile - do not edit! +# +# Edit the Makefile in the project folder instead (../Makefile). Each target +# has a -pre and a -post target defined where you can add customized code. +# +# This makefile implements configuration specific macros and targets. + + +# Environment +MKDIR=mkdir +CP=cp +CCADMIN=CCadmin +RANLIB=ranlib +CC=gcc +CCC=g++ +CXX=g++ +FC=gfortran +AS=as + +# Macros +CND_PLATFORM=GNU-Linux-x86 +CND_CONF=Release +CND_DISTDIR=dist + +# Include project Makefile +include Makefile + +# Object Directory +OBJECTDIR=build/${CND_CONF}/${CND_PLATFORM} + +# Object Files +OBJECTFILES= \ + ${OBJECTDIR}/utils/stringutils.o \ + ${OBJECTDIR}/net/maploginhandler.o \ + ${OBJECTDIR}/game.o \ + ${OBJECTDIR}/net/messageout.o \ + ${OBJECTDIR}/onlinelist.o \ + ${OBJECTDIR}/net/nethandler.o \ + ${OBJECTDIR}/main.o \ + ${OBJECTDIR}/net/messagein.o \ + ${OBJECTDIR}/automation.o \ + ${OBJECTDIR}/net/packet.o \ + ${OBJECTDIR}/net/charserverhandler.o \ + ${OBJECTDIR}/net/loginhandler.o \ + ${OBJECTDIR}/utils/specialfolder.o \ + ${OBJECTDIR}/net/network.o \ + ${OBJECTDIR}/net/chathandler.o \ + ${OBJECTDIR}/net/protocol.o \ + ${OBJECTDIR}/net/messagehandler.o + +# C Compiler Flags +CFLAGS= + +# CC Compiler Flags +CCFLAGS=-march=i686 +CXXFLAGS=-march=i686 + +# Fortran Compiler Flags +FFLAGS= + +# Assembler Flags +ASFLAGS= + +# Link Libraries and Options +LDLIBSOPTIONS=-lSDL -lSDL_net -lcurl -lpthread + +# Build Targets +.build-conf: ${BUILD_SUBPROJECTS} + ${MAKE} -f nbproject/Makefile-Release.mk dist/Release/GNU-Linux-x86/guild + +${OBJECTDIR}/utils/stringutils.o: nbproject/Makefile-${CND_CONF}.mk utils/stringutils.cpp + mkdir -p ${OBJECTDIR}/utils + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/utils/stringutils.o utils/stringutils.cpp + + +${OBJECTDIR}/net/maploginhandler.o: nbproject/Makefile-${CND_CONF}.mk net/maploginhandler.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/maploginhandler.o net/maploginhandler.cpp + +${OBJECTDIR}/game.o: nbproject/Makefile-${CND_CONF}.mk game.cpp + mkdir -p ${OBJECTDIR} + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/game.o game.cpp + +${OBJECTDIR}/net/messageout.o: nbproject/Makefile-${CND_CONF}.mk net/messageout.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/messageout.o net/messageout.cpp + +${OBJECTDIR}/onlinelist.o: nbproject/Makefile-${CND_CONF}.mk onlinelist.cpp + mkdir -p ${OBJECTDIR} + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -I/usr/local/include -MMD -MP -MF $@.d -o ${OBJECTDIR}/onlinelist.o onlinelist.cpp + +${OBJECTDIR}/net/nethandler.o: nbproject/Makefile-${CND_CONF}.mk net/nethandler.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/nethandler.o net/nethandler.cpp + +${OBJECTDIR}/main.o: nbproject/Makefile-${CND_CONF}.mk main.cpp + mkdir -p ${OBJECTDIR} + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/main.o main.cpp + +${OBJECTDIR}/net/messagein.o: nbproject/Makefile-${CND_CONF}.mk net/messagein.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/messagein.o net/messagein.cpp + +${OBJECTDIR}/automation.o: nbproject/Makefile-${CND_CONF}.mk automation.cpp + mkdir -p ${OBJECTDIR} + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/automation.o automation.cpp + +${OBJECTDIR}/net/packet.o: nbproject/Makefile-${CND_CONF}.mk net/packet.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/packet.o net/packet.cpp + +${OBJECTDIR}/net/charserverhandler.o: nbproject/Makefile-${CND_CONF}.mk net/charserverhandler.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/charserverhandler.o net/charserverhandler.cpp + +${OBJECTDIR}/net/loginhandler.o: nbproject/Makefile-${CND_CONF}.mk net/loginhandler.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/loginhandler.o net/loginhandler.cpp + +${OBJECTDIR}/utils/specialfolder.o: nbproject/Makefile-${CND_CONF}.mk utils/specialfolder.cpp + mkdir -p ${OBJECTDIR}/utils + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/utils/specialfolder.o utils/specialfolder.cpp + +${OBJECTDIR}/net/network.o: nbproject/Makefile-${CND_CONF}.mk net/network.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/network.o net/network.cpp + +${OBJECTDIR}/net/chathandler.o: nbproject/Makefile-${CND_CONF}.mk net/chathandler.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/chathandler.o net/chathandler.cpp + +${OBJECTDIR}/net/protocol.o: nbproject/Makefile-${CND_CONF}.mk net/protocol.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/protocol.o net/protocol.cpp + +${OBJECTDIR}/net/messagehandler.o: nbproject/Makefile-${CND_CONF}.mk net/messagehandler.cpp + mkdir -p ${OBJECTDIR}/net + rm -f $@.d + g++ -c -O2 -s -I/usr/include/SDL -MMD -MP -MF $@.d -o ${OBJECTDIR}/net/messagehandler.o net/messagehandler.cpp + +dist/Release/GNU-Linux-x86/guild: ${OBJECTFILES} + mkdir -p dist/Release/GNU-Linux-x86 + ${LINK.cc} -L/usr/local/lib -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/guild ${OBJECTFILES} ${LDLIBSOPTIONS} + +# Subprojects +.build-subprojects: + +# Clean Targets +.clean-conf: ${CLEAN_SUBPROJECTS} + rm -f -r build/Release + rm -f dist/Release/GNU-Linux-x86/guild + +# Subprojects +.clean-subprojects: + +# Enable dependency checking +.dep.inc: .depcheck-impl + +include .dep.inc diff --git a/src/nbproject/Makefile-impl.mk b/src/nbproject/Makefile-impl.mk new file mode 100644 index 0000000..8ffd6a4 --- /dev/null +++ b/src/nbproject/Makefile-impl.mk @@ -0,0 +1,123 @@ +# +# Generated Makefile - do not edit! +# +# Edit the Makefile in the project folder instead (../Makefile). Each target +# has a pre- and a post- target defined where you can add customization code. +# +# This makefile implements macros and targets common to all configurations. +# +# NOCDDL + + +# Building and Cleaning subprojects are done by default, but can be controlled with the SUB +# macro. If SUB=no, subprojects will not be built or cleaned. The following macro +# statements set BUILD_SUB-CONF and CLEAN_SUB-CONF to .build-reqprojects-conf +# and .clean-reqprojects-conf unless SUB has the value 'no' +SUB_no=NO +SUBPROJECTS=${SUB_${SUB}} +BUILD_SUBPROJECTS_=.build-subprojects +BUILD_SUBPROJECTS_NO= +BUILD_SUBPROJECTS=${BUILD_SUBPROJECTS_${SUBPROJECTS}} +CLEAN_SUBPROJECTS_=.clean-subprojects +CLEAN_SUBPROJECTS_NO= +CLEAN_SUBPROJECTS=${CLEAN_SUBPROJECTS_${SUBPROJECTS}} + + +# Project Name +PROJECTNAME=guild + +# Active Configuration +DEFAULTCONF=Debug +CONF=${DEFAULTCONF} + +# All Configurations +ALLCONFS=Debug Release + + +# build +.build-impl: .build-pre .validate-impl .depcheck-impl + @#echo "=> Running $@... Configuration=$(CONF)" + ${MAKE} -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .build-conf + + +# clean +.clean-impl: .clean-pre .validate-impl .depcheck-impl + @#echo "=> Running $@... Configuration=$(CONF)" + ${MAKE} -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .clean-conf + + +# clobber +.clobber-impl: .clobber-pre .depcheck-impl + @#echo "=> Running $@..." + for CONF in ${ALLCONFS}; \ + do \ + ${MAKE} -f nbproject/Makefile-$${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .clean-conf; \ + done + +# all +.all-impl: .all-pre .depcheck-impl + @#echo "=> Running $@..." + for CONF in ${ALLCONFS}; \ + do \ + ${MAKE} -f nbproject/Makefile-$${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .build-conf; \ + done + +# dependency checking support +.depcheck-impl: + @echo "# This code depends on make tool being used" >.dep.inc + @if [ -n "${MAKE_VERSION}" ]; then \ + echo "DEPFILES=\$$(wildcard \$$(addsuffix .d, \$${OBJECTFILES}))" >>.dep.inc; \ + echo "ifneq (\$${DEPFILES},)" >>.dep.inc; \ + echo "include \$${DEPFILES}" >>.dep.inc; \ + echo "endif" >>.dep.inc; \ + else \ + echo ".KEEP_STATE:" >>.dep.inc; \ + echo ".KEEP_STATE_FILE:.make.state.\$${CONF}" >>.dep.inc; \ + fi + +# configuration validation +.validate-impl: + @if [ ! -f nbproject/Makefile-${CONF}.mk ]; \ + then \ + echo ""; \ + echo "Error: can not find the makefile for configuration '${CONF}' in project ${PROJECTNAME}"; \ + echo "See 'make help' for details."; \ + echo "Current directory: " `pwd`; \ + echo ""; \ + fi + @if [ ! -f nbproject/Makefile-${CONF}.mk ]; \ + then \ + exit 1; \ + fi + + +# help +.help-impl: .help-pre + @echo "This makefile supports the following configurations:" + @echo " ${ALLCONFS}" + @echo "" + @echo "and the following targets:" + @echo " build (default target)" + @echo " clean" + @echo " clobber" + @echo " all" + @echo " help" + @echo "" + @echo "Makefile Usage:" + @echo " make [CONF=<CONFIGURATION>] [SUB=no] build" + @echo " make [CONF=<CONFIGURATION>] [SUB=no] clean" + @echo " make [SUB=no] clobber" + @echo " make [SUB=no] all" + @echo " make help" + @echo "" + @echo "Target 'build' will build a specific configuration and, unless 'SUB=no'," + @echo " also build subprojects." + @echo "Target 'clean' will clean a specific configuration and, unless 'SUB=no'," + @echo " also clean subprojects." + @echo "Target 'clobber' will remove all built files from all configurations and," + @echo " unless 'SUB=no', also from subprojects." + @echo "Target 'all' will will build all configurations and, unless 'SUB=no'," + @echo " also build subprojects." + @echo "Target 'help' prints this message." + @echo "" + diff --git a/src/nbproject/Makefile-variables.mk b/src/nbproject/Makefile-variables.mk new file mode 100644 index 0000000..1d1cd46 --- /dev/null +++ b/src/nbproject/Makefile-variables.mk @@ -0,0 +1,24 @@ +# +# Generated - do not edit! +# +# NOCDDL +# +CND_BASEDIR=`pwd` +CND_BUILDDIR=build +CND_DISTDIR=dist +# Debug configuration +CND_PLATFORM_Debug=GNU-Linux-x86 +CND_ARTIFACT_DIR_Debug=dist/Debug/GNU-Linux-x86 +CND_ARTIFACT_NAME_Debug=guild +CND_ARTIFACT_PATH_Debug=dist/Debug/GNU-Linux-x86/guild +CND_PACKAGE_DIR_Debug=dist/Debug/GNU-Linux-x86/package +CND_PACKAGE_NAME_Debug=guild.tar +CND_PACKAGE_PATH_Debug=dist/Debug/GNU-Linux-x86/package/guild.tar +# Release configuration +CND_PLATFORM_Release=GNU-Linux-x86 +CND_ARTIFACT_DIR_Release=dist/Release/GNU-Linux-x86 +CND_ARTIFACT_NAME_Release=guild +CND_ARTIFACT_PATH_Release=dist/Release/GNU-Linux-x86/guild +CND_PACKAGE_DIR_Release=dist/Release/GNU-Linux-x86/package +CND_PACKAGE_NAME_Release=guild.tar +CND_PACKAGE_PATH_Release=dist/Release/GNU-Linux-x86/package/guild.tar diff --git a/src/nbproject/Package-Debug.bash b/src/nbproject/Package-Debug.bash new file mode 100644 index 0000000..361cd54 --- /dev/null +++ b/src/nbproject/Package-Debug.bash @@ -0,0 +1,74 @@ +#!/bin/bash -x + +# +# Generated - do not edit! +# + +# Macros +TOP=`pwd` +CND_PLATFORM=GNU-Linux-x86 +CND_CONF=Debug +CND_DISTDIR=dist +TMPDIR=build/${CND_CONF}/${CND_PLATFORM}/tmp-packaging +TMPDIRNAME=tmp-packaging +OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/guild +OUTPUT_BASENAME=guild +PACKAGE_TOP_DIR=guild/ + +# Functions +function checkReturnCode +{ + rc=$? + if [ $rc != 0 ] + then + exit $rc + fi +} +function makeDirectory +# $1 directory path +# $2 permission (optional) +{ + mkdir -p "$1" + checkReturnCode + if [ "$2" != "" ] + then + chmod $2 "$1" + checkReturnCode + fi +} +function copyFileToTmpDir +# $1 from-file path +# $2 to-file path +# $3 permission +{ + cp "$1" "$2" + checkReturnCode + if [ "$3" != "" ] + then + chmod $3 "$2" + checkReturnCode + fi +} + +# Setup +cd "${TOP}" +mkdir -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package +rm -rf ${TMPDIR} +mkdir -p ${TMPDIR} + +# Copy files and create directories and links +cd "${TOP}" +makeDirectory ${TMPDIR}/guild/bin +copyFileToTmpDir "${OUTPUT_PATH}" "${TMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755 + + +# Generate tar file +cd "${TOP}" +rm -f ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/guild.tar +cd ${TMPDIR} +tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/guild.tar * +checkReturnCode + +# Cleanup +cd "${TOP}" +rm -rf ${TMPDIR} diff --git a/src/nbproject/Package-Release.bash b/src/nbproject/Package-Release.bash new file mode 100644 index 0000000..359438e --- /dev/null +++ b/src/nbproject/Package-Release.bash @@ -0,0 +1,74 @@ +#!/bin/bash -x + +# +# Generated - do not edit! +# + +# Macros +TOP=`pwd` +CND_PLATFORM=GNU-Linux-x86 +CND_CONF=Release +CND_DISTDIR=dist +TMPDIR=build/${CND_CONF}/${CND_PLATFORM}/tmp-packaging +TMPDIRNAME=tmp-packaging +OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/guild +OUTPUT_BASENAME=guild +PACKAGE_TOP_DIR=guild/ + +# Functions +function checkReturnCode +{ + rc=$? + if [ $rc != 0 ] + then + exit $rc + fi +} +function makeDirectory +# $1 directory path +# $2 permission (optional) +{ + mkdir -p "$1" + checkReturnCode + if [ "$2" != "" ] + then + chmod $2 "$1" + checkReturnCode + fi +} +function copyFileToTmpDir +# $1 from-file path +# $2 to-file path +# $3 permission +{ + cp "$1" "$2" + checkReturnCode + if [ "$3" != "" ] + then + chmod $3 "$2" + checkReturnCode + fi +} + +# Setup +cd "${TOP}" +mkdir -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package +rm -rf ${TMPDIR} +mkdir -p ${TMPDIR} + +# Copy files and create directories and links +cd "${TOP}" +makeDirectory ${TMPDIR}/guild/bin +copyFileToTmpDir "${OUTPUT_PATH}" "${TMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755 + + +# Generate tar file +cd "${TOP}" +rm -f ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/guild.tar +cd ${TMPDIR} +tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/guild.tar * +checkReturnCode + +# Cleanup +cd "${TOP}" +rm -rf ${TMPDIR} diff --git a/src/nbproject/configurations.xml b/src/nbproject/configurations.xml new file mode 100644 index 0000000..d276a91 --- /dev/null +++ b/src/nbproject/configurations.xml @@ -0,0 +1,131 @@ +<?xml version="1.0" encoding="UTF-8"?> +<configurationDescriptor version="62"> + <logicalFolder name="root" displayName="root" projectFiles="true"> + <logicalFolder name="HeaderFiles" + displayName="Header Files" + projectFiles="true"> + <logicalFolder name="net" displayName="net" projectFiles="true"> + <itemPath>net/charserverhandler.h</itemPath> + <itemPath>net/chathandler.h</itemPath> + <itemPath>net/loginhandler.h</itemPath> + <itemPath>net/maploginhandler.h</itemPath> + <itemPath>net/messagehandler.h</itemPath> + <itemPath>net/messagein.h</itemPath> + <itemPath>net/messageout.h</itemPath> + <itemPath>net/nethandler.h</itemPath> + <itemPath>net/network.h</itemPath> + <itemPath>net/packet.h</itemPath> + <itemPath>net/protocol.h</itemPath> + </logicalFolder> + <logicalFolder name="utils" displayName="utils" projectFiles="true"> + <itemPath>utils/mutex.h</itemPath> + <itemPath>utils/specialfolder.h</itemPath> + <itemPath>utils/stringutils.h</itemPath> + </logicalFolder> + <itemPath>automation.h</itemPath> + <itemPath>game.h</itemPath> + <itemPath>logindata.h</itemPath> + <itemPath>main.h</itemPath> + <itemPath>onlinelist.h</itemPath> + <itemPath>serverinfo.h</itemPath> + </logicalFolder> + <logicalFolder name="ResourceFiles" + displayName="Resource Files" + projectFiles="true"> + </logicalFolder> + <logicalFolder name="SourceFiles" + displayName="Source Files" + projectFiles="true"> + <logicalFolder name="net" displayName="net" projectFiles="true"> + <itemPath>net/charserverhandler.cpp</itemPath> + <itemPath>net/chathandler.cpp</itemPath> + <itemPath>net/loginhandler.cpp</itemPath> + <itemPath>net/maploginhandler.cpp</itemPath> + <itemPath>net/messagehandler.cpp</itemPath> + <itemPath>net/messagein.cpp</itemPath> + <itemPath>net/messageout.cpp</itemPath> + <itemPath>net/nethandler.cpp</itemPath> + <itemPath>net/network.cpp</itemPath> + <itemPath>net/packet.cpp</itemPath> + <itemPath>net/protocol.cpp</itemPath> + </logicalFolder> + <logicalFolder name="utils" displayName="utils" projectFiles="true"> + <itemPath>utils/specialfolder.cpp</itemPath> + <itemPath>utils/stringutils.cpp</itemPath> + </logicalFolder> + <itemPath>automation.cpp</itemPath> + <itemPath>game.cpp</itemPath> + <itemPath>main.cpp</itemPath> + <itemPath>onlinelist.cpp</itemPath> + </logicalFolder> + <logicalFolder name="ExternalFiles" + displayName="Important Files" + projectFiles="false"> + <itemPath>Makefile</itemPath> + </logicalFolder> + </logicalFolder> + <sourceRootList> + <Elem>net</Elem> + <Elem>utils</Elem> + </sourceRootList> + <projectmakefile>Makefile</projectmakefile> + <confs> + <conf name="Debug" type="1"> + <toolsSet> + <developmentServer>localhost</developmentServer> + <compilerSet>GNU|GNU</compilerSet> + <platform>2</platform> + </toolsSet> + <compileType> + <ccTool> + <incDir> + <pElem>/usr/include/SDL</pElem> + </incDir> + <commandLine>-pg</commandLine> + </ccTool> + <linkerTool> + <linkerAddLib> + <pElem>/usr/lib</pElem> + </linkerAddLib> + <linkerLibItems> + <linkerLibLibItem>SDL</linkerLibLibItem> + <linkerLibLibItem>SDL_net</linkerLibLibItem> + <linkerLibLibItem>pthread</linkerLibLibItem> + <linkerLibLibItem>curl</linkerLibLibItem> + </linkerLibItems> + </linkerTool> + </compileType> + </conf> + <conf name="Release" type="1"> + <toolsSet> + <developmentServer>localhost</developmentServer> + <compilerSet>GNU|GNU</compilerSet> + <platform>2</platform> + </toolsSet> + <compileType> + <cTool> + <developmentMode>5</developmentMode> + </cTool> + <ccTool> + <developmentMode>5</developmentMode> + <stripSymbols>true</stripSymbols> + <commandlineTool>g++</commandlineTool> + <incDir> + <pElem>/usr/include/SDL</pElem> + </incDir> + <commandLine>-march=i686</commandLine> + </ccTool> + <fortranCompilerTool> + <developmentMode>5</developmentMode> + </fortranCompilerTool> + <linkerTool> + <linkerLibItems> + <linkerLibLibItem>SDL</linkerLibLibItem> + <linkerLibLibItem>SDL_net</linkerLibLibItem> + <linkerLibLibItem>curl</linkerLibLibItem> + </linkerLibItems> + </linkerTool> + </compileType> + </conf> + </confs> +</configurationDescriptor> diff --git a/src/nbproject/private/configurations.xml b/src/nbproject/private/configurations.xml new file mode 100644 index 0000000..ef9712c --- /dev/null +++ b/src/nbproject/private/configurations.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<configurationDescriptor version="62"> + <projectmakefile>Makefile</projectmakefile> + <defaultConf>0</defaultConf> + <confs> + <conf name="Debug" type="1"> + <gdbdebugger version="2"> + <gdb_command>gdb</gdb_command> + <array_repeat_threshold>10</array_repeat_threshold> + </gdbdebugger> + <gizmo_options version="3"> + </gizmo_options> + <runprofile version="6"> + <args></args> + <rundir></rundir> + <buildfirst>true</buildfirst> + <console-type>0</console-type> + <terminal-type>0</terminal-type> + <remove-instrumentation>0</remove-instrumentation> + <environment> + </environment> + </runprofile> + </conf> + <conf name="Release" type="1"> + <gdbdebugger version="2"> + <gdb_command>gdb</gdb_command> + <array_repeat_threshold>10</array_repeat_threshold> + </gdbdebugger> + <gizmo_options version="3"> + </gizmo_options> + <runprofile version="6"> + <args></args> + <rundir></rundir> + <buildfirst>true</buildfirst> + <console-type>0</console-type> + <terminal-type>0</terminal-type> + <remove-instrumentation>0</remove-instrumentation> + <environment> + </environment> + </runprofile> + </conf> + </confs> +</configurationDescriptor> diff --git a/src/nbproject/private/private.properties b/src/nbproject/private/private.properties new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/nbproject/private/private.properties diff --git a/src/nbproject/private/private.xml b/src/nbproject/private/private.xml new file mode 100644 index 0000000..c1f155a --- /dev/null +++ b/src/nbproject/private/private.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project-private xmlns="http://www.netbeans.org/ns/project-private/1"> + <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/> +</project-private> diff --git a/src/nbproject/project.properties b/src/nbproject/project.properties new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/nbproject/project.properties diff --git a/src/nbproject/project.xml b/src/nbproject/project.xml new file mode 100644 index 0000000..f6e48a3 --- /dev/null +++ b/src/nbproject/project.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://www.netbeans.org/ns/project/1"> + <type>org.netbeans.modules.cnd.makeproject</type> + <configuration> + <data xmlns="http://www.netbeans.org/ns/make-project/1"> + <name>guild</name> + <make-project-type>0</make-project-type> + <c-extensions/> + <cpp-extensions>cpp</cpp-extensions> + <header-extensions>h</header-extensions> + <sourceEncoding>UTF-8</sourceEncoding> + <make-dep-projects/> + </data> + </configuration> +</project> |