script plugin

Script Plugin (LUA) development forum
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: script plugin

Post 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
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: script plugin

Post 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...).
Jérémie
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: script plugin

Post 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.
Jérémie
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: script plugin

Post 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/.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: script plugin

Post 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
Make sure you have read the HOW TO POST thread
Post Reply