dsargrad User
Joined: 11 Apr 2015 Posts: 43
|
Posted: Sat Jun 11, 2016 11:41 am Post subject: How does the solution build determine whether or not to compile a plugin |
|
|
Hi,
I'm trying to figure out how the solution decides whether or not to build a plugin. Sometimes I see plugins built as in the following, sometimes not.
------ Build started: Project: Plugins dae, Configuration: Debug x64 ------
190> Building Custom Rule C:/osg/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgPlugins/dae/CMakeLists.txt
190> CMake does not need to re-run because C:\osg\OpenSceneGraph-3.4.0\build64\src\osgPlugins\dae\CMakeFiles\generate.stamp is up-to-date.
Its not clear to me which build file contains the logic that makes this decision. Please help me to understand where I can find that logic.
Thank you!
Cheers,
Dave |
|
dsargrad User
Joined: 11 Apr 2015 Posts: 43
|
Posted: Sat Jun 11, 2016 11:58 am Post subject: |
|
|
Hi,
I've discovered that you can turn on CMKAKE diagnostics to see if SETUP_PLUGIN is being called. Is it true that if you see an entry indicating that SETUP_PLUGIN has been called then that plugin should be placed into the solution for build? Or are there other factors that would cause a plugin not to be included within the solution? Where do I look in the build chain to determine whether or not the plugin has indeed been placed into the solution for build?
Code:
|
in -->SETUP_PLUGIN<-- dae-->daeReader.cpp;daeRAnimations.cpp;daeRGeometry.cpp;daeRMaterials.cpp;daeRSceneObjects.cpp;daeRSkinning.cpp;daeRTransforms.cpp;daeWAnimations.cpp;daeWGeometry.cpp;daeWMaterials.cpp;daeWriter.cpp;daeWSceneObjects.cpp;daeWTransforms.cpp;domSourceReader.cpp;ReaderWriterDAE.cpp <--> daeReader.h;daeWriter.h;domSourceReader.h;ReaderWriterDAE.h<--
|
|
|
robertosfield OSG Project Lead
Joined: 18 Mar 2009 Posts: 11616
|
Posted: Sat Jun 11, 2016 12:59 pm Post subject: How does the solution build determine whether or not to compile a plugin |
|
|
Hi
On 11 June 2016 at 12:58, Dave Sargrad <> wrote:
Quote:
|
Hi,
I've discovered that you can turn on CMKAKE diagnostics to see if SETUP_PLUGIN is being called. Is it true that if you see an entry indicating that SETUP_PLUGIN has been called then that plugin should be placed into the solution for build? Or are there other factors that would cause a plugin not to be included within the solution? Where do I look in the build chain to determine whether or not the plugin has indeed been placed into the solution for build?
|
The OpenSceneGraph/src/osgPlugins/CMakeLists.txt contains all the
references to the plugins. The optional plugins are enclosed in if ()
blocks where the test is usually checking for the presense of a 3rd
party dependency that that plugin requires.
The Find scripts that locate the 3rd part plugins are invoked in the
the OpenSceneGraph/CMakeLists.txt, just look for Find*().
Robert.
------------------
Post generated by Mail2Forum |
|
dsargrad User
Joined: 11 Apr 2015 Posts: 43
|
Posted: Sun Jun 12, 2016 10:39 am Post subject: |
|
|
Thank You Sir. |
|