Author Topic: Project dependencies and rebuild  (Read 3245 times)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Project dependencies and rebuild
« on: April 20, 2020, 11:30:44 pm »
Hi,
the Thread search plugin has a dependency on the wxCustomButton in wxSmith. If i rebuild the Thread search plugin, the wxSmith code gets also rebuild...
Is this intended? I personally think this is overkill...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Project dependencies and rebuild
« Reply #1 on: April 21, 2020, 12:49:06 am »
wxCustomButton is in wxContribItems

I think an external dependency would be better.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Project dependencies and rebuild
« Reply #2 on: April 21, 2020, 09:16:25 am »
A ok, i see there are two things...

1) A Project dependency: (Project->Propterties->Project dependencies) This is set to the wxWidgets-contrib Items
2) A external dependency: (Project->Properties->Dependencies) This is set to
Code
..\..\..\devel31_64\wxcustombutton.dll


The first triggers a rebuild, the second not.
So my suggestion is to remove the first...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project dependencies and rebuild
« Reply #3 on: April 21, 2020, 09:59:39 am »
Why? Why would you want to break a clean build if thread-search is the active project?

p.s. Keep in mind that I've heavily modified the thread search plugin, so changing it at this moment is not a good idea.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Project dependencies and rebuild
« Reply #4 on: April 21, 2020, 10:31:48 am »
Why? Why would you want to break a clean build if thread-search is the active project?

Why would i want to rebuild the wxContribItems if i rebuild the Thread search plugin? If you rebuild codeblocks, wxWidgets wont need to be rebuild... The same here if i rebuild Thread search, why do i want to rebuild the wxContribItems? The other way around yes, if i rebuild wxContribItems, i also want to rebuild ThreadSearch...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project dependencies and rebuild
« Reply #5 on: April 21, 2020, 07:48:42 pm »
Because if you do clean workspace and then try to build thread search, building thread search would fail.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Project dependencies and rebuild
« Reply #6 on: April 22, 2020, 12:42:33 am »
I do not know the build part well, but would it be possible to add a flag, that does not clear the dependency, but only looks at the build order? Or like the external dependency, looks if the project is build, if not build it... only question... This is not important for now...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Project dependencies and rebuild
« Reply #7 on: April 22, 2020, 12:50:29 am »
If you don't want it rebuild make a separate workspace which doesn't have this project.
Generally we have to have project load/unload like visual studio, but first we need to have any api for storing per-project-per-user configs and we don't have this yet...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]