Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Getting the file path

(1/2) > >>

threeS:
Good day!
In relation to my post previously in:

--- Quote ---http://forums.codeblocks.org/index.php/topic,19604.new.html#new

--- End quote ---

How can i get the file path of my compiled program using my build plugin.
The events already works every time i hit compile button.

thank you for the response.

oBFusCATed:
Checkout the cbProject and CompileTargetBase classes.

threeS:
Good day!

We had tried some experiments like

-
--- Quote --- Manager::Get()->GetProjectManager()->GetActiveProject()->GetFilename()
--- End quote ---
  Returned output:
--- Quote ---/file/project/location/file.cbp
--- End quote ---
(It returns the cbp file)

-
--- Quote --- Manager::Get()->GetProjectManager()->GetActiveProject()->GetActiveBuildTarget()
--- End quote ---
Returned output:
--- Quote --- default
--- End quote ---

-
--- Quote ---Manager::Get()->GetProjectManager()->GetActiveProject()->GetBasePath()
--- End quote ---
Returned output:
--- Quote --- /file/project/location/
--- End quote ---
(It returns the project path)

-
--- Quote --- Manager::Get()->GetProjectManager()->GetActiveProject()->GetCurrentlyCompilingTarget()->GetFilename()
--- End quote ---
Returned output: (codeblocks crashes along with codeblocks debug file)

We're trying to get the file path of the compiled file but we have no luck on finding it., :(
 Expected:
--- Quote --- /file/project/location/file.cpp
--- End quote ---

[attachment deleted by admin]

oBFusCATed:
What about the CompileTargetBase::GetOutputFilename?

threeS:
We've tried the
--- Quote ---CompileTargetBase::GetOutputFilename
--- End quote ---
but it gives the output

--- Quote ---/file/project/location
--- End quote ---
.


Anybody can help?  :'(

Navigation

[0] Message Index

[#] Next page

Go to full version