tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

build-gn-common.sh (839B)


      1 #!/bin/bash
      2 set -e -v
      3 
      4 # This is shared code for building GN.
      5 cd $MOZ_FETCHES_DIR/gn
      6 
      7 if test -n "$MAC_CROSS"; then
      8    python3 build/gen.py --platform darwin --no-last-commit-position --allow-warnings
      9 else
     10    python3 build/gen.py --no-last-commit-position --allow-warnings
     11 fi
     12 
     13 cat > out/last_commit_position.h <<EOF
     14 #ifndef OUT_LAST_COMMIT_POSITION_H_
     15 #define OUT_LAST_COMMIT_POSITION_H_
     16 
     17 #define LAST_COMMIT_POSITION_NUM 0
     18 #define LAST_COMMIT_POSITION "unknown"
     19 
     20 #endif  // OUT_LAST_COMMIT_POSITION_H_
     21 EOF
     22 
     23 ninja -C out -v
     24 
     25 STAGE=gn
     26 mkdir -p $UPLOAD_DIR $STAGE
     27 
     28 # At this point, the resulting binary is at:
     29 # $WORKSPACE/out/Release/gn
     30 if test "$MAC_CROSS" = "" -a "$(uname)" = "Linux"; then
     31    strip out/gn
     32 fi
     33 cp out/gn $STAGE
     34 
     35 tar -c $STAGE | python3 $GECKO_PATH/taskcluster/scripts/misc/zstdpy > gn.tar.zst
     36 cp gn.tar.zst $UPLOAD_DIR