Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Absolute file paths seem to be unsupported #97

Open
dinazil opened this issue Dec 21, 2014 · 3 comments
Open

Absolute file paths seem to be unsupported #97

dinazil opened this issue Dec 21, 2014 · 3 comments

Comments

@dinazil
Copy link

dinazil commented Dec 21, 2014

I'm trying to create an internal Boost Date Time package. I don't want to use the one already available online because we do internal builds and store the symbols.
There's a convention in my company that all the external code resides in a folder whose path is specified by an environment variable.
Here's the script i'm using:

nuget {

    nuspec {
        id = boost.date_time;
        version: 1.57.0;
        title: Boost Date Time Library;
        authors: {BOOST};
        owners: {BOOST};
        licenseUrl: "http://www.boost.org/users/license.html";
        projectUrl: "http://www.boost.org/";
        iconUrl:
        requireLicenseAcceptance: false;
        summary: A set of date-time libraries based on generic programming concepts.;
        description: A set of date-time libraries based on generic programming concepts.; 
        releaseNotes: "See http://www.boost.org/doc/libs/1_57_0/doc/html/date_time.html";
        copyright: Copyright 2014;
        tags: {};
    };

    files {

            #defines {
                INCLUDE = ${EXTERNALS_PATH}\boost_1_57_0\include\boost\;
                SDK = ${EXTERNALS_PATH}\boost_1_57_0\v120\;
                VERSION = 1_57;
            };

        nestedInclude: {
            #destination = ${d_include}\boost_1_57_0\include\boost\date_time;
             "${INCLUDE}date_time\**\*"
        };

        [x86,v120,debug] {  
            lib: ${SDK}Win32\boost_date_time-vc120-mt-gd-${VERSION}.lib;
            bin: ${SDK}Win32\boost_date_time-vc120-mt-gd-${VERSION}.dll;
        }

        [x86,v120,release] {  
            lib: ${SDK}Win32\boost_date_time-vc120-mt-${VERSION}.lib;
            bin: ${SDK}Win32\boost_date_time-vc120-mt-${VERSION}.dll;
        }

        [x64,v120,debug] {  
            lib: ${SDK}x64\boost_date_time-vc120-mt-gd-${VERSION}.lib;
            bin: ${SDK}x64\boost_date_time-vc120-mt-gd-${VERSION}.dll;
        }

        [x64,v120,release] {  
            lib: ${SDK}x64\boost_date_time-vc120-mt-${VERSION}.lib;
            bin: ${SDK}x64\boost_date_time-vc120-mt-${VERSION}.dll;
        }
    }
}

When I run this script i get the following warnings:

PS C:\Workspace\foundations\sw_foundations\release\boost> Write-NuGetPackage .\date_time.autopkg
WARNING: ProcessNugetFiles:WARNING: file selection 'C:\workspace\externals\boost_1_57_0\include\boost\date_time\**\*'
failed to find any files
WARNING: ProcessNugetFiles:WARNING: file selection
'C:\workspace\externals\boost_1_57_0\v120\Win32\boost_date_time-vc120-mt-gd-1_57.lib' failed to find any files
WARNING: ProcessNugetFiles:WARNING: file selection
'C:\workspace\externals\boost_1_57_0\v120\Win32\boost_date_time-vc120-mt-gd-1_57.dll' failed to find any files
WARNING: ProcessNugetFiles:WARNING: file selection
'C:\workspace\externals\boost_1_57_0\v120\Win32\boost_date_time-vc120-mt-1_57.lib' failed to find any files
WARNING: ProcessNugetFiles:WARNING: file selection
'C:\workspace\externals\boost_1_57_0\v120\Win32\boost_date_time-vc120-mt-1_57.dll' failed to find any files
WARNING: ProcessNugetFiles:WARNING: file selection
'C:\workspace\externals\boost_1_57_0\v120\x64\boost_date_time-vc120-mt-gd-1_57.lib' failed to find any files
WARNING: ProcessNugetFiles:WARNING: file selection
'C:\workspace\externals\boost_1_57_0\v120\x64\boost_date_time-vc120-mt-gd-1_57.dll' failed to find any files
WARNING: ProcessNugetFiles:WARNING: file selection
'C:\workspace\externals\boost_1_57_0\v120\x64\boost_date_time-vc120-mt-1_57.lib' failed to find any files
WARNING: ProcessNugetFiles:WARNING: file selection
'C:\workspace\externals\boost_1_57_0\v120\x64\boost_date_time-vc120-mt-1_57.dll' failed to find any files

But all these files exist and these are their correct paths.

When I put the same script in the directory where boost resides and change INCLUDE and SDK to use relative paths the package builds successfully and correctly.

@dinazil dinazil changed the title Absolute Absolute file paths seem to be unsupported Dec 21, 2014
@sergey-shandar
Copy link

You may try to use getboost to build your own Boost NuGet packages and add symbols. A pull request to getboost with this feature will be welcome.

@dinazil
Copy link
Author

dinazil commented Mar 30, 2015

Cool, didn't know such a project existed. Will try it soon.

@AnEnglishmanInNorway
Copy link

Fair enough, getboost may have solved his problem. But what about the issue of absolute paths? I have exactly this problem when I have to specify the top level of my files with a full path (which varies, depending on whether it is a local build on my pc or a build on a TFS build machine).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants