Skip to content

Instantly share code, notes, and snippets.

@ShinNoNoir
Created July 19, 2017 09:54
Show Gist options
  • Save ShinNoNoir/067ad39a34315aa85e9b85906541bf03 to your computer and use it in GitHub Desktop.
Save ShinNoNoir/067ad39a34315aa85e9b85906541bf03 to your computer and use it in GitHub Desktop.
CoApp autopkg example for OpenCV
// https://github.com/coapp/coapp.powershell/issues/112
configurations {
Toolset {
key : "PlatformToolset";
choices: { v141 };
v141.condition = "( $(PlatformToolset.ToLower().IndexOf('v141')) > -1 Or '$(PlatformToolset.ToLower())' == 'windowskernelmodedriver8.0' Or '$(PlatformToolset.ToLower())' == 'windowsapplicationfordrivers8.0' Or '$(PlatformToolset.ToLower())' == 'windowsusermodedriver8.0' )";
};
}
nuget {
nuspec {
id = opencv-with-contrib;
version: 3.3.0-github;
title: "OpenCV with extra modules";
authors: {OpenCV team};
owners: {Raynor Vliegendhart};
licenseUrl: "http://opencv.org/license.html";
projectUrl: "http://opencv.org/";
iconUrl: "https://avatars1.githubusercontent.com/u/5009934?v=4&s=64";
requireLicenseAcceptance: false;
summary:Open Source Computer Vision Library;
description: @"OpenCV (Open Source Computer Vision Library) is released under a BSD license and hence it's free for both academic and commercial use. It has C++, C, Python and Java interfaces and supports Windows, Linux, Mac OS, iOS and Android. OpenCV was designed for computational efficiency and with a strong focus on real-time applications. Written in optimized C/C++, the library can take advantage of multi-core processing. Enabled with OpenCL, it can take advantage of the hardware acceleration of the underlying heterogeneous compute platform.
Adopted all around the world, OpenCV has more than 47 thousand people of user community and estimated number of downloads exceeding 14 million. Usage ranges from interactive art, to mines inspection, stitching maps on the web or through advanced robotics.
Note: This package contains extra modules which are not necessarily licensed under the same terms as OpenCV itself.
";
releaseNotes: "Built from GitHub source on 2017-07-17 13:30.";
copyright: Copyright 2017;
tags: { OpenCV, native, computer vision, CoApp };
};
files {
include: { "include\**\*" };
[x64,v141,debug] {
lib: x64\vc15\lib\*330d.lib;
// symbols: ...; // (INSTALL target does not produce pdb files)
bin: x64\vc15\bin\*330d.dll;
}
[x64,v141,release] {
lib: x64\vc15\lib\*330.lib;
// symbols: ...; // (INSTALL target does not produce pdb files)
bin: x64\vc15\bin\*330.dll;
}
}
targets {
Defines += HAS_OPENCV;
Defines += HAS_OPENCV_CONTRIB;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment