-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CMake] Ship Google depot_tools with CMake
- Loading branch information
1 parent
69724e3
commit 91432fe
Showing
3 changed files
with
21 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Google depot_tools | ||
FetchContent_Populate( | ||
Depot_tools | ||
PREFIX third-party | ||
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third-party" | ||
GIT_REPOSITORY "https://chromium.googlesource.com/chromium/tools/depot_tools.git" | ||
GIT_TAG 530d86d40b2aab70e0541ea0f296388ec09f0576 | ||
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third-party/depot_tools" | ||
SYSTEM | ||
EXCLUDE_FROM_ALL | ||
) | ||
find_program(DEPOT_TOOLS_FETCH fetch PATHS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/depot_tools" REQUIRED) | ||
find_program(DEPOT_TOOLS_GCLIENT gclient PATHS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/depot_tools" REQUIRED) | ||
find_program(DEPOT_TOOLS_GN gn PATHS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/depot_tools" REQUIRED) |
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