Wiki

Changes between Initial Version and Version 1 of CodeLite1

Show
Ignore:
Timestamp:
11/21/09 14:03:06 (15 years ago)
Author:
hopscc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeLite1

    v1 v1  
     1= !CodeLite-1.0.35 = 
     2 
     3Cobra support is not yet intrinsic to the installation from the codelite website - we're working on that.[[BR]] 
     4The attached files below provide partial support in !CodeLite-1.0.35 for cobra language development. [[BR]] 
     5 
     6These have not been tried on !CodeLite-2. 
     7 
     8== What is supported == 
     9 * Syntax colorization 
     10 * Project Templates for debug, release and turbo builds of  
     11     * Console: Simple cobra executable  
     12     * User Templates:  cobra executable 
     13     * User Templates:  cobra library 
     14     * User Templates:  cobra executable with embedded runtime  
     15 * cobra builds, build error capture and parsing. 
     16 * running the executable made 
     17 
     18== What is not supported (yet) == 
     19 * Code structure browser 
     20 * Tags-like capability 
     21 * word and call completion (intellisense) 
     22 * Debugger/debugging 
     23 
     24== Prerequisites == 
     25 * Installed version of the cobra compiler installation. [[BR]] 
     26    Specifically you will need to know the path to the compiler executable cobra.exe 
     27 
     28 * gzipped tar dearchiver ( gzip, gnu tar, 7-zip, winRar) 
     29 
     30== Installation == 
     31 
     32 * Download an installation binary for version 1.0.35 from the [http://codelite.org CodeLite] website.  
     33 
     34 * Install it and take note of the installation directory 
     35 
     36 * Download and Dearchive (untar) the files from the attachment below to a local dir. 
     37  Copy the files and directories under the newly created root dir 'codelite-1.0.35-cobra' 
     38  to the root of the codelite installation directory.  
     39  Currently these are multiple files under three directories 
     40    * config 
     41    * templates 
     42    * lexer 
     43 
     44 * Most of the files are additional to the default codelite installation except for files in config. 
     45  These copies replace the existing files in the installed config directory (they should be a superset). 
     46   If you are feeling paranoid you might want to backup the originals before the copy. 
     47 
     48 * Run codelite - select menubar 'Settings' item '!BuildSettings'. [[BR]] 
     49   In the popup dialog that appears you should see a box on the left hand side containing a 
     50   possibly expanded entry for Cobra. 
     51 
     52 * You now need to tell codelite the path to the cobra compiler. 
     53    * In the above dialog (menubar 'Settings'/'Build Settings...' under the cobra Tree entry click on 'Tools' 
     54      The rhs of the dialog will show a form the top line of which has an entry 'Compiler Name: C:\path\to\cobra.exe' 
     55      Change the path to that of your cobra compiler (fwd or back slashes are equally recognised). 
     56      Press 'OK' btn to save the change.   
     57 
     58   * Select from !MenuBar menu 'Settings'/'Environment Variables...'. edit the cobrac entry to specify the full path to the  
     59     cobra compiler and save your changes. 
     60 
     61== Tested On == 
     62 Installation Tested on Windows (XP-pre SP3). 
     63 
     64== Usage == 
     65  * Workspace/New Project 
     66     select type of cobra project from templates given and enter project name and path to your project directory and press OK. 
     67 
     68  * In the generated project tree select the project name and add (existing) or create your cobra sources. 
     69   
     70  * You;ll notice that where theres a 'resources' virtual dir made for a project theres a file 'build-file' which is a build-list file for the cobra compiler 
     71     unfortunately currently you have to maintain the contents of this yourself as we cant get hold of codelites sourcelist. Just add filename entries to it as 
     72     you add/create your source files. 
     73 
     74 * Project Menu or keyboard to compile a single file or build all the files in a directory. Build output/errors etc should appear in the 'Output panel' 
     75 
     76== Building Cobra == 
     77 
     78As a bonus for cobra developers the second attached file 'cobrac-workspace.tar.gz' is a workspace for building cobra.[[BR]] 
     79It contains a workspace directory tree rooted on 'codelite' containig a 'cobrac' workspace which should be installed 
     80in the root of your cobra build directory (as a sibling to dirs 'Developer', 'Source', '!HowTo', etc) 
     81Giving  
     82{{{ 
     83637 xx:...src/cobra/wkspace> lsd 
     84Developer/ 
     85HowTo/ 
     86Reusables/ 
     87Samples/ 
     88SamplesInProgress/ 
     89Source/ 
     90Supplements/ 
     91Tests/ 
     92codelite/ 
     93638 xx:...src/cobra/wkspace> ls -1 codelite 
     94 ls -1 codelite 
     95BuildAll.project 
     96Cobra.Lang.project 
     97Tests.project 
     98build-files 
     99cobra.project 
     100cobrac.project 
     101cobrac.tags 
     102cobrac.workspace 
     103lib-build-files 
     104main.cobra 
     105tags 
     106testify.project 
     107639 xx:...src/cobra/wkspace> 
     108}}} 
     109 
     110Tell !CodeLite to open the workspace file in this directory/codelite/cobrac.workspace[[BR]] 
     111 
     112Viola - cobra compiler inna IDE. Browse, edit, build... 
     113 
     114More details on CodeliteCobraWorkspace layout