Skip to content

Commit

Permalink
updates building mac, checking out latest tag from libtorrent
Browse files Browse the repository at this point in the history
  • Loading branch information
gubatron committed Jan 24, 2022
1 parent 61ba071 commit dc255cd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion swig/build-macos-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export run_objcopy="echo dummy run_objcopy for ${os_build} ${os_arch}"
export run_strip="strip -S -x bin/release/${os_build}/${os_arch}/${SHARED_LIB}"
export run_native_jar="./gradlew nativeMacOSArm64Jar"
create_folder_if_it_doesnt_exist ${SRC}
prompt_msg "About to prepare BOOST ${BOOST_VERSION}"
prompt_msg "$0:About to prepare BOOST ${BOOST_VERSION}"
press_any_to_continue
prepare_boost
prepare_openssl
Expand Down
2 changes: 1 addition & 1 deletion swig/build-macos-x86_64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export run_objcopy="echo dummy run_objcopy for ${os_build} ${os_arch}"
export run_strip="strip -S -x bin/release/${os_build}/${os_arch}/${SHARED_LIB}"
export run_native_jar="./gradlew nativeMacOSX86_64Jar"
create_folder_if_it_doesnt_exist ${SRC}
prompt_msg "About to prepare BOOST ${BOOST_VERSION}"
prompt_msg "$0:About to prepare BOOST ${BOOST_VERSION}"
press_any_to_continue
prepare_boost
prepare_openssl
Expand Down
6 changes: 5 additions & 1 deletion swig/build-macos.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#!/bin/bash
./build-macos-$(arch).sh
if [ $(arch) == 'i386' ]; then
./build-macos-x86_64.sh
else
./build-macos-arm64.sh
fi
2 changes: 1 addition & 1 deletion swig/build-utils.shinc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export LIBRARY_NAME=jlibtorrent
# In order to make sure a cherry-picked commit is checkout on the RC_1_2 branch
# I create a tag for it on the github.com/gubatron/libtorrent/commits/RC_1_2 branch
# The tag name format is 'RC_1_2_' + <first 7 digits of commit>
export LIBTORRENT_REVISION=RC_1_2_e22621a # Clean up compile flags for msvc
export LIBTORRENT_REVISION=e22621a1883fb1a7ca416dc9aa134518e04f0644 # Clean up compile flags for msvc
export OPENSSL_VERSION="1.1.1m"
export BOOST_VERSION="78"
export BOOST_MAJOR="1"
Expand Down
8 changes: 4 additions & 4 deletions swig/libtorrent_jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23741,7 +23741,7 @@ SWIGEXPORT jint JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_LIBT

(void)jenv;
(void)jcls;
result = (int)(14);
result = (int)(15);
jresult = (jint)result;
return jresult;
}
Expand All @@ -23753,7 +23753,7 @@ SWIGEXPORT jint JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_LIBT

(void)jenv;
(void)jcls;
result = (int)(((1*10000) +(2*100) +14));
result = (int)(((1*10000) +(2*100) +15));
jresult = (jint)result;
return jresult;
}
Expand All @@ -23765,7 +23765,7 @@ SWIGEXPORT jstring JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_L

(void)jenv;
(void)jcls;
result = (char *)("1.2.14.0");
result = (char *)("1.2.15.0");
if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
Expand All @@ -23777,7 +23777,7 @@ SWIGEXPORT jstring JNICALL Java_com_frostwire_jlibtorrent_swig_libtorrent_1jni_L

(void)jenv;
(void)jcls;
result = (char *)("2b4776a90");
result = (char *)("0facda852");
if (result) jresult = jenv->NewStringUTF((const char *)result);
return jresult;
}
Expand Down

0 comments on commit dc255cd

Please sign in to comment.