From cc0f3bf97a5138e8c4f2e121f304eda7beac56a9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 29 Oct 2018 00:02:22 +0100 Subject: Add cygwin support --- src/FileUtil.cpp | 2 +- src/main.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/FileUtil.cpp b/src/FileUtil.cpp index d07a074..2a0b290 100644 --- a/src/FileUtil.cpp +++ b/src/FileUtil.cpp @@ -16,7 +16,7 @@ using namespace std; -#if OS_TYPE != OS_TYPE_LINUX && OS_TYPE != OS_TYPE_APPLE && OS_TYPE != OS_TYPE_WINDOWS +#if (OS_TYPE != OS_TYPE_LINUX && OS_TYPE != OS_TYPE_APPLE && OS_TYPE != OS_TYPE_WINDOWS) || defined(__CYGWIN__) #define stat64 stat #endif diff --git a/src/main.cpp b/src/main.cpp index 1265d3d..ab8cd59 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -101,6 +101,10 @@ using namespace std::chrono; // TODO: If dependencies are using a version that is not within our dependency version range then ask the user if they still want to use the dependency (the closest matching dependency). // Currently if dependency version does not match, build will always fail with no option to ignore version mismatch. +// TODO: Move global lib dependencies into different directories depending on the target platform, because one system can be used +// to build packages for the host platfrom and another platform by cross compilation. If cross compilation is used and a dependency is installed that is not compatible with the target platform then the dependency that fits the target platform wont be downloaded +// since the dependency already exists locally (but for a different platform). + #if OS_FAMILY == OS_FAMILY_POSIX #define fout std::cout #define ferr std::cerr -- cgit v1.2.3