Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Future Request: Copy source to target if newer

(1/2) > >>

chameleon:
I use OpenCL which has many text files compiled at runtime.
All of these text files must be copied from source directory to target directory (if newer).

There is no a cross-platfrom approach to do this with C::B.

Can we add this option for "Other" files??

Regards.
Pavlos Gessos

MortenMacFly:

--- Quote from: chameleon on April 07, 2012, 09:03:46 pm ---There is no a cross-platfrom approach to do this with C::B.

--- End quote ---
There is, if you use C::B's scripting engine.

Alpha:
Have you tried using something like:
$(CMD_CP) src/opencl/*.cl bin/opencl
or (more advanced)
[[ if (PLATFORM ==  PLATFORM_MSW) { print (_T("cmd /c xcopy /D /y")); } else { print (_T("sh cp -u")); } ]] src/opencl/*.cl bin/opencl
as a post-build step (see the Code::Blocks manual for details)?


--- Quote from: MortenMacFly on April 07, 2012, 10:04:52 pm ---
--- Quote from: chameleon on April 07, 2012, 09:03:46 pm ---There is no a cross-platfrom approach to do this with C::B.

--- End quote ---
There is, if you use C::B's scripting engine.

--- End quote ---
Or the copy macro.

MortenMacFly:

--- Quote from: Alpha on April 07, 2012, 10:06:19 pm ---Or the copy macro.

--- End quote ---
Even simpler - even better. 8)

oBFusCATed:

--- Quote from: chameleon on April 07, 2012, 08:58:30 pm ---Is ok to add a feature request? "Copy source to target if newer".

--- End quote ---
The forum is not good place to add feature requests. Use the project page at berlios.de

Navigation

[0] Message Index

[#] Next page

Go to full version