Try to fix Windows build: Don't use GCActivityCallbackCF on Windows, since
[WebKit-https.git] / JavaScriptCore / JavaScriptCore.vcproj / JavaScriptCore / build-generated-files.sh
1 #!/usr/bin/bash
2
3 # Determine if we have QuartzCore so we can turn on
4 QUARTZCORE_H_PATH=$(cygpath -u "${WEBKITLIBRARIESDIR}/include/QuartzCore/QuartzCore.h")
5 QUARTZCOREPRESENT_H_PATH=$(cygpath -u "${WEBKITOUTPUTDIR}/include/private/QuartzCorePresent.h")
6 if test \( ! -f "${QUARTZCOREPRESENT_H_PATH}" \) -o \( -f "${QUARTZCORE_H_PATH}" -a \( "${QUARTZCORE_H_PATH}" -nt "${QUARTZCOREPRESENT_H_PATH}" \) \)
7 then
8     mkdir -p "$(dirname "${QUARTZCOREPRESENT_H_PATH}")"
9     test ! -f "${QUARTZCORE_H_PATH}"
10     echo "#define QUARTZCORE_PRESENT $?" > "${QUARTZCOREPRESENT_H_PATH}"
11 fi
12
13 # Determine whether we have the versioned ICU 4.0 or the unversioned ICU 4.4
14 UNVERSIONED_ICU_LIB_PATH=$(cygpath -u "${WEBKITLIBRARIESDIR}/lib/libicuuc.lib")
15 ICUVERSION_H_PATH=$(cygpath -u "${WEBKITOUTPUTDIR}/include/private/ICUVersion.h")
16 if test \( ! -f "${ICUVERSION_H_PATH}" \) -o \( -f "${UNVERSIONED_ICU_LIB_PATH}" -a \( "${UNVERSIONED_ICU_LIB_PATH}" -nt "${ICUVERSION_H_PATH}" \) \)
17 then
18     mkdir -p "$(dirname "${ICUVERSION_H_PATH}")"
19     test ! -f "${UNVERSIONED_ICU_LIB_PATH}"
20     echo "#define U_DISABLE_RENAMING $?" > "${ICUVERSION_H_PATH}"
21 fi
22
23 NUMCPUS=`../../../WebKitTools/Scripts/num-cpus`
24
25 XSRCROOT="`pwd`/../.."
26 XSRCROOT=`realpath "$XSRCROOT"`
27 # Do a little dance to get the path into 8.3 form to make it safe for gnu make
28 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
29 XSRCROOT=`cygpath -m -s "$XSRCROOT"`
30 XSRCROOT=`cygpath -u "$XSRCROOT"`
31 export XSRCROOT
32 export SOURCE_ROOT=$XSRCROOT
33
34 XDSTROOT="$1"
35 export XDSTROOT
36 # Do a little dance to get the path into 8.3 form to make it safe for gnu make
37 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
38 XDSTROOT=`cygpath -m -s "$XDSTROOT"`
39 XDSTROOT=`cygpath -u "$XDSTROOT"`
40 export XDSTROOT
41
42 SDKROOT="$2"
43 export SDKROOT
44 # Do a little dance to get the path into 8.3 form to make it safe for gnu make
45 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
46 SDKROOT=`cygpath -m -s "$SDKROOT"`
47 SDKROOT=`cygpath -u "$SDKROOT"`
48 export SDKROOT
49
50 export BUILT_PRODUCTS_DIR="$XDSTROOT/obj/JavaScriptCore"
51
52 mkdir -p "${BUILT_PRODUCTS_DIR}/DerivedSources/docs"
53 cd "${BUILT_PRODUCTS_DIR}/DerivedSources"
54
55 export JavaScriptCore="${XSRCROOT}"
56 export DFTABLES_EXTENSION=".exe"
57 make -f "$JavaScriptCore/DerivedSources.make" -j ${NUMCPUS} || exit 1