-
Notifications
You must be signed in to change notification settings - Fork 29
WIP: build multiplier only using vcpkg #510
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
Draft
frabert
wants to merge
32
commits into
main
Choose a base branch
from
frabert/build-using-vcpkg
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 19 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6c217dd
WIP: build multiplier only using vcpkg
frabert 68169ea
Fix stubs install path
frabert ebaf242
Fix CI
frabert 7e333bd
Remove vendor submodules
frabert d728d85
Remove `VENDORED` config options
frabert a0f352d
Cache vcpkg binaries
frabert eda743c
Add custom triplets
frabert 1cf4644
Fix caching
frabert 770ad13
Fix capnproto portfile
frabert 1e223da
Fix triplet
frabert 29ebb16
Fix portfiles
frabert 60aa6fd
Fix portfiles
frabert c959faf
Temporarily disable vast
frabert 513f508
Fix gap portfile
frabert 945125c
Fix portfiles
frabert d61329a
Re-enable VAST dependency
frabert 890401c
Use clang for building
frabert 0c9ae35
Fix CI?
frabert 5f7522e
Link VAST::VASTFrontend
frabert fa328b2
Fixes and formatting
frabert 5e2f6df
Remove linker flags CMake file
frabert 8c277a3
Fix caching
frabert 020198d
Change cache path
frabert dbab145
Use registry submodule
frabert 58d341a
Merge remote-tracking branch 'origin/main' into frabert/build-using-v…
frabert 891055b
No ssh-agent
frabert 83fcb57
No heredocs
frabert 154c7b0
New try
frabert 43fec61
Build LTO and non-LTO versions, pin vcpkg version
frabert 05c979e
Update vcpkg registry
frabert 8153292
Allow installing tools to separate directory
frabert 4e0dd7a
Fixes
frabert 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,53 +0,0 @@ | ||
| [submodule "vendor/concurrentqueue/src"] | ||
| path = vendor/concurrentqueue/src | ||
| url = https://github.com/cameron314/concurrentqueue.git | ||
| shallow = true | ||
| [submodule "vendor/reproc/src"] | ||
| path = vendor/reproc/src | ||
| url = https://github.com/DaanDeMeyer/reproc.git | ||
| shallow = true | ||
| [submodule "vendor/capnproto/src"] | ||
| path = vendor/capnproto/src | ||
| url = https://github.com/capnproto/capnproto.git | ||
| shallow = true | ||
| [submodule "vendor/glog/src"] | ||
| path = vendor/glog/src | ||
| url = https://github.com/google/glog.git | ||
| shallow = true | ||
| [submodule "vendor/gflags/src"] | ||
| path = vendor/gflags/src | ||
| url = https://github.com/gflags/gflags.git | ||
| shallow = true | ||
| [submodule "vendor/zstd/src"] | ||
| path = vendor/zstd/src | ||
| url = https://github.com/facebook/zstd.git | ||
| shallow = true | ||
| [submodule "vendor/gap/src"] | ||
| path = vendor/gap/src | ||
| url = https://github.com/lifting-bits/gap.git | ||
| shallow = true | ||
| [submodule "vendor/pasta/src"] | ||
| path = vendor/pasta/src | ||
| url = https://github.com/trailofbits/pasta.git | ||
| branch = master | ||
| [submodule "vendor/llvm-project/src"] | ||
| path = vendor/llvm-project/src | ||
| url = https://github.com/trail-of-forks/llvm-project.git | ||
| branch = pasta-llvmorg-17.0.4 | ||
| [submodule "vendor/abseil/src"] | ||
| path = vendor/abseil/src | ||
| url = https://github.com/abseil/abseil-cpp.git | ||
| shallow = true | ||
| [submodule "vendor/re2/src"] | ||
| path = vendor/re2/src | ||
| url = https://github.com/google/re2.git | ||
| shallow = true | ||
| [submodule "vendor/rocksdb/src"] | ||
| path = vendor/rocksdb/src | ||
| url = https://github.com/facebook/rocksdb.git | ||
| [submodule "vendor/xxhash/src"] | ||
| path = vendor/xxhash/src | ||
| url = https://github.com/Cyan4973/xxHash.git | ||
| [submodule "vendor/vast/src"] | ||
| path = vendor/vast/src | ||
| url = https://github.com/trailofbits/vast.git | ||
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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| find_path(concurrentqueue_INCLUDE_DIR concurrentqueue.h PATH_SUFFIXES concurrentqueue) | ||
|
|
||
| include(FindPackageHandleStandardArgs) | ||
| find_package_handle_standard_args(concurrentqueue | ||
| REQUIRED_VARS concurrentqueue_INCLUDE_DIR) | ||
|
|
||
| # Create the imported target | ||
| if(concurrentqueue_FOUND) | ||
| set(concurrentqueue_INCLUDE_DIRS ${concurrentqueue_INCLUDE_DIR}) | ||
|
|
||
| if(NOT TARGET concurrentqueue) | ||
| add_library(concurrentqueue INTERFACE IMPORTED) | ||
| set_target_properties(concurrentqueue PROPERTIES | ||
| INTERFACE_INCLUDE_DIRECTORIES "${concurrentqueue_INCLUDE_DIRS}") | ||
| endif() | ||
| endif() |
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 |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO capnproto/capnproto | ||
| REF f5531718b95c2ad4fcedc624e0d46866455007f4 | ||
| SHA512 255c7a630096c322056775f98336df8d6ab0fb967226d9fca3db6c997dcb4e5580c9e3041aece7c7623ea006f2d857dea348399c9cc869ac8414cdfa36714a75 | ||
| HEAD_REF master | ||
| ) | ||
|
|
||
| vcpkg_cmake_configure( | ||
| SOURCE_PATH "${SOURCE_PATH}" | ||
| OPTIONS | ||
| -DCAPNP_LITE=OFF | ||
| -DEXTERNAL_CAPNP=OFF | ||
| -DBUILD_TESTING=OFF | ||
| -DWITH_ZLIB=AUTO | ||
| -DWITH_OPENSSL=AUTO | ||
| -DWITH_FIBERS=OFF | ||
| ) | ||
|
|
||
| vcpkg_cmake_install() | ||
|
|
||
| vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/CapnProto) | ||
|
|
||
| vcpkg_copy_tools(TOOL_NAMES capnp capnpc-c++ capnpc-capnp AUTO_CLEAN) | ||
|
|
||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") | ||
|
|
||
| # Handle copyright | ||
| file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) | ||
|
|
||
| vcpkg_fixup_pkgconfig() |
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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", | ||
| "name": "capnproto", | ||
| "version": "0.1.0", | ||
| "dependencies": [ | ||
| "vcpkg-cmake", | ||
| "vcpkg-cmake-config" | ||
| ] | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO lifting-bits/gap | ||
| REF ad8fefaf7235a9cd6670e272ca4487807ed81f8a | ||
| SHA512 9e9259fd4c3c96e31965613092f7dec9df5e236aa4ef9ac122378fe1708d4efd2fb6bd9837530e8474646dc3b0aa409781fd6f45fc28929d07bb54a95a072566 | ||
| HEAD_REF main | ||
| ) | ||
|
|
||
| vcpkg_cmake_configure( | ||
| SOURCE_PATH "${SOURCE_PATH}" | ||
| OPTIONS | ||
| -DGAP_ENABLE_TESTING=OFF | ||
| -DGAP_ENABLE_EXAMPLES=OFF | ||
| -DGAP_ENABLE_COROUTINES=ON | ||
| -DGAP_ENABLE_WARNINGS=OFF | ||
| -DGAP_INSTALL=ON | ||
| -DUSE_SYSTEM_DEPENDENCIES=ON | ||
| ) | ||
|
|
||
| vcpkg_cmake_install() | ||
| vcpkg_cmake_config_fixup( | ||
| PACKAGE_NAME "gap" | ||
| CONFIG_PATH lib/cmake/gap | ||
| ) | ||
| vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") | ||
|
|
||
| file( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" ) |
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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", | ||
| "name": "gap", | ||
| "version": "0.1.0", | ||
| "dependencies": [ | ||
| "vcpkg-cmake", | ||
| "vcpkg-cmake-config" | ||
| ] | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
@frabert Is this still needed? It does:
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.
It seems like this should be some higher-level vcpkg thing.