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

source code position changes in cbp file

(1/2) > >>

ollydbg:
I add some file to the cbp, but found that some other source files are changed, see below:

--- Code: --- src/CodeBlocks_wx30.cbp | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/CodeBlocks_wx30.cbp b/src/CodeBlocks_wx30.cbp
index 5c49123..ecae645 100644
--- a/src/CodeBlocks_wx30.cbp
+++ b/src/CodeBlocks_wx30.cbp
@@ -741,9 +741,6 @@
  <Unit filename="base/tinyxml/tinystr.cpp">
  <Option target="tinyXML" />
  </Unit>
- <Unit filename="sdk/tinywxuni.cpp">
- <Option target="sdk" />
- </Unit>
  <Unit filename="base/tinyxml/tinyxml.cpp">
  <Option target="tinyXML" />
  </Unit>
@@ -1289,12 +1286,12 @@
  <Unit filename="include/templatemanager.h">
  <Option target="sdk" />
  </Unit>
- <Unit filename="include/tinyxml/tinystr.h">
- <Option target="tinyXML" />
- </Unit>
  <Unit filename="include/tinywxuni.h">
  <Option target="sdk" />
  </Unit>
+ <Unit filename="include/tinyxml/tinystr.h">
+ <Option target="tinyXML" />
+ </Unit>
  <Unit filename="include/tinyxml/tinyxml.h">
  <Option target="tinyXML" />
  </Unit>
@@ -1465,15 +1462,15 @@
  <Unit filename="plugins/codecompletion/doxygen_parser.h">
  <Option target="Code-completion" />
  </Unit>
- <Unit filename="plugins/codecompletion/insertclassmethoddlg.cpp">
- <Option target="Code-completion" />
- </Unit>
  <Unit filename="plugins/codecompletion/gotofunctiondlg.cpp">
  <Option target="Code-completion" />
  </Unit>
  <Unit filename="plugins/codecompletion/gotofunctiondlg.h">
  <Option target="Code-completion" />
  </Unit>
+ <Unit filename="plugins/codecompletion/insertclassmethoddlg.cpp">
+ <Option target="Code-completion" />
+ </Unit>
  <Unit filename="plugins/codecompletion/insertclassmethoddlg.h">
  <Option target="Code-completion" />
  </Unit>
@@ -3298,6 +3295,9 @@
  <Unit filename="sdk/templatemanager.cpp">
  <Option target="sdk" />
  </Unit>
+ <Unit filename="sdk/tinywxuni.cpp">
+ <Option target="sdk" />
+ </Unit>
  <Unit filename="sdk/toolsmanager.cpp">
  <Option target="sdk" />
  </Unit>

--- End code ---
Is it by design, what is the rule of place source files? (I'm using the latest nightly build under Windows).

BTW: what is the best way to apply changes from one cbp file to another, since we have CodeBlocks.cbp, CodeBlocks_w30.cbp ...., Have a patch for one file, and apply to other files?

BlueHazzard:

--- Quote from: ollydbg on September 05, 2016, 12:38:32 am ---BTW: what is the best way to apply changes from one cbp file to another, since we have CodeBlocks.cbp, CodeBlocks_w30.cbp ...., Have a patch for one file, and apply to other files?

--- End quote ---

This is indeed a very annoying thing...There should be some mechanism to unify this projects (like insert a third hierarchy on top of projects, or between projects and targets...) i have a lot mixed unix and windows projects, and there is no satisfying solution... (or at least i have not found it)

oBFusCATed:
1. Apply the same patch just modify the file names
2. Use difftool to unify all the project files.

ollydbg:

--- Quote from: oBFusCATed on September 06, 2016, 04:21:07 pm ---1. Apply the same patch just modify the file names
2. Use difftool to unify all the project files.

--- End quote ---
Thanks, what does the second step mean?

Jenna:

--- Quote from: ollydbg on September 08, 2016, 04:00:20 am ---
--- Quote from: oBFusCATed on September 06, 2016, 04:21:07 pm ---1. Apply the same patch just modify the file names
2. Use difftool to unify all the project files.

--- End quote ---
Thanks, what does the second step mean?

--- End quote ---
Use a tool that shows (and merges) diffs between files.
I prefer meld, because it works quiet good (and in the same way) on Linux and Windows: http://meldmerge.org/ .

Navigation

[0] Message Index

[#] Next page

Go to full version