This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 238845 - Addition various path for Subprojects.
Summary: Addition various path for Subprojects.
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: PC Windows 8 x64
: P2 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-26 20:11 UTC by reg3f
Modified: 2013-11-26 20:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Libraries and Options: custom path [../<subproject>] + [../../../../] (34.04 KB, image/png)
2013-11-26 20:11 UTC, reg3f
Details

Note You need to log in before you can comment on or make changes to this bug.
Description reg3f 2013-11-26 20:11:52 UTC
Created attachment 142613 [details]
Libraries and Options: custom path [../<subproject>] + [../../../../]

I have a some project with the next structure:

├───build
│   ├───<subproject1>
│   │   ├───dist
│   │   │   ├───Debug_x32_-_i686_generic
│   │   │   │   └───MinGW_w64_-_x32-Windows
│   │   │   └───Release_x32_-_i686_generic
│   │   │       └───MinGW_w64_-_x32-Windows
│   │   └───obj
│   │       └─── -//-
│   │          
│   ├───<subproject2>
│   │   ├─── -//-
│   ├───<subproject3>
│   │   ├─── -//-
  ..........
│   └───_bin_ - <binaries of main project>
│       ├───Debug_x32_-_i686_generic
│       └───Release_x32_-_i686_generic
│
└───<root sources>
    ├───<main project>
    ├───<subproject1>
    ├───<subproject2>
    ├───dev  - <files of Netbeans>
    │    └───netbeans
    │       ├───<subproject1>
    │       │   └───nbproject
    │       │       └───private
    │       ├───<subproject2>
    │       .....
    │  
    └───<etc>

    
so, makefiles of subprojects contains:
  CND_DISTDIR=../../../build/$(PROJECTNAME)/dist
  CND_BUILDDIR=../../../build/$(PROJECTNAME)/obj

But! main project a uses incorrect path for linker option as: [prefix as "../<subprojectname>"] + [output] and i can't change it


* details:
  
7.4 a uses path for each added subproject from [Build -> Archiver -> Output] in the Libraries option of main project
I found this settings in nbproject/configurations.xml:
 ...
    <linkerLibProjectItem>
      <makeArtifact PL="../<subprojectname>"
                    CT="3"
                    CN="Debug_x32_-_i686_generic"
                    AC="true"
                    BL="true"
                    WD="../<subprojectname>"
                    BC="${MAKE}  -f Makefile CONF=Debug_x32_-_i686_generic"
                    CC="${MAKE}  -f Makefile CONF=Debug_x32_-_i686_generic clean"
                    OP="${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/<subprojectname>.a">
      </makeArtifact>
    </linkerLibProjectItem>
  ...
  
so linker gets WD/PL + OP various...


* solution:

I can't change this settings with the Makefile (e.g: change variable ${CND_DISTDIR}) and i can't change settings from UI such as [Archiver -> Output] because this variable used of subprojects...i.e. either linker or compiler

but i know the configurations.xml is updated only when Libraries option has changed.
So now sections - "linkerLibProjectItem" has manually changed (you can see in attach). This is a working variant if a configure do not occur often enough


need an additional option! =_=