Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Router Gray
3p-cef-bin
Commits
e459aa09
Commit
e459aa09
authored
Feb 25, 2020
by
Router Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Linux64 support.
parent
f026f513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
1 deletion
+50
-1
build-cmd.sh
build-cmd.sh
+50
-1
No files found.
build-cmd.sh
View file @
e459aa09
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment