[patch] Portable

Discussion about CodeLite development process and patches
Shura1oplot
CodeLite Curious
Posts: 2
Joined: Thu Oct 21, 2010 12:35 am
Genuine User: Yes
IDE Question: C++
Contact:

[patch] Portable

Post by Shura1oplot »

Patch lets you make Codelite v2.10.0.4778 portable.
Patch move application data from User/AppData to Codelite directory (example: H:\Portable\CodeLite\appdata),
also when you exit the program, patch rolls absolute paths (recorded in “Tag Settings/Include Files” ) to relative paths. During loading program, relative paths unroll to absolute paths.

Neccesary changes:
1) create file "portable" (without extension) in program directory
2) Write relative paths in file registry.ini
Example:

[environment]
wx=$(CodeLiteDir)\..\wxWidgets-2.8.12
mingw=$(CodeLiteDir)\..\MinGW
unittestpp=$(CodeLiteDir)\..\UnitTest++-1.3

3) Fix paths in Environment Variables:

Example:
CodeLiteDir=H:\Portable\CodeLite
WXWIN=$(CodeLiteDir)\..\wxWidgets-2.8.12
PATH=$(WXWIN)\lib\gcc_dll;$(PATH)
WXCFG=gcc_dll\mswu
UNIT_TEST_PP_SRC_DIR=$(CodeLiteDir)\..\UnitTest++-1.3
LANG=C

In this configuration MinGW, wxWidgets-2.8.12 and UnitTest++-1.3 must be in Codelite's directory.
Example:
H:\Portable\CodeLite
H:\Portable\MinGW
H:\Portable\wxWidgets-2.8.12
H:\Portable\UnitTest++-1.3

I`m sorry for my bad English.
You do not have the required permissions to view the files attached to this post.
Last edited by Shura1oplot on Mon Jun 06, 2011 1:00 pm, edited 3 times in total.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [patch]

Post by eranif »

Shura1oplot wrote:Patch lets you make Codelite v2.10.0.4778 portable.
Patch move application data from User/AppData to Codelite directory (example: H:\Portable\CodeLite\appdata),
also when you exit the program, patch rolls absolute paths (recorded in “Tag Settings/Include Files” ) in relative paths. During loading program, relative paths unroll to absolute paths.
Very nice work. You did it excatly as I would have done it (by creating a codelite's version for 'wxStandardPaths')
I will give it a try and will update in this post

Eran
Make sure you have read the HOW TO POST thread
lyricc
CodeLite Curious
Posts: 6
Joined: Tue Sep 21, 2010 10:39 pm
Genuine User: Yes
IDE Question: all
Contact:

Re: [patch] Portable

Post by lyricc »

good work!!!!!
I must say it. why not share your code--such as "userdatadir.h" and "userdatadir.cpp"
Shura1oplot
CodeLite Curious
Posts: 2
Joined: Thu Oct 21, 2010 12:35 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: [patch] Portable

Post by Shura1oplot »

I`m very sorry! I missed the flag -N, when creating the patch! I upload new fixed patch, now it creates the files "userdatadir.cpp" and "userdatadir.h".
You do not have the required permissions to view the files attached to this post.
Post Reply