Skip to content

Commit 46be9cf

Browse files
committed
all changes merged for public release
0 parents  commit 46be9cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3263
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CMakeLists.txt.user

.vscode/launch.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Run",
9+
"type": "cppdbg",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/build/intellicute",
12+
"args": [],
13+
"stopAtEntry": false,
14+
"cwd": "${workspaceFolder}",
15+
"environment": [
16+
{
17+
"name": "LD_LIBRARY_PATH",
18+
"value": "/home/alexander/bin/Qt/6.4.2/gcc_64/lib"
19+
},
20+
//{
21+
// "name": "QT_PLUGIN_PATH",
22+
// "value": "/home/alexander/bin/Qt/6.4.2/gcc_64/plugins/"
23+
// }
24+
],
25+
"externalConsole": false,
26+
"MIMode": "gdb",
27+
"miDebuggerPath": "/usr/bin/gdb",
28+
"setupCommands": [
29+
{
30+
"description": "Enable pretty-printing for gdb",
31+
"text": "-enable-pretty-printing",
32+
"ignoreFailures": true
33+
}
34+
],
35+
"preLaunchTask": "CMake: build",
36+
"visualizerFile": "/home/alexander/.config/Code/User/workspaceStorage/575cf777fb3082e60e76d12fc47be455/tonka3000.qtvsctools/qt.natvis.xml"
37+
}
38+
],
39+
}

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"cmake.configureSettings": {
3+
//"CMAKE_MODULE_PATH":"/opt/toolchain/cmake",
4+
//"CMAKE_TOOLCHAIN_FILE":"/opt/toolchain/cmake/Toolchains/x86_64-Linux.cmake",
5+
"CMAKE_PREFIX_PATH":"/home/alexander/bin/Qt/6.4.2/gcc_64/lib/cmake/",
6+
},
7+
// set LD_LIBRARY_PATH to find the ssl library
8+
"env": {
9+
"LD_LIBRARY_PATH": "/home/alexander/bin/Qt/Tools/QtDesignStudio/lib/Qt/lib/"
10+
},
11+
"files.associations": {
12+
"optional": "cpp",
13+
"system_error": "cpp"
14+
}
15+
}

CMakeLists.txt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
cmake_minimum_required(VERSION 3.16)
2+
3+
project(Intellicute VERSION 0.1 LANGUAGES CXX)
4+
5+
set(CMAKE_AUTOMOC ON)
6+
set(CMAKE_AUTORCC ON)
7+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
8+
9+
find_package(Qt6 6.2 COMPONENTS Core Multimedia Quick Network TextToSpeech REQUIRED)
10+
11+
qt_add_executable(intellicute
12+
main.cpp
13+
openai_request.cpp
14+
openai_message.cpp
15+
openai_message_model.cpp
16+
audio_recorder.cpp
17+
watson_tts_request.cpp
18+
fileio.cpp
19+
qml.qrc
20+
resources.qrc
21+
)
22+
23+
if (ANDROID)
24+
set(ANDROID_SSL_PATH /home/alexander/bin/android/android_openssl/latest/arm/)
25+
set_property(TARGET intellicute PROPERTY QT_ANDROID_EXTRA_LIBS
26+
${ANDROID_SSL_PATH}/libcrypto_1_1.so
27+
${ANDROID_SSL_PATH}/libssl_1_1.so)
28+
endif()
29+
30+
qt_add_qml_module(intellicute
31+
URI Intellicute
32+
VERSION 1.0
33+
)
34+
35+
36+
set_target_properties(intellicute PROPERTIES
37+
MACOSX_BUNDLE_GUI_IDENTIFIER intellicute.machinekoder.com
38+
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
39+
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
40+
MACOSX_BUNDLE TRUE
41+
WIN32_EXECUTABLE TRUE
42+
)
43+
44+
target_link_libraries(intellicute
45+
PRIVATE Qt6::Core Qt6::Multimedia Qt6::Quick Qt6::Network Qt6::TextToSpeech)
46+
47+
install(TARGETS intellicute
48+
BUNDLE DESTINATION .
49+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})

0 commit comments

Comments
 (0)