Browse Source

Suppress Eclipse link resource overlaps warning during project import.

Yao Wei Tjong 姚伟忠 12 years ago
parent
commit
657696cec5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cmake_gcc.sh

+ 2 - 0
cmake_gcc.sh

@@ -75,11 +75,13 @@ post_cmake() {
             #
             # Replace [Source directory] linked resource to [Build] instead
             # Modify build argument to first change directory to Build folder
+            # Remove [Subprojects]/Urho3D linked resource to suppress Eclipse resource overlaps warning during project import
             #
             xmlstarlet ed -P -L \
                 -u "/projectDescription/linkedResources/link/name/text()[. = '[Source directory]']" -v "[Build]" \
                 -u "/projectDescription/linkedResources/link/location[../name/text() = '[Build]']" -v "$( pwd )/$1" \
                 -u "/projectDescription/buildSpec/buildCommand/arguments/dictionary/value[../key/text() = 'org.eclipse.cdt.make.core.build.arguments']" -x "concat('-C ../$1 ', .)" \
+                -d "/projectDescription/linkedResources/link[name/text() = '[Subprojects]/Urho3D']" \
                 Source/.project
             #
             # Fix source path entry to Source folder and modify its filter condition