*pheight = (float)instance->height / instance->texHeight;\r
}\r
\r
+#if defined(WIN64)\r
+# define XULRUNNER_DIR_SUFFIX "win64"\r
+#elif defined(WIN32)\r
+# define XULRUNNER_DIR_SUFFIX "win32"\r
+#elif defined(DP_ARCH) && defined(DP_MACHINE)\r
+# define XULRUNNER_DIR_SUFFIX DP_ARCH "-" DP_MACHINE\r
+#endif\r
\r
clgecko_t * CL_Gecko_CreateBrowser( const char *name ) {\r
clgecko_t *instance;\r
Con_Printf( "CL_Gecko_CreateBrowser: setting up gecko embedding\n" );\r
}\r
\r
- options = osgk_embedding_options_create();\r
+ options = osgk_embedding_options_create();
+ #ifdef XULRUNNER_DIR_SUFFIX
+ osgk_embedding_options_add_search_path( options, "./xulrunner-" XULRUNNER_DIR_SUFFIX "/" );\r
+ #endif\r
osgk_embedding_options_add_search_path( options, "./xulrunner/" );\r
dpsnprintf (profile_path, sizeof (profile_path), "%s/xulrunner_profile/", fs_gamedir);\r
osgk_embedding_options_set_profile_dir( options, profile_path, 0 );\r
# Compilation
CFLAGS_COMMON=$(CFLAGS_MAKEDEP) $(CFLAGS_PRELOAD) $(CFLAGS_FS) -Wall -Wsign-compare -Wdeclaration-after-statement
+ifdef DP_ARCH
+CFLAGS_COMMON+=-DDP_ARCH=\\\"$(DP_ARCH)\\\"
+endif
+ifdef DP_MACHINE
+CFLAGS_COMMON+=-DDP_MACHINE=\\\"$(DP_MACHINE)\\\"
+endif
CFLAGS_DEBUG=-ggdb
CFLAGS_PROFILE=-g -pg -ggdb
CFLAGS_RELEASE=