mirror of
https://github.com/jcefmaven/jcefbuild.git
synced 2025-10-17 08:43:41 +08:00
Attempt prebuilding for ARM/v6
This commit is contained in:
@@ -49,7 +49,8 @@ if [ ${TARGETARCH} == 'amd64' ] || [ ${TARGETARCH} == 'arm64' ]; then
|
||||
elif [ ${TARGETARCH} == '386' ]; then
|
||||
./compile.sh linux32
|
||||
else
|
||||
echo "Can not compile java classes under arm/v6 currently. WIP"
|
||||
echo "Can not compile java classes under arm/v6 currently. So we copy from prebuild directory."
|
||||
cp -r /prebuild/linux32 /jcef/out
|
||||
fi
|
||||
|
||||
#Generate distribution
|
||||
|
39
scripts/run_linux_prebuild.sh
Normal file
39
scripts/run_linux_prebuild.sh
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This file prebuilds the java classes for arm/v6 under another architecture, as compilation of those fails
|
||||
# on arm/v6. They can be used on the platform nontheless.
|
||||
|
||||
# Determine architecture
|
||||
echo "Prebuilding java classes with $TARGETARCH"
|
||||
|
||||
# Print some debug info
|
||||
echo "-------------------------------------"
|
||||
echo "JAVA_HOME: $JAVA_HOME"
|
||||
echo "PATH: $PATH"
|
||||
java -version
|
||||
echo "-------------------------------------"
|
||||
|
||||
# Fetch sources
|
||||
if [ ! -f "/jcef/README.md" ]; then
|
||||
echo "Did not find existing files to build - cloning..."
|
||||
rm -rf /jcef
|
||||
git clone ${REPO} /jcef
|
||||
cd /jcef
|
||||
git checkout ${REF}
|
||||
#Temporary CMakeLists patching - beautify in the future
|
||||
rm CMakeLists.txt
|
||||
curl -o CMakeLists.txt https://raw.githubusercontent.com/jcefmaven/jcefbuild/master/CMakeLists.txt
|
||||
else
|
||||
echo "Found existing files to build"
|
||||
cd /jcef
|
||||
fi
|
||||
|
||||
# Create and enter the `jcef_build` directory.
|
||||
# The `jcef_build` directory name is required by other JCEF tooling
|
||||
# and should not be changed.
|
||||
mkdir jcef_build && cd jcef_build
|
||||
|
||||
#Compile JCEF java classes
|
||||
cd ../tools
|
||||
chmod +x compile.sh
|
||||
./compile.sh linux32
|
Reference in New Issue
Block a user