Sources.pp 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. // This directory is still experimental. Define HAVE_P3D_PLUGIN in
  2. // your Config.pp to build it.
  3. #define BUILD_DIRECTORY $[HAVE_P3D_PLUGIN]
  4. #begin lib_target
  5. #define BUILD_TARGET $[and $[HAVE_TINYXML],$[HAVE_OPENSSL],$[HAVE_ZLIB],$[HAVE_JPEG],$[HAVE_PNG]]
  6. #define USE_PACKAGES tinyxml openssl zlib jpeg png x11
  7. #define TARGET p3d_plugin
  8. #define LIB_PREFIX
  9. #define OTHER_LIBS $[if $[OSX_PLATFORM],subprocbuffer]
  10. #define COMBINED_SOURCES \
  11. $[TARGET]_composite1.cxx
  12. #define SOURCES \
  13. fileSpec.cxx fileSpec.h fileSpec.I \
  14. find_root_dir.cxx find_root_dir.h \
  15. get_tinyxml.h \
  16. binaryXml.cxx binaryXml.h \
  17. fhandle.h \
  18. handleStream.cxx handleStream.h handleStream.I \
  19. handleStreamBuf.cxx handleStreamBuf.h handleStreamBuf.I \
  20. mkdir_complete.cxx mkdir_complete.h \
  21. p3d_lock.h p3d_plugin.h \
  22. p3d_plugin_config.h \
  23. p3d_plugin_common.h \
  24. p3dAuthSession.h p3dAuthSession.I \
  25. p3dBoolObject.h \
  26. p3dConcreteSequence.h \
  27. p3dConcreteStruct.h \
  28. p3dConditionVar.h p3dConditionVar.I \
  29. p3dDownload.h p3dDownload.I \
  30. p3dFileDownload.h p3dFileDownload.I \
  31. p3dFileParams.h p3dFileParams.I \
  32. p3dFloatObject.h \
  33. p3dHost.h p3dHost.I \
  34. p3dInstance.h p3dInstance.I \
  35. p3dInstanceManager.h p3dInstanceManager.I \
  36. p3dIntObject.h \
  37. p3dMainObject.h \
  38. p3dMultifileReader.h p3dMultifileReader.I \
  39. p3dNoneObject.h \
  40. p3dObject.h p3dObject.I \
  41. p3dOsxSplashWindow.h p3dOsxSplashWindow.I \
  42. p3dPackage.h p3dPackage.I \
  43. p3dPythonObject.h \
  44. p3dReferenceCount.h p3dReferenceCount.I \
  45. p3dSession.h p3dSession.I \
  46. p3dSplashWindow.h p3dSplashWindow.I \
  47. p3dStringObject.h \
  48. p3dTemporaryFile.h p3dTemporaryFile.I \
  49. p3dUndefinedObject.h \
  50. p3dWinSplashWindow.h p3dWinSplashWindow.I \
  51. p3dX11SplashWindow.h p3dX11SplashWindow.I \
  52. p3dWindowParams.h p3dWindowParams.I \
  53. run_p3dpython.h
  54. #define INCLUDED_SOURCES \
  55. p3d_plugin.cxx \
  56. p3dAuthSession.cxx \
  57. p3dBoolObject.cxx \
  58. p3dConcreteSequence.cxx \
  59. p3dConcreteStruct.cxx \
  60. p3dConditionVar.cxx \
  61. p3dDownload.cxx \
  62. p3dFileDownload.cxx \
  63. p3dFileParams.cxx \
  64. p3dFloatObject.cxx \
  65. p3dHost.cxx \
  66. p3dInstance.cxx \
  67. p3dInstanceManager.cxx \
  68. p3dIntObject.cxx \
  69. p3dMainObject.cxx \
  70. p3dMultifileReader.cxx \
  71. p3dNoneObject.cxx \
  72. p3dObject.cxx \
  73. p3dOsxSplashWindow.cxx \
  74. p3dPackage.cxx \
  75. p3dPythonObject.cxx \
  76. p3dReferenceCount.cxx \
  77. p3dSession.cxx \
  78. p3dSplashWindow.cxx \
  79. p3dStringObject.cxx \
  80. p3dTemporaryFile.cxx \
  81. p3dUndefinedObject.cxx \
  82. p3dWinSplashWindow.cxx \
  83. p3dX11SplashWindow.cxx \
  84. p3dWindowParams.cxx
  85. #define INSTALL_HEADERS \
  86. p3d_plugin.h
  87. #define WIN_SYS_LIBS user32.lib gdi32.lib shell32.lib comctl32.lib msimg32.lib
  88. #end lib_target
  89. #begin lib_target
  90. // *****
  91. // Note! This lib is used to run P3DPythonRun within the parent
  92. // (browser) process, instead of forking a child. This seems like
  93. // it's going to be a bad idea in the long term. This lib remains
  94. // for now as an experiment, but it will likely be removed very soon.
  95. // ****
  96. #define BUILD_TARGET $[and $[HAVE_TINYXML],$[HAVE_PYTHON],$[HAVE_OPENSSL]]
  97. #define USE_PACKAGES tinyxml python openssl
  98. #define TARGET libp3dpython
  99. #define LIB_PREFIX
  100. #define OTHER_LIBS \
  101. dtoolutil:c dtoolbase:c dtool:m \
  102. interrogatedb:c dconfig:c dtoolconfig:m \
  103. express:c pandaexpress:m \
  104. prc:c pstatclient:c pandabase:c linmath:c putil:c \
  105. pipeline:c event:c nativenet:c net:c display:c panda:m
  106. #define SOURCES \
  107. binaryXml.cxx binaryXml.h \
  108. fhandle.h \
  109. handleStream.cxx handleStream.h handleStream.I \
  110. handleStreamBuf.cxx handleStreamBuf.h handleStreamBuf.I \
  111. p3d_lock.h p3d_plugin.h \
  112. p3d_plugin_config.h \
  113. p3dCInstance.cxx \
  114. p3dCInstance.h p3dCInstance.I \
  115. p3dPythonRun.cxx p3dPythonRun.h p3dPythonRun.I \
  116. run_p3dpython.h run_p3dpython.cxx
  117. #define WIN_SYS_LIBS user32.lib
  118. #end lib_target
  119. #begin bin_target
  120. #define BUILD_TARGET $[and $[HAVE_TINYXML],$[HAVE_PYTHON],$[HAVE_OPENSSL]]
  121. #define USE_PACKAGES tinyxml python openssl
  122. #define TARGET p3dpython
  123. #define OTHER_LIBS \
  124. dtoolutil:c dtoolbase:c dtool:m \
  125. interrogatedb:c dconfig:c dtoolconfig:m \
  126. express:c pandaexpress:m \
  127. prc:c pstatclient:c pandabase:c linmath:c putil:c \
  128. pipeline:c event:c nativenet:c net:c display:c panda:m
  129. #define SOURCES \
  130. binaryXml.cxx binaryXml.h \
  131. fhandle.h \
  132. handleStream.cxx handleStream.h handleStream.I \
  133. handleStreamBuf.cxx handleStreamBuf.h handleStreamBuf.I \
  134. p3d_lock.h p3d_plugin.h \
  135. p3d_plugin_config.h \
  136. p3dCInstance.cxx \
  137. p3dCInstance.h p3dCInstance.I \
  138. p3dPythonRun.cxx p3dPythonRun.h p3dPythonRun.I \
  139. run_p3dpython.h run_p3dpython.cxx
  140. #define SOURCES $[SOURCES] \
  141. p3dPythonMain.cxx
  142. // If you have to link with a static Python library, define it here.
  143. #define EXTRA_LIBS $[EXTRA_P3DPYTHON_LIBS]
  144. #define WIN_SYS_LIBS user32.lib
  145. #end bin_target
  146. #begin static_lib_target
  147. #define BUILD_TARGET $[and $[HAVE_TINYXML],$[HAVE_OPENSSL]]
  148. #define TARGET plugin_common
  149. #define USE_PACKAGES tinyxml openssl
  150. #define SOURCES \
  151. load_plugin.cxx load_plugin.h \
  152. fileSpec.cxx fileSpec.h fileSpec.I \
  153. find_root_dir.cxx find_root_dir.h \
  154. is_pathsep.h is_pathsep.I \
  155. mkdir_complete.cxx mkdir_complete.h
  156. #end static_lib_target
  157. #begin bin_target
  158. #define BUILD_TARGET $[and $[HAVE_WX],$[HAVE_OPENSSL]]
  159. #define USE_PACKAGES wx openssl
  160. #define TARGET p3dcert
  161. #define SOURCES p3dCert.cxx
  162. #define OSX_SYS_FRAMEWORKS Carbon
  163. #end bin_target
  164. #include $[THISDIRPREFIX]p3d_plugin_config.h.pp