Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ INCLUDE_DIRS =\
$(SRC_DIRS)\
$(CPPUTEST_HOME)/include

PRDUCT_MAIN_OBJ = src/main.o
PRODUCT_MAIN_OBJ = src/main.o

include $(CPPUTEST_HOME)/build/MakefileWorker.mk

Expand All @@ -40,8 +40,8 @@ $(EVALUATOR_LIB) :
.PHONY: product
product : $(PRODUCT)

$(PRODUCT): $(TARGET_LIB) $(PRDUCT_MAIN_OBJ) $(EVALUATOR_LIB) $(CPPUTEST_LIB)
$(PRODUCT): $(TARGET_LIB) $(PRODUCT_MAIN_OBJ) $(EVALUATOR_LIB) $(CPPUTEST_LIB)
@echo 'Building target: $@'
$(CC) -o $@ -g $^ $(LD_LIBRARIES)
@echo 'Running the game. Go to your browser to play at http://localhst:8888'
./$(PRODUCT)
g++ -o $@ -g $(PRODUCT_MAIN_OBJ) $(TARGET_LIB) $(EVALUATOR_LIB) $(CPPUTEST_LIB) $(LD_LIBRARIES)
@echo 'Build completed. To run the game, execute: ./$(PRODUCT)'
@echo 'Then go to your browser to play at http://localhost:8888'
2 changes: 1 addition & 1 deletion cpputest
Submodule cpputest updated 468 files
3 changes: 3 additions & 0 deletions src/html_ui/html_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include "agent.h"
#include "ui_agent.h"

// Define the global function pointer
void (*shutdown_server)(void) = NULL;

static int ui_adaptor_pool_add_ui_adaptor(agent_t * ui);
static agent_t * ui_adaptor_pool_get_ui_adaptor_by_id(int id);
static void ui_adaptor_pool_remove(int id);
Expand Down
2 changes: 1 addition & 1 deletion src/html_ui/html_game.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
#define HTML_GAME_H_

int execute_game_command(const char * command, const char *parameters, char * buffer, int buffer_size);
void (*shutdown_server)(void);
extern void (*shutdown_server)(void);

#endif /* HTML_GAME_H_ */
Binary file added src/main.o
Binary file not shown.