Sources.pp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. // This directory is still experimental. Define HAVE_P3D_PLUGIN in
  2. // your Config.pp to build it.
  3. #define BUILD_DIRECTORY $[and $[HAVE_P3D_PLUGIN],$[HAVE_TINYXML],$[HAVE_OPENSSL],$[HAVE_ZLIB]]
  4. #begin lib_target
  5. #define BUILD_TARGET $[HAVE_JPEG]
  6. #define USE_PACKAGES tinyxml openssl zlib jpeg 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. handleStream.cxx handleStream.h handleStream.I \
  18. handleStreamBuf.cxx handleStreamBuf.h handleStreamBuf.I \
  19. mkdir_complete.cxx mkdir_complete.h \
  20. p3d_lock.h p3d_plugin.h \
  21. p3d_plugin_config.h \
  22. p3d_plugin_common.h \
  23. p3dBoolObject.h \
  24. p3dConcreteSequence.h \
  25. p3dConcreteStruct.h \
  26. p3dConditionVar.h p3dConditionVar.I \
  27. p3dDownload.h p3dDownload.I \
  28. p3dFileDownload.h p3dFileDownload.I \
  29. p3dFileParams.h p3dFileParams.I \
  30. p3dFloatObject.h \
  31. p3dHost.h p3dHost.I \
  32. p3dInstance.h p3dInstance.I \
  33. p3dInstanceManager.h p3dInstanceManager.I \
  34. p3dIntObject.h \
  35. p3dMultifileReader.h p3dMultifileReader.I \
  36. p3dNoneObject.h \
  37. p3dObject.h p3dObject.I \
  38. p3dOsxSplashWindow.h p3dOsxSplashWindow.I \
  39. p3dPackage.h p3dPackage.I \
  40. p3dPythonObject.h \
  41. p3dReferenceCount.h p3dReferenceCount.I \
  42. p3dSession.h p3dSession.I \
  43. p3dSplashWindow.h p3dSplashWindow.I \
  44. p3dStringObject.h \
  45. p3dTemporaryFile.h p3dTemporaryFile.I \
  46. p3dToplevelObject.h \
  47. p3dUndefinedObject.h \
  48. p3dWinSplashWindow.h p3dWinSplashWindow.I \
  49. p3dX11SplashWindow.h \
  50. p3dWindowParams.h p3dWindowParams.I
  51. #define INCLUDED_SOURCES \
  52. p3d_plugin.cxx \
  53. p3dBoolObject.cxx \
  54. p3dConcreteSequence.cxx \
  55. p3dConcreteStruct.cxx \
  56. p3dConditionVar.cxx \
  57. p3dDownload.cxx \
  58. p3dFileDownload.cxx \
  59. p3dFileParams.cxx \
  60. p3dFloatObject.cxx \
  61. p3dHost.cxx \
  62. p3dInstance.cxx \
  63. p3dInstanceManager.cxx \
  64. p3dIntObject.cxx \
  65. p3dMultifileReader.cxx \
  66. p3dNoneObject.cxx \
  67. p3dObject.cxx \
  68. p3dOsxSplashWindow.cxx \
  69. p3dPackage.cxx \
  70. p3dPythonObject.cxx \
  71. p3dReferenceCount.cxx \
  72. p3dSession.cxx \
  73. p3dSplashWindow.cxx \
  74. p3dStringObject.cxx \
  75. p3dTemporaryFile.cxx \
  76. p3dToplevelObject.cxx \
  77. p3dUndefinedObject.cxx \
  78. p3dWinSplashWindow.cxx \
  79. p3dX11SplashWindow.cxx \
  80. p3dWindowParams.cxx
  81. #define INSTALL_HEADERS \
  82. p3d_plugin.h
  83. #define WIN_SYS_LIBS user32.lib gdi32.lib shell32.lib comctl32.lib
  84. #end lib_target
  85. #begin bin_target
  86. #define BUILD_TARGET $[HAVE_PYTHON]
  87. #define USE_PACKAGES tinyxml python
  88. #define TARGET p3dpython
  89. #define OTHER_LIBS \
  90. dtoolutil:c dtoolbase:c dtool:m \
  91. interrogatedb:c dconfig:c dtoolconfig:m \
  92. express:c pandaexpress:m \
  93. prc:c pstatclient:c pandabase:c linmath:c putil:c \
  94. pipeline:c event:c nativenet:c net:c panda:m
  95. #define SOURCES \
  96. binaryXml.cxx binaryXml.h \
  97. handleStream.cxx handleStream.h handleStream.I \
  98. handleStreamBuf.cxx handleStreamBuf.h handleStreamBuf.I \
  99. p3d_lock.h p3d_plugin.h \
  100. p3d_plugin_config.h \
  101. p3dCInstance.cxx \
  102. p3dCInstance.h p3dCInstance.I \
  103. p3dPythonRun.cxx p3dPythonRun.h p3dPythonRun.I
  104. #define WIN_SYS_LIBS user32.lib
  105. // If you have to link with a static Python library, define it here.
  106. #define EXTRA_LIBS $[EXTRA_P3DPYTHON_LIBS]
  107. #end bin_target
  108. #begin static_lib_target
  109. #define TARGET plugin_common
  110. #define USE_PACKAGES tinyxml openssl
  111. #define SOURCES \
  112. load_plugin.cxx load_plugin.h \
  113. fileSpec.cxx fileSpec.h fileSpec.I \
  114. find_root_dir.cxx find_root_dir.h \
  115. is_pathsep.h is_pathsep.I \
  116. mkdir_complete.cxx mkdir_complete.h
  117. #end static_lib_target
  118. #include $[THISDIRPREFIX]p3d_plugin_config.h.pp