parent
3a71e8d352
commit
4f45f6188c
@ -1,3 +0,0 @@
|
||||
workspace.xml
|
||||
markdown-*
|
||||
misc.xml
|
@ -1 +0,0 @@
|
||||
xmrwallet
|
@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<resourceExtensions />
|
||||
<wildcardResourcePatterns>
|
||||
<entry name="!?*.java" />
|
||||
<entry name="!?*.form" />
|
||||
<entry name="!?*.class" />
|
||||
<entry name="!?*.groovy" />
|
||||
<entry name="!?*.scala" />
|
||||
<entry name="!?*.flex" />
|
||||
<entry name="!?*.kt" />
|
||||
<entry name="!?*.clj" />
|
||||
<entry name="!?*.aj" />
|
||||
</wildcardResourcePatterns>
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="false">
|
||||
<processorPath useClasspath="true" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
</project>
|
@ -1,3 +0,0 @@
|
||||
<component name="CopyrightManager">
|
||||
<settings default="" />
|
||||
</component>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
script/prep-toolchain.sh
|
||||
script/build-openssl.sh
|
||||
script/post-build-openssl.sh
|
||||
script/pre-build-boost.sh
|
||||
script/build-boost.sh
|
||||
script/build-monero.sh
|
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /opt/android/boost_1_58_0
|
||||
|
||||
PATH=/opt/android/tool/arm/arm-linux-androideabi/bin:/opt/android/tool/arm/bin:$PATH ./b2 --build-type=minimal link=static runtime-link=static --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --build-dir=android-arm --prefix=/opt/android/build/boost/arm --includedir=/opt/android/build/boost/include toolset=clang threading=multi threadapi=pthread target-os=android install
|
||||
ln -sf ../include /opt/android/build/boost/arm
|
||||
PATH=/opt/android/tool/arm64/aarch64-linux-android/bin:/opt/android/tool/arm64/bin:$PATH ./b2 --build-type=minimal link=static runtime-link=static --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --build-dir=android-arm64 --prefix=/opt/android/build/boost/arm64 --includedir=/opt/android/build/boost/include toolset=clang threading=multi threadapi=pthread target-os=android install
|
||||
ln -sf ../include /opt/android/build/boost/arm64
|
||||
PATH=/opt/android/tool/x86/i686-linux-android/bin:/opt/android/tool/x86/bin:$PATH ./b2 --build-type=minimal link=static runtime-link=static --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --build-dir=android-x86 --prefix=/opt/android/build/boost/x86 --includedir=/opt/android/build/boost/include toolset=clang threading=multi threadapi=pthread target-os=android install
|
||||
ln -sf ../include /opt/android/build/boost/x86
|
||||
PATH=/opt/android/tool/x86_64/x86_64-linux-android/bin:/opt/android/tool/x86_64/bin:$PATH ./b2 --build-type=minimal link=static runtime-link=static --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --build-dir=android-x86_64 --prefix=/opt/android/build/boost/x86_64 --includedir=/opt/android/build/boost/include toolset=clang threading=multi threadapi=pthread target-os=android install
|
||||
ln -sf ../include /opt/android/build/boost/x86_64
|
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /opt/android
|
||||
git clone --recursive -b release-v0.12.1-monerujo-v1.5.4 https://github.com/m2049r/monero.git
|
||||
|
||||
|
||||
cd monero
|
||||
|
||||
sed -i 's/-Werror/-Wall/g' CMakeLists.txt
|
||||
sed -i \
|
||||
's@OPENSSL_ROOT_DIR=/opt/android/build/openssl/$arch -D@OPENSSL_ROOT_DIR=/opt/android/build/openssl/$arch -D OPENSSL_INCLUDE_DIR=/opt/android/build/openssl/$arch/include -D@g' \
|
||||
build-all-arch.sh
|
||||
|
||||
./build-all-arch.sh
|
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /opt/android
|
||||
git clone https://github.com/m2049r/android-openssl.git
|
||||
wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2l.tar.gz
|
||||
cd android-openssl
|
||||
tar xfz ../OpenSSL_1_0_2l.tar.gz
|
||||
./build-all-arch.sh
|
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p /opt/android/build/openssl/{arm,arm64,x86,x86_64}
|
||||
|
||||
cp -a /opt/android/android-openssl/prebuilt/armeabi /opt/android/build/openssl/arm/lib
|
||||
cp -a /opt/android/android-openssl/prebuilt/arm64-v8a /opt/android/build/openssl/arm64/lib
|
||||
cp -a /opt/android/android-openssl/prebuilt/x86 /opt/android/build/openssl/x86/lib
|
||||
cp -a /opt/android/android-openssl/prebuilt/x86_64 /opt/android/build/openssl/x86_64/lib
|
||||
cp -aL /opt/android/android-openssl/openssl-OpenSSL_1_0_2l/include/openssl/ /opt/android/build/openssl/include
|
||||
ln -s /opt/android/build/openssl/include /opt/android/build/openssl/arm/include
|
||||
ln -s /opt/android/build/openssl/include /opt/android/build/openssl/arm64/include
|
||||
ln -s /opt/android/build/openssl/include /opt/android/build/openssl/x86/include
|
||||
ln -s /opt/android/build/openssl/include /opt/android/build/openssl/x86_64/include
|
||||
|
||||
|
||||
ln -sf /opt/android/build/openssl/include /opt/android/tool/arm/sysroot/usr/include/openssl
|
||||
ln -sf /opt/android/build/openssl/arm/lib/*.so /opt/android/tool/arm/sysroot/usr/lib
|
||||
|
||||
ln -sf /opt/android/build/openssl/include /opt/android/tool/arm64/sysroot/usr/include/openssl
|
||||
ln -sf /opt/android/build/openssl/arm64/lib/*.so /opt/android/tool/arm64/sysroot/usr/lib
|
||||
|
||||
ln -sf /opt/android/build/openssl/include /opt/android/tool/x86/sysroot/usr/include/openssl
|
||||
ln -sf /opt/android/build/openssl/x86/lib/*.so /opt/android/tool/x86/sysroot/usr/lib
|
||||
|
||||
ln -sf /opt/android/build/openssl/include /opt/android/tool/x86_64/sysroot/usr/include/openssl
|
||||
ln -sf /opt/android/build/openssl/x86_64/lib/*.so /opt/android/tool/x86_64/sysroot/usr/lib64
|
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /opt/android
|
||||
wget https://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz/download -O boost_1_58_0.tar.gz
|
||||
tar xfz boost_1_58_0.tar.gz
|
||||
cd boost_1_58_0
|
||||
./bootstrap.sh
|
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "preparing /opt/android"
|
||||
mkdir -p /opt/android/build
|
||||
|
||||
echo "installing arm"
|
||||
make_standalone_toolchain.py --api 21 --stl=libc++ --arch arm --install-dir /opt/android/tool/arm
|
||||
|
||||
echo "installing arm64"
|
||||
make_standalone_toolchain.py --api 21 --stl=libc++ --arch arm64 --install-dir /opt/android/tool/arm64
|
||||
|
||||
echo "installing x86"
|
||||
make_standalone_toolchain.py --api 21 --stl=libc++ --arch x86 --install-dir /opt/android/tool/x86
|
||||
|
||||
echo "installing x86_64"
|
||||
make_standalone_toolchain.py --api 21 --stl=libc++ --arch x86_64 --install-dir /opt/android/tool/x86_64
|
||||
|
||||
echo "done"
|
@ -0,0 +1,90 @@
|
||||
let
|
||||
# moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz)
|
||||
# # ; nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; }
|
||||
|
||||
nixpkgs = import <nixpkgs> {}
|
||||
|
||||
; android-studio-deps = with nixpkgs;
|
||||
[
|
||||
coreutils
|
||||
findutils
|
||||
file
|
||||
git
|
||||
glxinfo
|
||||
gn
|
||||
gnused
|
||||
gnutar
|
||||
gtk3
|
||||
gnome3.gvfs
|
||||
glib
|
||||
gnome3.gconf
|
||||
gzip
|
||||
fontconfig
|
||||
freetype
|
||||
libpulseaudio
|
||||
libGL
|
||||
xorg.libX11
|
||||
xorg.libXext
|
||||
xorg.libXi
|
||||
xorg.libXrandr
|
||||
xorg.libXrender
|
||||
xorg.libXtst
|
||||
xorg.setxkbmap
|
||||
pciutils
|
||||
unzip
|
||||
which
|
||||
xkeyboard_config
|
||||
zlib
|
||||
ncurses5
|
||||
]
|
||||
|
||||
; in
|
||||
|
||||
with nixpkgs;
|
||||
|
||||
(buildFHSUserEnv {
|
||||
name = "wownerojo-env"
|
||||
; targetPkgs = pkgs: (with pkgs;
|
||||
[
|
||||
bash
|
||||
git
|
||||
curl
|
||||
unzip
|
||||
libGLU
|
||||
which
|
||||
|
||||
zsh
|
||||
jdk
|
||||
cmake
|
||||
python
|
||||
wget
|
||||
perl
|
||||
gnumake
|
||||
gcc
|
||||
doxygen
|
||||
graphviz
|
||||
pkgconfig
|
||||
]
|
||||
++ android-studio-deps
|
||||
)
|
||||
|
||||
; multiPkgs = pkgs: (with pkgs;
|
||||
[
|
||||
])
|
||||
|
||||
; profile = ''
|
||||
export ANDROID_NDK_ROOT=~/Android/Sdk/ndk-bundle
|
||||
|
||||
PATH=~/sdk/android/android-studio/bin/:$PATH
|
||||
PATH=$ANDROID_NDK_ROOT/build/tools/:$PATH
|
||||
export PATH
|
||||
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
|
||||
mkdir -p opt/android
|
||||
ln -s `pwd`/opt /opt
|
||||
|
||||
exec zsh
|
||||
''
|
||||
|
||||
; }).env
|
Reference in new issue