Commit e459aa09 authored by Router Gray's avatar Router Gray

Add Linux64 support.

parent f026f513
......@@ -38,12 +38,14 @@ CEF_BUNDLE_URL_WINDOWS64="http://opensource.spotify.com/cefbuilds/cef_binary_"$C
CEF_SYM_BUNDLE_URL_WINDOWS64="http://opensource.spotify.com/cefbuilds/cef_binary_"$CEF_PACKAGE_VERSION"_windows64_release_symbols.tar.bz2"
CEF_BUNDLE_URL_DARWIN64="http://opensource.spotify.com/cefbuilds/cef_binary_"$CEF_PACKAGE_VERSION"_macosx64.tar.bz2"
CEF_SYM_BUNDLE_URL_DARWIN64="http://opensource.spotify.com/cefbuilds/cef_binary_"$CEF_PACKAGE_VERSION"_macosx64_release_symbols.tar.bz2"
CEF_BUNDLE_URL_LINUX64="http://opensource.spotify.com/cefbuilds/cef_binary_"$CEF_PACKAGE_VERSION"_linux64.tar.bz2"
# file where the CEF bundle will be downloaded to before unpacking etc.
CEF_BUNDLE_DOWNLOAD_FILE_WINDOWS="${top}/stage/windows${AUTOBUILD_ADDRSIZE}.bz2"
CEF_SYM_BUNDLE_DOWNLOAD_FILE_WINDOWS="${top}/stage/windows${AUTOBUILD_ADDRSIZE}sym.bz2"
CEF_BUNDLE_DOWNLOAD_FILE_DARWIN64="${top}/stage/darwin64.bz2"
CEF_SYM_BUNDLE_DOWNLOAD_FILE_DARWIN64="${top}/stage/darwin64sym.bz2"
CEF_BUNDLE_DOWNLOAD_FILE_LINUX64="${top}/stage/linux64.bz2"
# directories where the downloaded, unpacked, modified and ready to build CEF
# bundle will end up and where it will be built by Cmake
......@@ -51,6 +53,7 @@ CEF_BUNDLE_SRC_DIR_WINDOWS="${top}/stage/windows${AUTOBUILD_ADDRSIZE}"
CEF_SYM_BUNDLE_SRC_DIR_WINDOWS="${top}/stage/windows${AUTOBUILD_ADDRSIZE}sym"
CEF_BUNDLE_SRC_DIR_DARWIN64="${top}/stage/darwin64"
CEF_SYM_BUNDLE_SRC_DIR_DARWIN64="${top}/stage/darwin64sym"
CEF_BUNDLE_SRC_DIR_LINUX64="${top}/stage/linux64"
# used in VERSION.txt but common to all bit-widths and platforms
build=${AUTOBUILD_BUILD_ID:=0}
......@@ -187,7 +190,53 @@ case "$AUTOBUILD_PLATFORM" in
;;
linux*)
echo "This project is not currently supported for $AUTOBUILD_PLATFORM" 1>&2 ; exit 1
# download bundle
CEF_BUNDLE_URL="${CEF_BUNDLE_URL_LINUX64}"
file="${CEF_BUNDLE_DOWNLOAD_FILE_LINUX64}"
if [ ! -e "$file" ]; then
curl "${CEF_BUNDLE_URL}" -o "${CEF_BUNDLE_DOWNLOAD_FILE_LINUX64}"
else
echo "CEF bundle exists, skipping download. To force a fresh fetch, delete ${CEF_BUNDLE_DOWNLOAD_FILE_LINUX64}"
fi
# Create directory for it and untar, stripping off the complex CEF name
mkdir -p "${CEF_BUNDLE_SRC_DIR_LINUX64}"
tar xvfj "${CEF_BUNDLE_DOWNLOAD_FILE_LINUX64}" -C "${CEF_BUNDLE_SRC_DIR_LINUX64}" --strip-components=1
cd "${CEF_BUNDLE_SRC_DIR_LINUX64}"
rm -rf build
mkdir -p build
cd build
cmake .. -DCMAKE_C_COMPILER=gcc-4.9 -DCMAKE_CXX_COMPILER=g++-4.9 -DCMAKE_CXX_FLAGS=-m${AUTOBUILD_ADDRSIZE} || true
make -j4 libcef_dll_wrapper
cd ../..
mkdir -p "${stage}/include/cef/include"
mkdir -p "${stage}/lib/release"
mkdir -p "${stage}/resources"
mkdir -p "${stage}/LICENSES"
# include files
cp -R ${CEF_BUNDLE_SRC_DIR_LINUX64}/include/* ${stage}/include/cef/include/
# library file
cp ${CEF_BUNDLE_SRC_DIR_LINUX64}/build/libcef_dll_wrapper/libcef_dll_wrapper.a ${stage}/lib/release/
# framework
cp -R ${CEF_BUNDLE_SRC_DIR_LINUX64}/Release/* ${stage}/lib/release/
cp -R ${CEF_BUNDLE_SRC_DIR_LINUX64}/Resources/* ${stage}/resources/
cp "${CEF_BUNDLE_SRC_DIR_LINUX64}/LICENSE.txt" "$stage/LICENSES/cef.txt"
# populate version_file
g++ -I "$stage/include/cef/include" \
-I "$stage/include/cef" \
-D "AUTOBUILD_BUILD=${build}" \
-o "$stage/version" "$top/version.cpp"
"$stage/version" > "$stage/VERSION.txt"
rm "$stage/version"
;;
esac
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment