Skip to content

Commit

Permalink
QR Code
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Sep 4, 2017
1 parent 1cbca67 commit e3b1808
Show file tree
Hide file tree
Showing 69 changed files with 20,126 additions and 33 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 2.8.6)
include(CryptoNoteWallet.cmake)
include(QREncode.cmake)

project(${CN_PROJECT_NAME})

Expand All @@ -16,6 +17,7 @@ include_directories(${CMAKE_BINARY_DIR}
cryptonote/external/rocksdb/include/
cryptonote/include
cryptonote/src
libqrencode
)

find_package(Qt5Gui REQUIRED)
Expand Down Expand Up @@ -238,7 +240,7 @@ target_link_libraries(${CRYPTONOTE_LIB} ${Boost_LIBRARIES} ${Qt5DBus_LIBRARIES}
add_executable(${PROJECT_NAME} ${BUILD_PLATFORM} ${BUILD_RESOURCES} ${SOURCES} ${HEADERS} ${UIS} ${RCC})

set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_DEFINITIONS _GNU_SOURCE)
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} ${QTMAIN} ${CRYPTONOTE_LIB} ${Qt5DBus_LIBRARIES} Wtsapi32.lib)
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} ${QTMAIN} ${CRYPTONOTE_LIB} ${Qt5DBus_LIBRARIES} ${QRENCODE_LIB} Wtsapi32.lib)

if (APPLE)
qt5_use_modules(${PROJECT_NAME} PrintSupport)
Expand Down
16 changes: 16 additions & 0 deletions QREncode.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

set(QRENCODE_LIB qrencode)

file(GLOB QRENCODE_SOURCES RELATIVE ${CMAKE_SOURCE_DIR} libqrencode/*.c)
list(REMOVE_ITEM QRENCODE_SOURCES libqrencode/qrenc.c)
file(GLOB QRENCODE_HEADERS libqrencode/*.h)

list(APPEND my_definitions "__STATIC=static")
list(APPEND my_definitions "MAJOR_VERSION=3")
list(APPEND my_definitions "MINOR_VERSION=4")
list(APPEND my_definitions "MICRO_VERSION=0")
if(WIN32)
list(APPEND my_definitions "inline=__inline")
endif(WIN32)
add_library(${QRENCODE_LIB} ${QRENCODE_SOURCES} ${QRENCODE_HEADERS})
set_target_properties(${QRENCODE_LIB} PROPERTIES COMPILE_DEFINITIONS "${my_definitions}")
46 changes: 46 additions & 0 deletions libqrencode/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
*.gcno
*.gcov
*.gcda
.deps/
.libs/
autom4te.cache/
m4/
Makefile
Makefile.in
config.log
configure
config.status
config.h
config.h.in
aclocal.m4
libtool
stamp-h1
qrencode
qrencode.1
qrencode.spec
libqrencode.pc
tests/create_frame_pattern
tests/create_mqr_frame_pattern
tests/frame
tests/mqrframe
tests/pthread_qrencode
tests/prof_qrencode
tests/test_bitstream
tests/test_estimatebit
tests/test_mask
tests/test_mmask
tests/test_monkey
tests/test_mqrspec
tests/test_qrencode
tests/test_qrinput
tests/test_qrspec
tests/test_rs
tests/test_split
tests/view_qrcode
use/compile
use/config.guess
use/config.sub
use/depcomp
use/install-sh
use/ltmain.sh
use/missing
510 changes: 510 additions & 0 deletions libqrencode/COPYING

Large diffs are not rendered by default.

Loading

0 comments on commit e3b1808

Please sign in to comment.