# OPTIONS = -O2 -Wall
# OPTIONS = -O2
+ifdef BUILD_TEST # test build
+OPTIONS := $(OPTIONS) -DTESTING
+endif
+
ifdef BUILD_DIST # distribution build
SYS_LDFLAGS := $(shell echo $(SYS_LDFLAGS) | \
sed -e "s%-rpath,[^ ]*%-rpath,'\$$ORIGIN/lib'%")
},
{
TYPE_SWITCH,
- &setup.use_api_server, "use_api_server"
+ &setup.use_api_server, TEST_PREFIX "use_api_server"
},
{
TYPE_STRING,
- &setup.api_server_hostname, "api_server_hostname"
+ &setup.api_server_hostname, TEST_PREFIX "api_server_hostname"
},
{
TYPE_STRING,
- &setup.api_server_password, "api_server_password"
+ &setup.api_server_password, TEST_PREFIX "api_server_password"
},
{
TYPE_SWITCH,
- &setup.ask_for_uploading_tapes, "ask_for_uploading_tapes"
+ &setup.ask_for_uploading_tapes, TEST_PREFIX "ask_for_uploading_tapes"
},
{
TYPE_SWITCH,
- &setup.provide_uploading_tapes, "provide_uploading_tapes"
+ &setup.provide_uploading_tapes, TEST_PREFIX "provide_uploading_tapes"
},
{
TYPE_STRING,
#define API_SERVER_URI_GET "/api/scores/get"
#define API_SERVER_URI_RENAME "/api/players/rename"
+#if defined(TESTING)
+#undef API_SERVER_HOSTNAME
+#define API_SERVER_HOSTNAME "api-test.artsoft.org"
+#define TEST_PREFIX "test."
+#else
+#define TEST_PREFIX ""
+#endif
+
// values for touch control
#define TOUCH_CONTROL_OFF "off"
#define TOUCH_CONTROL_VIRTUAL_BUTTONS "virtual_buttons"