Page 4 of 4
Re: script plugin
Posted: Sun Mar 09, 2014 1:16 am
by DavidGH
Hi,
Is it possible to debug codelite with codelite under linux ?
Yes, of course. Eran and I do so all the time.
If you have the LiteEditor project open, and gdb is installed, simply running the debugger should work. However you'll avoid potential confusion if you use a different configuration in the debuggee. You can do that with recent CL versions by adding:
--datadir=/path/to/another/.codelite
in the 'Project Settings > General > Debug program arguments' field.
Regards,
David
Re: script plugin
Posted: Sun Mar 09, 2014 1:28 am
by jfouche
Hi David,
Thanks for the answer
I was asking because the build process uses CMake (and not codelite directly, which is different from Windows), and I'm a little bit confused with Cmake (and linux also...).
Re: script plugin
Posted: Sun Mar 09, 2014 9:37 pm
by jfouche
It works
The problem I still encounter is that I need to provide images during the install process (they should go in
/usr/lib/codelite/resources).
I don't know how to achieve this with CMake... once again, I need help.
Re: script plugin
Posted: Mon Mar 10, 2014 1:25 pm
by DavidGH
Untested, but I think that just adding your images to Runtime/plugins/resources/ will work. There's a line in LiteEditor/CMakeLists.txt that installs everything in Runtime/plugins/resources/ to /usr/lib/codelite/resources/.
Re: script plugin
Posted: Sun Mar 16, 2014 5:31 pm
by eranif
Hi,
I have implemented a codelite module in CMake that should simplify the integration of new plugins into codelite build without changing any of codelite's source/CMake files.
You can read more about it here:
http://codelite.org/Developers/CreatePlugin#toc4
Since the file 'codelite-plugin.cmake' (see the previous link for learning about codelite-plugin.cmake file) is a CMake file, you can add extra cmake code to it.
For example, if you want to install extra file to codelite's share folder (Linux):
The following example, shows how to install the entire content of the 'ScriptPlugin/resources' (if you had such a folder...) into /usr/share/codelite/ScriptPlugin
Code: Select all
install(
DIRECTORY ${CL_SRC_ROOT}/ScriptPlugin/resources
DESTINATION ${CL_PREFIX}/share/codelite/ScriptPlugin
USE_SOURCE_PERMISSIONS
PATTERN ".svn" EXCLUDE
PATTERN ".git" EXCLUDE
)
HTH,
Eran