Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit d2c3b53

Browse files
committed
Create gclient_args.gni under bulid/config
1 parent cbd0d06 commit d2c3b53

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/prepare_dev.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
FFMPEG_PATH = os.path.join(THIRD_PARTY_PATH, 'ffmpeg')
2121
WEBRTC_OVERRIDES_PATH = os.path.join(THIRD_PARTY_PATH, 'webrtc_overrides')
2222
BUILD_PATH = os.path.join(HOME_PATH, 'build')
23+
CONFIG_PATH = os.path.join(BUILD_PATH, 'config')
2324
TOOL_PATH = os.path.join(HOME_PATH, 'tools')
2425
BASE_PATH = os.path.join(HOME_PATH, 'base')
2526
platform = os.name
@@ -50,6 +51,10 @@ def _patch(ignoreFailures=False):
5051
cwd=applyPath)
5152
else:
5253
sys.exit(1)
54+
# create empty gclient_args.gni under bulid/config if not already
55+
gclientArgPath = os.path.join(CONFIG_PATH, 'gclient_args.gni')
56+
if not os.path.isfile(gclientArgPath):
57+
open(gclientArgPath, "w").close()
5358

5459
def main(argv):
5560
_patch()

0 commit comments

Comments
 (0)