Bug 1945675 - adjust references to new path for gn_processory.py r=glandium DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D237104
This commit is contained in:
Michael Froman
2025-02-12 20:48:18 +00:00
parent ab7088e4a5
commit 287eacbe5b
4 changed files with 7 additions and 7 deletions

View File

@@ -273,7 +273,7 @@ for commit in $COMMITS; do
echo "MODIFIED_BUILD_RELATED_FILE_CNT: $MODIFIED_BUILD_RELATED_FILE_CNT"
if [ "x$MODIFIED_BUILD_RELATED_FILE_CNT" != "x0" ]; then
echo "Regenerate build files"
./mach python python/mozbuild/mozbuild/gn_processor.py \
./mach python build/gn_processor.py \
dom/media/webrtc/third_party_build/gn-configs/webrtc.json || \
( echo "$GENERATION_ERROR" ; exit 1 )

View File

@@ -6,11 +6,11 @@ the script under [WSL](https://docs.microsoft.com/en-us/windows/wsl/install).
1. The script should be run from the top directory of our firefox tree.
```
./mach python python/mozbuild/mozbuild/gn_processor.py dom/media/webrtc/third_party_build/gn-configs/webrtc.json
./mach python build/gn_processor.py dom/media/webrtc/third_party_build/gn-configs/webrtc.json
```
2. Checkin all the generated/modified files and try your build!
# Adding new configurations to the build
Edit the `main` function in the `python/mozbuild/mozbuild/gn_processor.py` file.
Edit the `main` function in the `build/gn_processor.py` file.

View File

@@ -183,7 +183,7 @@ remain for this commit:
--state-path $STATE_DIR \\
--target-branch-head $MOZ_TARGET_UPSTREAM_BRANCH_HEAD
# generate moz.build files (may not be necessary)
./mach python python/mozbuild/mozbuild/gn_processor.py \\
./mach python build/gn_processor.py \\
$SCRIPT_DIR/gn-configs/webrtc.json
# commit the updated moz.build files with the appropriate commit msg
bash $SCRIPT_DIR/commit-build-file-changes.sh
@@ -222,7 +222,7 @@ BUILD.gn files are required. Commit those changes following the instructions
in https://wiki.mozilla.org/Media/WebRTC/libwebrtc_Update_Process#Operational_notes
Then complete these steps:
# generate moz.build files (may not be necessary)
./mach python python/mozbuild/mozbuild/gn_processor.py \\
./mach python build/gn_processor.py \\
$SCRIPT_DIR/gn-configs/webrtc.json
# commit the updated moz.build files with the appropriate commit msg
bash $SCRIPT_DIR/commit-build-file-changes.sh
@@ -236,7 +236,7 @@ echo_log "Modified .gn, **/BUILD.gn, or **/*.gni files: $MODIFIED_BUILD_RELATED_
MOZ_BUILD_CHANGE_CNT=0
if [ "x$MODIFIED_BUILD_RELATED_FILE_CNT" != "x0" ]; then
echo_log "Regenerate build files"
./mach python python/mozbuild/mozbuild/gn_processor.py \
./mach python build/gn_processor.py \
$SCRIPT_DIR/gn-configs/webrtc.json 2>&1| tee -a $LOOP_OUTPUT_LOG
MOZ_BUILD_CHANGE_CNT=`hg status third_party/libwebrtc \

View File

@@ -78,7 +78,7 @@ hg status -nu | xargs hg add
# to regenerate moz.build files
./mach python python/mozbuild/mozbuild/gn_processor.py \
./mach python build/gn_processor.py \
dom/media/webrtc/third_party_build/gn-configs/abseil.json
hg status -nd | xargs hg rm
hg status -nu | xargs hg add