-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into airloop-hvac-unitary-sys-opmethod
- Loading branch information
Showing
3,916 changed files
with
21,432 additions
and
101,854 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
#ifndef OPENSTUDIO_HXX | ||
#define OPENSTUDIO_HXX | ||
|
||
#include <string> | ||
#include <string_view> | ||
|
||
// Support for Ninja on Windows (Ninja isn't multi-configuration while MSVC is) | ||
#cmakedefine NINJA | ||
|
||
// Return the version in MAJOR.MINOR.PATCH format (eg '3.0.0') | ||
inline std::string openStudioVersion() { | ||
return "${OPENSTUDIO_VERSION}"; | ||
} | ||
|
||
// Includes prerelease tag if any, and build sha, eg: '3.0.0-rc1+baflkdhsia' | ||
inline std::string openStudioLongVersion() { | ||
return "${OPENSTUDIO_LONG_VERSION}"; | ||
} | ||
|
||
inline std::string openStudioVersionMajor() { | ||
return "${PROJECT_VERSION_MAJOR}"; | ||
} | ||
|
||
inline std::string openStudioVersionMinor() { | ||
return "${PROJECT_VERSION_MINOR}"; | ||
} | ||
|
||
inline std::string openStudioVersionPatch() { | ||
return "${PROJECT_VERSION_PATCH}"; | ||
} | ||
|
||
inline std::string openStudioVersionPrerelease() { | ||
return "${PROJECT_VERSION_PRERELEASE}"; | ||
} | ||
|
||
inline std::string openStudioVersionBuildSHA() { | ||
return "${PROJECT_VERSION_BUILD}"; | ||
} | ||
|
||
inline int energyPlusVersionMajor() { | ||
return ${ENERGYPLUS_VERSION_MAJOR}; | ||
} | ||
|
||
inline int energyPlusVersionMinor() { | ||
return ${ENERGYPLUS_VERSION_MINOR}; | ||
} | ||
|
||
inline int energyPlusVersionPatch() { | ||
return ${ENERGYPLUS_VERSION_PATCH}; | ||
} | ||
|
||
inline std::string energyPlusVersion() { | ||
return "${ENERGYPLUS_VERSION}"; | ||
} | ||
|
||
inline std::string energyPlusBuildSHA() { | ||
return "${ENERGYPLUS_BUILD_SHA}"; | ||
} | ||
|
||
inline std::string rubyLibDir() { | ||
return "${PROJECT_SOURCE_DIR}/ruby/"; | ||
} | ||
|
||
inline std::string rubyOpenStudioDir() { | ||
#ifdef WIN32 | ||
# ifdef NINJA | ||
return "${PROJECT_BINARY_DIR}/ruby/"; | ||
# else | ||
return "${PROJECT_BINARY_DIR}/ruby/" + std::string(CMAKE_INTDIR) + "/"; | ||
# endif | ||
#else | ||
return "${PROJECT_BINARY_DIR}/ruby/"; | ||
#endif | ||
} | ||
|
||
namespace openstudio { | ||
namespace detail { | ||
|
||
inline constexpr int cx_openStudioVersionMajor() { | ||
return ${PROJECT_VERSION_MAJOR}; | ||
} | ||
inline constexpr int cx_openStudioVersionMinor() { | ||
return ${PROJECT_VERSION_MINOR}; | ||
} | ||
inline constexpr int cx_openStudioVersionPatch() { | ||
return ${PROJECT_VERSION_PATCH}; | ||
} | ||
inline constexpr std::string_view cx_openStudioVersion() { | ||
return "${OPENSTUDIO_VERSION}"; | ||
} | ||
|
||
} // namespace detail | ||
} // namespace openstudio | ||
|
||
#endif // OPENSTUDIO_HXX |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.