-
Notifications
You must be signed in to change notification settings - Fork 66
[ML] More CMake tidyups #2347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[ML] More CMake tidyups #2347
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7c89100
[ML] More CMake tidyups
droberts195 61013a7
Doh!
droberts195 c5a750a
Include all variations of CMake build directory in Git/Docker ignores
droberts195 1dc1ef4
Merge branch 'main' into cmake_tidyups
droberts195 4d6b3b1
Fix .gitignore
droberts195 711c60f
Shouldn't hardcode "Release" for Docker builds
droberts195 69a651c
Remove duplicate logging
droberts195 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,31 +1,30 @@ | ||
| @echo off | ||
| REM | ||
| REM Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| REM or more contributor license agreements. Licensed under the Elastic License | ||
| REM 2.0 and the following additional limitation. Functionality enabled by the | ||
| REM files subject to the Elastic License 2.0 may only be used in production when | ||
| REM invoked by an Elasticsearch process with a license key installed that permits | ||
| REM use of machine learning features. You may not use this file except in | ||
| REM compliance with the Elastic License 2.0 and the foregoing additional | ||
| REM limitation. | ||
| REM | ||
|
|
||
| REM Set up a build environment, to ensure repeatable builds | ||
|
|
||
| REM Initialize the Visual Studio command prompt environment variables | ||
| call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 | ||
|
|
||
| REM Set %CPP_SRC_HOME% to be an absolute path to this script's location, as | ||
| REM different builds will come from different repositories and go to different | ||
| REM staging areas | ||
| SET CPP_SRC_HOME=%~dp0 | ||
|
|
||
| REM Logical filesystem root | ||
| SET ROOT=%CD:~0,2% | ||
|
|
||
| SET PATH=%ROOT%/PROGRA~1/CMake/bin;%CPP_SRC_HOME%/build/distribution/platform/windows-x86_64/bin;%PATH% | ||
|
|
||
| SET BOOST_ROOT=%ROOT%/usr/local | ||
|
|
||
| SET INCLUDE= | ||
| SET LIBPATH= | ||
| @echo off | ||
| rem | ||
| rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| rem or more contributor license agreements. Licensed under the Elastic License | ||
| rem 2.0 and the following additional limitation. Functionality enabled by the | ||
| rem files subject to the Elastic License 2.0 may only be used in production when | ||
| rem invoked by an Elasticsearch process with a license key installed that permits | ||
| rem use of machine learning features. You may not use this file except in | ||
| rem compliance with the Elastic License 2.0 and the foregoing additional | ||
| rem limitation. | ||
| rem | ||
|
|
||
| rem Set up a build environment, to ensure repeatable builds | ||
|
|
||
| rem Initialize the Visual Studio command prompt environment variables | ||
| call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 | ||
|
|
||
| rem Set %CPP_SRC_HOME% to be an absolute path to this script's location, as | ||
| rem different builds will come from different repositories and go to different | ||
| rem staging areas | ||
| set CPP_SRC_HOME=%~dp0 | ||
|
|
||
| rem Assume the drive letter where our 3rd party dependencies are installed under | ||
| rem \usr\local is the current drive at the time this script is run | ||
| set ROOT=%CD:~0,2% | ||
|
|
||
| set PATH=C:\Program Files\CMake\bin;%CPP_SRC_HOME%\build\distribution\platform\windows-x86_64\bin;%PATH% | ||
|
|
||
| set INCLUDE= | ||
| set LIBPATH= |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm about to raise a PR which replaces this bash script with a portable cmake equivalent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to be careful with this - something in release manager calls
3rd_party/dependency_report.sh. Any new script needs to be added in parallel and then the old one only removed after release manager is changed over.