Add npm, maven, conan configs (excluding cache)

This commit is contained in:
Riz Ashraf
2026-02-12 09:59:21 +00:00
parent adabc7fff2
commit c6e86575d0
62 changed files with 7292 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
Run below command to install the configuration:
conan config install {replace_this_with_clone_url_of_this_repo}
+5733
View File
File diff suppressed because it is too large Load Diff
+26
View File
@@ -0,0 +1,26 @@
[log]
run_to_output = True # environment CONAN_LOG_RUN_TO_OUTPUT
run_to_file = False # environment CONAN_LOG_RUN_TO_FILE
level = 50 # environment CONAN_LOGGING_LEVEL
print_run_commands = True # environment CONAN_PRINT_RUN_COMMANDS
[general]
default_profile = default
compression_level = 9 # environment CONAN_COMPRESSION_LEVEL
sysrequires_sudo = True # environment CONAN_SYSREQUIRES_SUDO
request_timeout = 600 # environment CONAN_REQUEST_TIMEOUT (seconds)
default_package_id_mode = semver_direct_mode # environment CONAN_DEFAULT_PACKAGE_ID_MODE
skip_vs_projects_upgrade = True
msbuild_verbosity = normal # environment CONAN_MSBUILD_VERBOSITY
revisions_enabled = 1
scm_to_conandata = 1
use_always_short_paths = True
[storage]
path = ./data
[proxies]
[hooks]
attribute_checker
+18
View File
@@ -0,0 +1,18 @@
[
{
"type": "git",
"uri": "ssh://git@bitbucket.ingg.com:7999/nov/conan-config.git",
"verify_ssl": true,
"args": null,
"source_folder": null,
"target_folder": null
},
{
"type": "git",
"uri": "ssh://git@bitbucket.ingg.com:7999/ccl/conan-settings.git",
"verify_ssl": true,
"args": "--single-branch -b master --filter=blob:none",
"source_folder": null,
"target_folder": null
}
]
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
data
*.db
config_install.json
editable_packages.json
version.txt
*.pem
artifacts.properties
@@ -0,0 +1,8 @@
def pre_export(output, conanfile, conanfile_path, reference, **kwargs):
# Check basic meta-data
for field in ["url", "license", "description"]:
field_value = getattr(conanfile, field, None)
if not field_value:
output.warn("Conanfile doesn't have '%s'. It is recommended to add it as attribute"
% field)
@@ -0,0 +1,8 @@
from conans import tools
import requests
def pre_download_recipe(output, reference, remote, **kwargs):
raise Exception(f"recipe downloads disabled: {reference}")
def pre_download_package(output, conanfile_path, reference, package_id, remote, **kwargs):
raise Exception(f"package downloads disabled: {reference} ({package_id})")
+24
View File
@@ -0,0 +1,24 @@
# use like so:
#from conans.paths import get_conan_user_home
#exec(open(f"{get_conan_user_home()}/.conan/inseinc/boot.py").read())
#
#from inseinc.versioning import use_nuget_versioning
#use_nuget_versioning()
import importlib.util
import sys
from conans.paths import get_conan_user_home
modules_dir = f"{get_conan_user_home()}/.conan/inseinc"
modules = {
"versioning": "versioning.py",
}
for modname, path in modules.items():
modname = f"inseinc.{modname}"
if modname in sys.modules:
continue
spec = importlib.util.spec_from_file_location(modname, f"{modules_dir}/{path}")
mod = importlib.util.module_from_spec(spec)
sys.modules[modname] = mod
spec.loader.exec_module(mod)
+177
View File
@@ -0,0 +1,177 @@
import re
import os
min_version_format_rx = re.compile(r"^>=\s*(?P<min_version>[A-Za-z0-9\.\-]+)(\+[A-Za-z0-9\.\-\+]*)?\s*$")
semver_rx = re.compile(r"^(?P<version>[A-Za-z0-9\.\-]+)(\+[A-Za-z0-9\.\-\+]*)?$")
def use_nuget_versioning(enable_debug_log: bool = False):
if NugetStyleRangeResolver.using_nuget_versioning:
return
NugetStyleRangeResolver.using_nuget_versioning = True
NugetStyleRangeResolver.enable_debug_log = enable_debug_log
NugetStyleRangeResolver.override_conan1()
class NugetStyleRangeResolver:
replaced = False
using_nuget_versioning = False
enable_debug_log = False
@staticmethod
def debug_log(msg):
if NugetStyleRangeResolver.enable_debug_log:
print(f"[nuget versioning] {msg}")
@staticmethod
def info_log(msg):
print(f"[nuget versioning] {msg}")
@staticmethod
def override_conan1():
# https://github.com/conan-io/conan/blob/1.66.0/conans/model/requires.py
# https://github.com/conan-io/conan/tree/1.66.0/conans/client/graph
# https://github.com/conan-io/conan/blob/1.66.0/conans/client/graph/graph_builder.py
# https://github.com/conan-io/conan/blob/1.66.0/conans/client/graph/range_resolver.py
if NugetStyleRangeResolver.replaced:
return
NugetStyleRangeResolver.replaced = True
from conans.errors import ConanException
from conans.client.graph.range_resolver import satisfying, RangeResolver, _parse_versionexpr
from conans.search.search import search_recipes
from semver import make_range, semver as make_semver, InvalidTypeIncluded, Range
def min_satisfying(versions, range_, loose=False, include_prerelease=False):
try:
range_ob = make_range(range_, loose=loose)
except InvalidTypeIncluded:
raise
except ValueError as e:
return None
min_ = None
min_sv = None
for v in versions:
if range_ob.test(v, include_prerelease=include_prerelease): # satisfies(v, range_, loose=loose)
sv = make_semver(v, loose=loose)
if min_ is None or sv.compare(min_sv) == -1: # compare(max, v, true)
min_ = v
min_sv = sv
return min_
def satisfying(list_versions, versionexpr:str, result):
from semver import SemVer, Range, max_satisfying
import re
original_versionexpr = versionexpr
select_max = False
if versionexpr.startswith("+"):
versionexpr = versionexpr[1:]
select_max = True
else:
# minimum version selection doesn't care about upper bounds, so force it to true
include_prerelease = True
# fix upper bounds including prereleases
versionexpr = re.sub(r"(\<)(\d(\.\d)*)(\s|,|$)", r"\1\2-\4", versionexpr)
version_range, loose, include_prerelease = _parse_versionexpr(versionexpr, result)
NugetStyleRangeResolver.debug_log(f"{original_versionexpr} => {versionexpr}")
# Check version range expression
try:
act_range = Range(version_range, loose)
except ValueError:
raise ConanException("version range expression '%s' is not valid" % version_range)
# Validate all versions
candidates = {}
for v in list_versions:
try:
NugetStyleRangeResolver.debug_log(f"\t{v}")
ver = SemVer(v, loose=loose)
candidates[ver] = v
except (ValueError, AttributeError):
result.append("WARN: Version '%s' is not semver, cannot be compared with a range"
% str(v))
# Search best matching version in range
result = None
if select_max:
result = max_satisfying(candidates, act_range, loose=loose, include_prerelease=include_prerelease)
else:
result = min_satisfying(candidates, act_range, loose=loose, include_prerelease=True)
NugetStyleRangeResolver.debug_log(f"={result}")
return candidates.get(result)
def _resolve_local(self, search_ref, version_range):
local_found = search_recipes(self._cache, search_ref)
local_found = \
[ref for ref in local_found
if ref.user == search_ref.user and
ref.channel == search_ref.channel]
if local_found:
ret = self._resolve_version(version_range, local_found)
range_match = min_version_format_rx.search(version_range)
if ret is not None and range_match is not None:
min_version = range_match.group("min_version")
version_match = semver_rx.search(ret.version)
ret_version = version_match.group("version")
is_online = os.getenv("INSEINC_OFFLINE") != "1"
if is_online and min_version != ret_version:
NugetStyleRangeResolver.info_log(f"{ret}: Expected to find version {min_version} via {version_range}, forcing update")
return None
return ret
og_conflicting_references = None
@staticmethod
def _conflicting_references(previous, new_ref, consumer_ref=None):
try:
if previous.ref.copy_clear_rev() != new_ref.copy_clear_rev():
if consumer_ref:
new_ref_semver = make_semver(new_ref.version, loose=True)
previous_semver = make_semver(previous.ref.version, loose=True)
latest_version = None
if new_ref_semver.compare(previous_semver) == -1:
latest_version = previous.ref
else:
latest_version = new_ref
return ("Conflict in %s:\n"
" %s\n required from %s\n"
" %s\n required from %s\n"
"To resolve the conflict, upgrade the dependency with:\n"
" self.requires(\"%s\", override=True)"
% (consumer_ref,
new_ref, consumer_ref,
previous.ref, next(iter(previous.dependants)).src,
latest_version))
return "Unresolvable conflict between {} and {}".format(previous.ref, new_ref)
except:
return og_conflicting_references(previous, new_ref, consumer_ref)
# now replace the functions
import importlib
graph_builder = importlib.import_module("conans.client.graph.graph_builder")
og_conflicting_references = graph_builder.DepsGraphBuilder._conflicting_references
graph_builder.DepsGraphBuilder._conflicting_references = _conflicting_references
range_resolver = importlib.import_module("conans.client.graph.range_resolver")
range_resolver.satisfying = satisfying
range_resolver.RangeResolver._resolve_local = _resolve_local
importlib.reload(importlib.import_module("conans.model.graph_lock")) # TODO: this?
importlib.reload(importlib.import_module("conans.client.graph.graph_builder")) # TODO: this?
@staticmethod
def override_conan2():
from conans.client.graph.range_resolver import RangeResolver
@staticmethod
def _resolve_version(version_range, refs_found, resolve_prereleases):
print(f"replaced function: {version_range}")
for ref in sorted(refs_found):
if version_range.contains(ref.version, resolve_prereleases):
return ref
RangeResolver._resolve_version = _resolve_version
+1
View File
@@ -0,0 +1 @@
include(debug_x86)
+16
View File
@@ -0,0 +1,16 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Visual Studio
compiler.version=10
compiler.toolset=v100
build_type=Debug
compiler.runtime=MTd
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+17
View File
@@ -0,0 +1,17 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Visual Studio
compiler.version=12
compiler.toolset=v120_xp
build_type=Debug
compiler.runtime=MTd
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+16
View File
@@ -0,0 +1,16 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Visual Studio
compiler.version=15
compiler.toolset=v141_xp
build_type=Debug
compiler.runtime=MTd
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+18
View File
@@ -0,0 +1,18 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=msvc
compiler.version=191
compiler.toolset=v141_xp
build_type=Debug
compiler.runtime=static
compiler.runtime_type=Debug
compiler.cppstd=17
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+17
View File
@@ -0,0 +1,17 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=msvc
compiler.cppstd=20
compiler.version=193
compiler.runtime=static
compiler.runtime_type=Debug
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+17
View File
@@ -0,0 +1,17 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
build_type=Debug
compiler=msvc
compiler.cppstd=20
compiler.version=193
compiler.runtime=static
compiler.runtime_type=Debug
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+11
View File
@@ -0,0 +1,11 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Any
compiler.runtime=Any
build_type=Debug
[options]
[env]
+11
View File
@@ -0,0 +1,11 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Any
compiler.runtime=Any
build_type=Debug
[options]
[env]
+11
View File
@@ -0,0 +1,11 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Any
compiler.runtime=Any
build_type=Release
[options]
[env]
+18
View File
@@ -0,0 +1,18 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=msvc
compiler.version=191
compiler.toolset=v141_xp
build_type=Debug
compiler.runtime=dynamic
compiler.runtime_type=Debug
compiler.cppstd=17
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+18
View File
@@ -0,0 +1,18 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=msvc
compiler.version=191
compiler.toolset=v141_xp
build_type=Debug
compiler.runtime=static
compiler.runtime_type=Debug
compiler.cppstd=17
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
@@ -0,0 +1,18 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=msvc
compiler.version=191
compiler.toolset=v141_xp
build_type=Release
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.cppstd=17
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
@@ -0,0 +1,18 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=msvc
compiler.version=191
compiler.toolset=v141_xp
build_type=Release
compiler.runtime=static
compiler.runtime_type=Release
compiler.cppstd=17
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+16
View File
@@ -0,0 +1,16 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Visual Studio
compiler.version=15
compiler.toolset=v141_xp
build_type=Profiler
compiler.runtime=MT
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+1
View File
@@ -0,0 +1 @@
include(release_x86)
+16
View File
@@ -0,0 +1,16 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Visual Studio
compiler.version=10
compiler.toolset=v100
build_type=Release
compiler.runtime=MT
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+17
View File
@@ -0,0 +1,17 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Visual Studio
compiler.version=12
compiler.toolset=v120_xp
build_type=Release
compiler.runtime=MT
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+13
View File
@@ -0,0 +1,13 @@
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=12
compiler.toolset=v120_xp
compiler.runtime=MD
build_type=Release
[options]
[build_requires]
[env]
+16
View File
@@ -0,0 +1,16 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Visual Studio
compiler.version=15
compiler.toolset=v141_xp
build_type=Release
compiler.runtime=MT
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+18
View File
@@ -0,0 +1,18 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=msvc
compiler.version=191
compiler.toolset=v141_xp
build_type=Release
compiler.runtime=static
compiler.runtime_type=Release
compiler.cppstd=17
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+13
View File
@@ -0,0 +1,13 @@
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=12
compiler.toolset=v142
compiler.runtime=MD
build_type=Release
[options]
[build_requires]
[env]
+13
View File
@@ -0,0 +1,13 @@
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=16
compiler.toolset=v142
compiler.runtime=MT
build_type=Release
[options]
[build_requires]
[env]
+17
View File
@@ -0,0 +1,17 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=20
compiler.version=193
compiler.runtime=static
compiler.runtime_type=Release
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+17
View File
@@ -0,0 +1,17 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=20
compiler.version=193
compiler.runtime=static
compiler.runtime_type=Release
[options]
[env]
CONAN_DISABLE_STRICT_MODE=1
[conf]
tools.microsoft.msbuild:verbosity=Normal
+13
View File
@@ -0,0 +1,13 @@
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=16
compiler.toolset=v142
compiler.runtime=MD
build_type=Release
[options]
[build_requires]
[env]
+13
View File
@@ -0,0 +1,13 @@
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=8
compiler.toolset=v80
compiler.runtime=MD
build_type=Release
[options]
[build_requires]
[env]
+13
View File
@@ -0,0 +1,13 @@
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=9
compiler.toolset=v90
compiler.runtime=MD
build_type=Release
[options]
[build_requires]
[env]
+13
View File
@@ -0,0 +1,13 @@
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=15
compiler.toolset=v90
compiler.runtime=MD
build_type=Release
[options]
[build_requires]
[env]
+13
View File
@@ -0,0 +1,13 @@
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=16
compiler.toolset=v90
compiler.runtime=MD
build_type=Release
[options]
[build_requires]
[env]
+11
View File
@@ -0,0 +1,11 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Any
compiler.runtime=Any
build_type=Release
[options]
[env]
+11
View File
@@ -0,0 +1,11 @@
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Any
compiler.runtime=Any
build_type=Release
[options]
[env]
+9
View File
@@ -0,0 +1,9 @@
{
"remotes": [
{
"name": "inseinc",
"url": "https://artifactory.ingg.com/artifactory/api/conan/inseinc_retail_conan",
"verify_ssl": true
}
]
}
+153
View File
@@ -0,0 +1,153 @@
# Only for cross building, 'os_build/arch_build' is the system that runs Conan
os_build: [Windows, WindowsStore, Linux, Macos, FreeBSD, SunOS, AIX, VxWorks]
arch_build: [x86, x86_64, ppc32be, ppc32, ppc64le, ppc64, armv5el, armv5hf, armv6, armv7, armv7hf, armv7s, armv7k, armv8, armv8_32, armv8.3, sparc, sparcv9, mips, mips64, avr, s390, s390x, sh4le, e2k-v2, e2k-v3, e2k-v4, e2k-v5, e2k-v6, e2k-v7]
# Only for building cross compilation tools, 'os_target/arch_target' is the system for
# which the tools generate code
os_target: [Windows, Linux, Macos, Android, iOS, watchOS, tvOS, FreeBSD, SunOS, AIX, Arduino, Neutrino]
arch_target: [x86, x86_64, ppc32be, ppc32, ppc64le, ppc64, armv5el, armv5hf, armv6, armv7, armv7hf, armv7s, armv7k, armv8, armv8_32, armv8.3, sparc, sparcv9, mips, mips64, avr, s390, s390x, asm.js, wasm, sh4le, e2k-v2, e2k-v3, e2k-v4, e2k-v5, e2k-v6, e2k-v7, xtensalx6, xtensalx106, xtensalx7]
# Rest of the settings are "host" settings:
# - For native building/cross building: Where the library/program will run.
# - For building cross compilation tools: Where the cross compiler will run.
os:
Windows:
subsystem: [None, cygwin, msys, msys2, wsl]
WindowsStore:
version: ["8.1", "10.0"]
WindowsCE:
platform: ANY
version: ["5.0", "6.0", "7.0", "8.0"]
Linux:
iOS:
version: &ios_version
["7.0", "7.1", "8.0", "8.1", "8.2", "8.3", "9.0", "9.1", "9.2", "9.3", "10.0", "10.1", "10.2", "10.3",
"11.0", "11.1", "11.2", "11.3", "11.4", "12.0", "12.1", "12.2", "12.3", "12.4",
"13.0", "13.1", "13.2", "13.3", "13.4", "13.5", "13.6", "13.7",
"14.0", "14.1", "14.2", "14.3", "14.4", "14.5", "14.6", "14.7", "14.8",
"15.0", "15.1", "15.2", "15.3", "15.4", "15.5", "15.6", "16.0", "16.1"]
sdk: [None, "iphoneos", "iphonesimulator"]
sdk_version: [None, "11.3", "11.4", "12.0", "12.1", "12.2", "12.4",
"13.0", "13.1", "13.2", "13.4", "13.5", "13.6", "13.7",
"14.0", "14.1", "14.2", "14.3", "14.4", "14.5", "15.0", "15.2", "15.4", "15.5", "16.0", "16.1"]
watchOS:
version: ["4.0", "4.1", "4.2", "4.3", "5.0", "5.1", "5.2", "5.3", "6.0", "6.1", "6.2",
"7.0", "7.1", "7.2", "7.3", "7.4", "7.5", "7.6", "8.0", "8.1", "8.3", "8.4", "8.5", "8.6", "8.7", "9.0", "9.1"]
sdk: [None, "watchos", "watchsimulator"]
sdk_version: [None, "4.3", "5.0", "5.1", "5.2", "5.3", "6.0", "6.1", "6.2",
"7.0", "7.1", "7.2", "7.4", "8.0", "8.0.1", "8.3", "8.5", "9.0", "9.1"]
tvOS:
version: ["11.0", "11.1", "11.2", "11.3", "11.4", "12.0", "12.1", "12.2", "12.3", "12.4",
"13.0", "13.2", "13.3", "13.4", "14.0", "14.2", "14.3", "14.4", "14.5", "14.6", "14.7",
"15.0", "15.1", "15.2", "15.3", "15.4", "15.5", "15.6", "16.0", "16.1"]
sdk: [None, "appletvos", "appletvsimulator"]
sdk_version: [None, "11.3", "11.4", "12.0", "12.1", "12.2", "12.4",
"13.0", "13.1", "13.2", "13.4", "14.0", "14.2", "14.3", "14.5", "15.0", "15.2", "15.4", "16.0", "16.1"]
Macos:
version: [None, "10.6", "10.7", "10.8", "10.9", "10.10", "10.11", "10.12", "10.13", "10.14", "10.15", "11.0", "12.0", "13.0"]
sdk: [None, "macosx"]
sdk_version: [None, "10.13", "10.14", "10.15", "11.0", "11.1", "11.3", "12.0", "12.1", "12.3", "13.0"]
subsystem:
None:
catalyst:
ios_version: *ios_version
Android:
api_level: ANY
FreeBSD:
SunOS:
AIX:
Arduino:
board: ANY
Emscripten:
Neutrino:
version: ["6.4", "6.5", "6.6", "7.0", "7.1"]
baremetal:
VxWorks:
version: ["7"]
arch: [x86, x86_64, ppc32be, ppc32, ppc64le, ppc64, armv4, armv4i, armv5el, armv5hf, armv6, armv7, armv7hf, armv7s, armv7k, armv8, armv8_32, armv8.3, sparc, sparcv9, mips, mips64, avr, s390, s390x, asm.js, wasm, sh4le, e2k-v2, e2k-v3, e2k-v4, e2k-v5, e2k-v6, e2k-v7, xtensalx6, xtensalx106, xtensalx7]
compiler:
Any: # inseinc compiler
runtime: [Any]
sun-cc:
version: ["5.10", "5.11", "5.12", "5.13", "5.14", "5.15"]
threads: [None, posix]
libcxx: [libCstd, libstdcxx, libstlport, libstdc++]
gcc: &gcc
version: ["4.1", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9",
"5", "5.1", "5.2", "5.3", "5.4", "5.5",
"6", "6.1", "6.2", "6.3", "6.4", "6.5",
"7", "7.1", "7.2", "7.3", "7.4", "7.5",
"8", "8.1", "8.2", "8.3", "8.4", "8.5",
"9", "9.1", "9.2", "9.3", "9.4", "9.5",
"10", "10.1", "10.2", "10.3", "10.4",
"11", "11.1", "11.2", "11.3",
"12", "12.1", "12.2"]
libcxx: [libstdc++, libstdc++11]
threads: [None, posix, win32] # Windows MinGW
exception: [None, dwarf2, sjlj, seh] # Windows MinGW
cppstd: [None, 98, gnu98, 11, gnu11, 14, gnu14, 17, gnu17, 20, gnu20, 23, gnu23]
Visual Studio: &visual_studio
runtime: [MD, MT, MTd, MDd]
version: ["8", "9", "10", "11", "12", "14", "15", "16", "17"]
toolset: [None, v90, v100, v110, v110_xp, v120, v120_xp,
v140, v140_xp, v140_clang_c2, LLVM-vs2012, LLVM-vs2012_xp,
LLVM-vs2013, LLVM-vs2013_xp, LLVM-vs2014, LLVM-vs2014_xp,
LLVM-vs2017, LLVM-vs2017_xp, v141, v141_xp, v141_clang_c2, v142,
llvm, ClangCL, v143]
cppstd: [None, 14, 17, 20, 23]
msvc:
version: [170, 180, 190, 191, 192, 193]
update: [None, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
runtime: [static, dynamic]
runtime_type: [Debug, Release]
cppstd: [98, 14, 17, 20, 23]
toolset: [None, v110_xp, v120_xp, v140_xp, v141_xp, v142, v143]
clang:
version: ["3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "4.0",
"5.0", "6.0", "7.0", "7.1",
"8", "9", "10", "11", "12", "13", "14", "15", "16"]
libcxx: [None, libstdc++, libstdc++11, libc++, c++_shared, c++_static]
cppstd: [None, 98, gnu98, 11, gnu11, 14, gnu14, 17, gnu17, 20, gnu20, 23, gnu23]
runtime: [None, MD, MT, MTd, MDd, static, dynamic]
runtime_type: [None, Debug, Release]
runtime_version: [None, v140, v141, v142, v143]
apple-clang: &apple_clang
version: ["5.0", "5.1", "6.0", "6.1", "7.0", "7.3", "8.0", "8.1", "9.0", "9.1", "10.0", "11.0", "12.0", "13", "13.0", "13.1", "14", "14.0"]
libcxx: [libstdc++, libc++]
cppstd: [None, 98, gnu98, 11, gnu11, 14, gnu14, 17, gnu17, 20, gnu20, 23, gnu23]
intel:
version: ["11", "12", "13", "14", "15", "16", "17", "18", "19", "19.1"]
update: [None, ANY]
base:
gcc:
<<: *gcc
threads: [None]
exception: [None]
Visual Studio:
<<: *visual_studio
apple-clang:
<<: *apple_clang
intel-cc:
version: ["2021.1", "2021.2", "2021.3"]
update: [None, ANY]
mode: ["icx", "classic", "dpcpp"]
libcxx: [None, libstdc++, libstdc++11, libc++]
cppstd: [None, 98, gnu98, 03, gnu03, 11, gnu11, 14, gnu14, 17, gnu17, 20, gnu20, 23, gnu23]
runtime: [None, static, dynamic]
runtime_type: [None, Debug, Release]
qcc:
version: ["4.4", "5.4", "8.3"]
libcxx: [cxx, gpp, cpp, cpp-ne, accp, acpp-ne, ecpp, ecpp-ne]
cppstd: [None, 98, gnu98, 11, gnu11, 14, gnu14, 17, gnu17]
mcst-lcc:
version: ["1.19", "1.20", "1.21", "1.22", "1.23", "1.24", "1.25"]
base:
gcc:
<<: *gcc
threads: [None]
exceptions: [None]
build_type: [None, Debug, Release, RelWithDebInfo, MinSizeRel, Debug_v100, Release_v100, Debug_v120, Release_v120, Debug_v141, Release_v141, Debug_v143, Release_v143]
cppstd: [None, 98, gnu98, 11, gnu11, 14, gnu14, 17, gnu17, 20, gnu20, 23, gnu23] # Deprecated, use compiler.cppstd
+27
View File
@@ -0,0 +1,27 @@
# Only for cross building, 'os_build/arch_build' is the system that runs Conan
os_build: [Windows]
arch_build: [x86, x86_64]
# Only for building cross compilation tools, 'os_target/arch_target' is the system for
# which the tools generate code
os_target: [Windows]
arch_target: [x86, x86_64]
# Rest of the settings are "host" settings:
# - For native building/cross building: Where the library/program will run.
# - For building cross compilation tools: Where the cross compiler will run.
os:
Windows:
subsystem: [None]
arch: [x86, x86_64]
compiler:
Visual Studio: &visual_studio
runtime: [MD, MT, MTd, MDd]
version: ["8", "9", "10", "12", "14", "15", "16"]
toolset: [v80, v90, v100, v120, v120_xp, v141, v142]
cppstd: [None, 11, 14, 17, 20]
build_type: [Debug, Release]
cppstd: [None, 98, gnu98, 11, gnu11, 14, gnu14, 17, gnu17, 20, gnu20] # Deprecated, use compiler.cppstd
+27
View File
@@ -0,0 +1,27 @@
# Only for cross building, 'os_build/arch_build' is the system that runs Conan
os_build: [Windows]
arch_build: [x86, x86_64]
# Only for building cross compilation tools, 'os_target/arch_target' is the system for
# which the tools generate code
os_target: [Windows]
arch_target: [x86, x86_64]
# Rest of the settings are "host" settings:
# - For native building/cross building: Where the library/program will run.
# - For building cross compilation tools: Where the cross compiler will run.
os:
Windows:
subsystem: [None]
arch: [x86, x86_64]
compiler:
Visual Studio: &visual_studio
runtime: [MD, MT, MTd, MDd]
version: ["8", "9", "10", "12", "14", "15", "16"]
toolset: [v80, v90, v100, v120, v120_xp, v141, v142]
cppstd: [None, 11, 14, 17, 20]
build_type: [Debug, Release]
cppstd: [None, 98, gnu98, 11, gnu11, 14, gnu14, 17, gnu17, 20, gnu20] # Deprecated, use compiler.cppstd
@@ -0,0 +1,75 @@
#conan create . novoline/stable
from conans import ConanFile, CMake, tools, MSBuild
import yaml
import os
import glob
import shutil
import subprocess
import csv
from io import StringIO
from pathlib import Path
class {{package_name}}Conan(ConanFile):
license = "© Copyright 2020 | Inspired Entertainment, Inc."
url = "https://bitbucket.ingg.com/projects/NOV/repos/multipackage_repos/browse"
#description = "<Description of {{package_name}} here>"
topics = ("gds", "multipackage", "novoline")
settings = "os", "compiler", "build_type", "arch"
pkg_folder_name = "NovoLine.MultiSystem.Base.Pkg"
scm = {
"type": "git",
"url": "auto",
"revision": "auto",
}
def requirements(self):
self.requires("gds-tool/1.0.6@novoline/stable")
def copy__(self, file, src, dst, fromSrc=False):
os.makedirs(dst, exist_ok=True)
srcFullPath = ''
if fromSrc:
srcFullPath = os.path.join(self.pkg_folder_name, src, file)
shutil.copy(srcFullPath, dst)
else:
srcFullPath = os.path.join(src, file)
self.copy(file, src=src, dst=dst)
dstFullPath = os.path.join(dst, file)
if not Path(dstFullPath).is_file():
raise FileNotFoundError(f'{srcFullPath} {dst}')
def imports(self):
MODULE_DIR = 'DIR/'
DST_DIR = f'{MODULE_DIR}/bin_enc'
os.makedirs(os.path.dirname(MODULE_DIR), exist_ok=True)
shutil.copy(f"{pkg_folder_name}/{MODULE_DIR}.nsi",MODULE_DIR)
self.copy("*", src="gds")
def run_command(self, command):
data = StringIO(command)
reader = csv.reader(data, delimiter=' ')
args = list(reader)
print(args)
ret = subprocess.run(args[0]).returncode
if ret != 0:
raise Exception(f"Error: {command}")
def build(self):
#use single quote outside and double quotes inside
self.run_command(f'python createGdsPackage.py --pname "{self.name}" --pver "{self.version}" --pfolder "{pkg_folder_name}" --btype "{self.settings.build_type}"')
def package(self):
self.copy("*.gds", src=f"outputs")
def set_version(self):
self.version = "{{version}}"
def set_name(self):
self.name = "{{name}}"
@@ -0,0 +1,51 @@
#conan create . novoline/stable -pr release_120
#conan create . novoline/stable -pr release_120 -o pkg-name:header_only=False
from conans import ConanFile, CMake, tools, MSBuild
import yaml
import os
import glob
class {{package_name}}Conan(ConanFile):
license = "© Copyright 2020 | Inspired Entertainment, Inc."
url = f"https://bitbucket.ingg.com/projects/NOV/repos/{{name}}/browse"
#description = "<Description of {{package_name}} here>"
topics = ("plugin", "novoline")
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True],
"header_only": [True, False]}
default_options = {"shared": True,
"header_only": True}
generators = "visual_studio"
scm = {
"type": "git",
"url": "auto",
"revision": "auto",
}
def requirements(self):
self.requires("nl_sdk/1.0.0@novoline/stable")
def imports(self):
self.copy("*")
def build(self):
msbuild = MSBuild(self)
msbuild.build(glob.glob("*.sln")[0])
def package_id(self):
if self.options.header_only:
print(f'{self.name}/{self.version} headeronly package')
self.info.header_only()
def package(self):
self.copy("*.dll", src=f"Out/{self.settings.build_type}", keep_path=False)
def set_version(self):
self.version = "1.0.0"
def set_name(self):
git = tools.Git(folder=self.recipe_folder)
_remote_url = git.get_remote_url()
self.name = os.path.splitext(os.path.basename(_remote_url))[0]
+1
View File
@@ -0,0 +1 @@
1.66.0