integrating awesomium with panda

This commit is contained in:
Redmond Urbino 2009-10-19 08:23:44 +00:00
parent bec4483a8d
commit 5394d01ed6
4 changed files with 36 additions and 1 deletions

View File

@ -748,6 +748,16 @@
#define ODE_LIBS $[if $[WINDOWS_PLATFORM],ode.lib,ode] #define ODE_LIBS $[if $[WINDOWS_PLATFORM],ode.lib,ode]
#defer HAVE_ODE $[libtest $[ODE_LPATH],$[ODE_LIBS]] #defer HAVE_ODE $[libtest $[ODE_LPATH],$[ODE_LIBS]]
// Is Awesomium installed, and where?
#define AWESOMIUM_IPATH
#define AWESOMIUM_LPATH
#if $[OSX_PLATFORM]
#define AWESOMIUM_LIBS
#else
#define AWESOMIUM_LIBS $[if $[WINDOWS_PLATFORM],awesomium.lib,awesomium]
#endif
#defer HAVE_AWESOMIUM $[libtest $[AWESOMIUM_LPATH],$[AWESOMIUM_LIBS]]
// Mozilla's so-called Gecko SDK, a.k.a. Xulrunner SDK, implements // Mozilla's so-called Gecko SDK, a.k.a. Xulrunner SDK, implements
// NPAPI, Mozilla's semi-standard API to build a web plugin for // NPAPI, Mozilla's semi-standard API to build a web plugin for
// Firefox and other Mozilla-based browsers. // Firefox and other Mozilla-based browsers.

View File

@ -183,6 +183,11 @@
#else #else
#print - Did not find ODE #print - Did not find ODE
#endif #endif
#if $[HAVE_AWESOMIUM]
#print + AWESOMIUM
#else
#print - Did not find AWESOMIUM
#endif
#if $[HAVE_MAYA] #if $[HAVE_MAYA]
#print + OpenMaya #print + OpenMaya
#else #else
@ -359,6 +364,9 @@ $[cdefine HAVE_SWSCALE]
/* Define if we have ODE installed and want to build for ODE. */ /* Define if we have ODE installed and want to build for ODE. */
$[cdefine HAVE_ODE] $[cdefine HAVE_ODE]
/* Define if we have AWESOMIUM installed and want to build for AWESOMIUM. */
$[cdefine HAVE_AWESOMIUM]
/* Define if we have Mesa installed and want to build mesadisplay. */ /* Define if we have Mesa installed and want to build mesadisplay. */
$[cdefine HAVE_MESA] $[cdefine HAVE_MESA]
$[cdefine MESA_MGL] $[cdefine MESA_MGL]

View File

@ -268,6 +268,12 @@
#set ODE_LIBS $[ODE_LIBS] #set ODE_LIBS $[ODE_LIBS]
#set HAVE_ODE $[HAVE_ODE] #set HAVE_ODE $[HAVE_ODE]
#set AWESOMIUM_IPATH $[unixfilename $[AWESOMIUM_IPATH]]
#set AWESOMIUM_LPATH $[unixfilename $[AWESOMIUM_LPATH]]
#set AWESOMIUM_LIBS $[AWESOMIUM_LIBS]
//#set AWESOMIUM_FRAMEWORK $[unixfilename $[AWESOMIUM_FRAMEWORK]]
#set HAVE_AWESOMIUM $[HAVE_AWESOMIUM]
#set NPAPI_IPATH $[unixfilename $[NPAPI_IPATH]] #set NPAPI_IPATH $[unixfilename $[NPAPI_IPATH]]
#set NPAPI_LPATH $[unixfilename $[NPAPI_LPATH]] #set NPAPI_LPATH $[unixfilename $[NPAPI_LPATH]]
#set NPAPI_LIBS $[NPAPI_LIBS] #set NPAPI_LIBS $[NPAPI_LIBS]
@ -380,5 +386,9 @@
#define GENPYCODE_LIBS $[GENPYCODE_LIBS] libpandaphysx #define GENPYCODE_LIBS $[GENPYCODE_LIBS] libpandaphysx
#endif #endif
#if $[HAVE_AWESOMIUM]
#define GENPYCODE_LIBS $[GENPYCODE_LIBS] libpandaawesomium
#endif
// Finally, include the system configure file. // Finally, include the system configure file.
#include $[THISDIRPREFIX]pptempl/System.pp #include $[THISDIRPREFIX]pptempl/System.pp

View File

@ -220,6 +220,13 @@
#define ode_libs $[ODE_LIBS] #define ode_libs $[ODE_LIBS]
#endif #endif
#if $[HAVE_AWESOMIUM]
#define awesomium_ipath $[wildcard $[AWESOMIUM_IPATH]]
#define awesomium_lpath $[wildcard $[AWESOMIUM_LPATH]]
#define awesomium_libs $[AWESOMIUM_LIBS]
#define awesomium_framework $[AWESOMIUM_FRAMEWORK]
#endif
#if $[HAVE_NPAPI] #if $[HAVE_NPAPI]
#define npapi_ipath $[wildcard $[NPAPI_IPATH]] #define npapi_ipath $[wildcard $[NPAPI_IPATH]]
#define npapi_lpath $[wildcard $[NPAPI_LPATH]] #define npapi_lpath $[wildcard $[NPAPI_LPATH]]