-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
JuanJakobo
committed
Sep 8, 2021
1 parent
65fe46e
commit 2587386
Showing
22 changed files
with
1,435 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
CMAKE_MINIMUM_REQUIRED (VERSION 3.10.1) | ||
|
||
PROJECT (Pocketbook-Texteditor VERSION 0.0.1) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_VERSION 1.0) | ||
set(CMAKE_SYSTEM_PROCESSOR armv7a) | ||
set(BUILD_SHARED_LIBS ON) | ||
|
||
SET (TOOLCHAIN_PATH "../../SDK/SDK_6.3.0/SDK-B288") | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||
|
||
set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/usr/arm-obreey-linux-gnueabi/sysroot/") | ||
set(CMAKE_INCLUDE_PATH "/usr/include") | ||
message("CMAKE_FIND_ROOT_PATH=${CMAKE_FIND_ROOT_PATH}") | ||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
include_directories("${TOOLCHAIN_PATH}/usr/arm-obreey-linux-gnueabi/sysroot/usr/include/freetype2") | ||
list(APPEND CMAKE_MODULE_PATH "${TOOLCHAIN_PATH}/usr/share/cmake/modules") | ||
list(REMOVE_DUPLICATES CMAKE_MODULE_PATH) | ||
set(QT_QMAKE_EXECUTABLE "${TOOLCHAIN_PATH}/usr/arm-obreey-linux-gnueabi/sysroot/usr/qt5/bin/qmake") | ||
set(CMAKE_PREFIX_PATH "${TOOLCHAIN_PATH}/usr/arm-obreey-linux-gnueabi/sysroot/ebrmain/lib/cmake") | ||
|
||
set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/usr/bin/arm-obreey-linux-gnueabi-clang") | ||
set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/usr/bin/arm-obreey-linux-gnueabi-clang++") | ||
set(CMAKE_C_FLAGS "-fsigned-char -Werror-return-type" CACHE STRING "" FORCE) | ||
set(CMAKE_CXX_FLAGS "-fsigned-char -Werror-return-type" CACHE STRING "" FORCE) | ||
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O2 -pipe -fomit-frame-pointer -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp " CACHE STRING "" FORCE) | ||
set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O2 -pipe -fomit-frame-pointer -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp " CACHE STRING "" FORCE) | ||
set(CMAKE_C_FLAGS_DEBUG "-DDEBUG -O0 -g -pipe -fomit-frame-pointer -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp " CACHE STRING "" FORCE) | ||
set(CMAKE_CXX_FLAGS_DEBUG "-DDEBUG -O0 -g -pipe -fomit-frame-pointer -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp " CACHE STRING "" FORCE) | ||
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s" CACHE STRING "" FORCE) | ||
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "-s" CACHE STRING "" FORCE) | ||
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-z,defs" CACHE STRING "" FORCE) | ||
|
||
add_definitions(-DPLATFORM_FC) | ||
set(PB_PLATFORM "ARM" CACHE STRING "ARM|PC Readonly!") | ||
|
||
set(CMAKE_INSTALL_PREFIX "${TOOLCHAIN_PATH}/usr/arm-obreey-linux-gnueabi/sysroot/usr/local" CACHE PATH "Installation Prefix") | ||
set(CMAKE_BUILD_TYPE Release CACHE STRING "Debug|Release|RelWithDebInfo|MinSizeRel") | ||
set(ENV{PKG_CONFIG_DIR} "") | ||
set(ENV{PKG_CONFIG_LIBDIR} ${CMAKE_FIND_ROOT_PATH}/usr/lib/pkgconfig) | ||
set(ENV{PKG_CONFIG_SYSROOT_DIR} ${CMAKE_FIND_ROOT_PATH}) | ||
set(ENV{LD_LIBRARY_PATH} ${TOOLCHAIN_PATH}/usr/lib) | ||
list(APPEND PB_LINK_DIRECTORIES "${TOOLCHAIN_PATH}/usr/arm-obreey-linux-gnueabi/sysroot/usr/lib") | ||
list(APPEND PB_LINK_DIRECTORIES "${TOOLCHAIN_PATH}/usr/arm-obreey-linux-gnueabi/sysroot/usr/local/lib") | ||
list(APPEND PB_INCLUDE_DIRECTORIES "${TOOLCHAIN_PATH}/usr/arm-obreey-linux-gnueabi/sysroot/usr/include") | ||
|
||
|
||
set(SOURCES ${CMAKE_SOURCE_DIR}/src/main.cpp | ||
${CMAKE_SOURCE_DIR}/src/handler/eventHandler.cpp | ||
${CMAKE_SOURCE_DIR}/src/handler/mainMenu.cpp | ||
${CMAKE_SOURCE_DIR}/src/util/log.cpp | ||
${CMAKE_SOURCE_DIR}/src/ui/devicesView.cpp | ||
${CMAKE_SOURCE_DIR}/src/ui/devicesViewEntry.cpp | ||
${CMAKE_SOURCE_DIR}/src/ui/listView.cpp | ||
${CMAKE_SOURCE_DIR}/src/ui/listViewEntry.cpp | ||
|
||
) | ||
|
||
add_executable(Texteditor.app ${SOURCES}) | ||
|
||
include_directories( | ||
${CMAKE_SOURCE_DIR}/src/handler/ | ||
${CMAKE_SOURCE_DIR}/src/util/ | ||
${CMAKE_SOURCE_DIR}/src/ui/ | ||
) | ||
|
||
target_link_libraries(Texteditor.app PRIVATE inkview pthread freetype) | ||
|
||
INSTALL (TARGETS Texteditor.app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.