build-generated-files.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/bash
  2. NUMCPUS=`../../../Tools/Scripts/num-cpus`
  3. XSRCROOT="`pwd`/.."
  4. XSRCROOT=`realpath "$XSRCROOT"`
  5. # Do a little dance to get the path into 8.3 form to make it safe for gnu make
  6. # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
  7. XSRCROOT=`cygpath -m "$XSRCROOT"`
  8. XSRCROOT=`cygpath -u "$XSRCROOT"`
  9. export XSRCROOT
  10. export SOURCE_ROOT=$XSRCROOT
  11. XDSTROOT="$1"
  12. export XDSTROOT
  13. # Do a little dance to get the path into 8.3 form to make it safe for gnu make
  14. # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
  15. XDSTROOT=`cygpath -m -s "$XDSTROOT"`
  16. XDSTROOT=`cygpath -u "$XDSTROOT"`
  17. export XDSTROOT
  18. SDKROOT="$2"
  19. export SDKROOT
  20. # Do a little dance to get the path into 8.3 form to make it safe for gnu make
  21. # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
  22. SDKROOT=`cygpath -m -s "$SDKROOT"`
  23. SDKROOT=`cygpath -u "$SDKROOT"`
  24. export SDKROOT
  25. export BUILT_PRODUCTS_DIR="$XDSTROOT/obj32/JavaScriptCore"
  26. mkdir -p "${BUILT_PRODUCTS_DIR}/DerivedSources/docs"
  27. cd "${BUILT_PRODUCTS_DIR}/DerivedSources"
  28. export JavaScriptCore="${XSRCROOT}"
  29. export DFTABLES_EXTENSION=".exe"
  30. make -f "$JavaScriptCore/DerivedSources.make" -j ${NUMCPUS} || exit 1