building libmonero-cpp.a and scratchpad with shell script

This commit is contained in:
woodser
2019-05-27 08:37:06 -04:00
parent ec79590f13
commit 63dd8c0077
5 changed files with 70 additions and 3 deletions
+55
View File
@@ -283,5 +283,60 @@ target_link_libraries(scratchpad
multisig
version
${EXTRA_LIBRARIES}
)
########################
# Build C++ library
########################
set(
LIBRARY_SRC_FILES
src/wallet/MoneroWallet.cpp
)
add_library(monero-cpp ${LIBRARY_SRC_FILES})
target_link_libraries(monero-cpp
hidapi
boost_chrono
boost_date_time
boost_filesystem
boost_program_options
boost_regex
boost_serialization
boost_wserialization
boost_system
boost_thread
ssl
crypto
wallet_merged
#wallet_api
wallet
lmdb
epee
unbound
sodium
easylogging
cryptonote_core
cryptonote_basic
mnemonics
ringct
ringct_basic
common
cncrypto
blockchain_db
blocks
checkpoints
device
device_trezor
multisig
version
${EXTRA_LIBRARIES}
)
+6 -1
View File
@@ -1,4 +1,9 @@
#include <stdio.h>
#include <iostream>
#include "MoneroWallet.h"
using namespace std;
using namespace epee;
MoneroWallet::MoneroWallet() {
cout << "MoneroWallet()" << endl;
@@ -34,6 +39,6 @@ void MoneroWallet::getMnemonic(epee::wipeable_string& mnemonic) const {
throw runtime_error("Not implemented");
}
void MoneroWallet::setDaemonConnection(const string& daemonUri, const string& daemonUsername, const const epee::wipeable_string& daemonPassword) {
void MoneroWallet::setDaemonConnection(const string& daemonUri, const string& daemonUsername, const epee::wipeable_string& daemonPassword) {
throw runtime_error("Not implemented");
}
+9 -1
View File
@@ -1,7 +1,15 @@
#include "include_base_utils.h"
#include "cryptonote_basic/cryptonote_basic_impl.h"
#include "wallet/wallet2.h"
using namespace std;
using namespace crypto;
using namespace cryptonote;
//int main(int argc, const char* argv[]) {
// cout << "===== MAIN =====" << endl;
//}
/**
* Monero wallet interface.
*
@@ -71,7 +79,7 @@ using namespace cryptonote;
* @param daemonUsername is the daemon's username
* @param daemonPassword is the daemon's password
*/
void setDaemonConnection(const string& daemonUri, const string& daemonUsername, const const epee::wipeable_string& daemonPassword);
void setDaemonConnection(const string& daemonUri, const string& daemonUsername, const epee::wipeable_string& daemonPassword);
// /**
// * Get the wallet's seed.
-1
View File
@@ -1,7 +1,6 @@
#include <stdio.h>
#include <iostream>
#include "wallet2.h"
#include "wallet/MoneroWallet.h"
#include "wallet/MoneroWallet.cpp"
//#include <boost/stacktrace.hpp>
using namespace std;