[Hdrflow-svn] SF.net SVN: hdrflow: [251] trunk/lib/extras
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-08-18 14:21:11
|
Revision: 251 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=251&view=rev Author: glslang Date: 2007-08-18 07:21:09 -0700 (Sat, 18 Aug 2007) Log Message: ----------- +build updates Modified Paths: -------------- trunk/lib/extras/configure.ac trunk/lib/extras/src/imf/Makefile.am Added Paths: ----------- trunk/lib/extras/m4/maya.m4 Modified: trunk/lib/extras/configure.ac =================================================================== --- trunk/lib/extras/configure.ac 2007-08-18 12:54:38 UTC (rev 250) +++ trunk/lib/extras/configure.ac 2007-08-18 14:21:09 UTC (rev 251) @@ -138,6 +138,8 @@ AC_CHECK_QUICKTIME( ) +AC_CHECK_MAYA( ) + dnl include paths INCLUDES='-I$(top_srcdir)/src' AC_SUBST(INCLUDES) Added: trunk/lib/extras/m4/maya.m4 =================================================================== --- trunk/lib/extras/m4/maya.m4 (rev 0) +++ trunk/lib/extras/m4/maya.m4 2007-08-18 14:21:09 UTC (rev 251) @@ -0,0 +1,52 @@ + +# +# +# + +AC_DEFUN([AC_CHECK_MAYA],[ + AC_ARG_WITH(mayadir, AC_HELP_STRING([--with-mayadir], [Maya directory]),,with_mayadir="${MAYA_DIRECTORY}") + + MAYA_CXXFLAGS="-I${with_mayadir}/devkit/include -D_BOOL -DREQUIRE_IOSTREAM" + MAYA_LDFLAGS="-L${with_mayadir}/Maya.app/Contents/MacOS" + MAYA_LIBS="" + + case $host in + *-apple-darwin*) + MAYA_CXXFLAGS="${MAYA_CXXFLAGS} -DMAC_PLUGIN" + esac + + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS ${MAYA_CXXFLAGS}" + + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS ${MAYA_CXXFLAGS}" + + AC_LANG(C++) + AC_CHECK_HEADER(maya/IMF.h, + [ac_have_maya="yes" AC_DEFINE(HAVE_MAYA,1,[Define this if you have Maya devkit])], + [AC_MSG_WARN([*** Maya development headers not available. Please check your Maya installation ***])]) + + if test x$ac_have_maya = "xyes"; then + case $host in + *-apple-darwin*) + MAYA_LDFLAGS="${MAYA_LDFLAGS} -Wl,-executable_path,${with_mayadir}/Maya.app/Contents/MacOS" + MAYA_LIBS="-Xlinker -lOpenMaya -Xlinker -lOpenMayaUI -Xlinker -lFoundation -Xlinker -framework -Xlinker AGL -Xlinker -framework -Xlinker OpenGL" + ;; + esac + ac_use_maya=yes + fi + + CPPFLAGS="$save_CPPFLAGS" + CXXFLAGS="$save_CXXFLAGS" + + AC_SUBST(MAYA_CXXFLAGS) + AC_SUBST(MAYA_LDFLAGS) + AC_SUBST(MAYA_LIBS) + AM_CONDITIONAL(HAVE_MAYA, [test x$ac_use_maya = "xyes"]) + + if test x$ac_use_ofx = "xyes"; then + ifelse([$1], , :, [$1]) + else + ifelse([$2], , :, [$2]) + fi +]) Modified: trunk/lib/extras/src/imf/Makefile.am =================================================================== --- trunk/lib/extras/src/imf/Makefile.am 2007-08-18 12:54:38 UTC (rev 250) +++ trunk/lib/extras/src/imf/Makefile.am 2007-08-18 14:21:09 UTC (rev 251) @@ -5,11 +5,23 @@ libdir = $(EXTRAS_PLUGINPATH) +if HAVE_MAYA + lib_LTLIBRARIES = libhdrflow_extras_imf.la libhdrflow_extras_imf_la_SOURCES = \ imf.cpp libhdrflow_extras_imf_la_CXXFLAGS = \ - $(BOOST_INCLUDE_PATH) \ + $(BOOST_INCLUDE_PATH) \ + $(MAYA_CXXFLAGS) \ -I$(top_buiddir)/../openlibraries/src + +libhdrflow_extras_imf_la_LIBADD = \ + $(MAYA_LIBS) + +libhdrflow_extras_imf_la_LDFLAGS = \ + $(MAYA_LDFLAGS) + +endif + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |