mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[llvm]Add features. (#8771)
* [llvm]Add features. * [llvm]Add ${FEATURE_OPTIONS}, set feature util to default feature.
This commit is contained in:
parent
be99ba1f5a
commit
9c8e4cdc76
@ -3,3 +3,16 @@ Version: 8.0.0-3
|
||||
Homepage: https://llvm.org/
|
||||
Description: The LLVM Compiler Infrastructure
|
||||
Build-Depends: atlmfc (windows)
|
||||
Default-Features: tools, utils
|
||||
|
||||
Feature: tools
|
||||
Description: Generate build targets for the LLVM tools.
|
||||
|
||||
Feature: utils
|
||||
Description: Generate build targets for the LLVM utils.
|
||||
|
||||
Feature: example
|
||||
Description: Generate build targets for the LLVM examples
|
||||
|
||||
Feature: test
|
||||
Description: Generate build targets for the LLVM unit tests.
|
@ -44,15 +44,18 @@ vcpkg_find_acquire_program(PYTHON3)
|
||||
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
||||
set(ENV{PATH} "$ENV{PATH};${PYTHON3_DIR}")
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
tools LLVM_INCLUDE_TOOLS
|
||||
utils LLVM_INCLUDE_UTILS
|
||||
example LLVM_INCLUDE_EXAMPLES
|
||||
test LLVM_INCLUDE_TESTS
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
OPTIONS ${FEATURE_OPTIONS}
|
||||
-DLLVM_TARGETS_TO_BUILD=X86
|
||||
-DLLVM_INCLUDE_TOOLS=ON
|
||||
-DLLVM_INCLUDE_UTILS=OFF
|
||||
-DLLVM_INCLUDE_EXAMPLES=OFF
|
||||
-DLLVM_INCLUDE_TESTS=OFF
|
||||
-DLLVM_ABI_BREAKING_CHECKS=FORCE_OFF
|
||||
-DLLVM_TOOLS_INSTALL_DIR=tools/llvm
|
||||
-DLLVM_PARALLEL_LINK_JOBS=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user