diff --git a/CMakeLists.txt b/CMakeLists.txt index fe927e7..f84fd1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -310,6 +310,12 @@ else() target_link_libraries(${PROJECT_NAME} ${CMAKE_BINARY_DIR}/external/installed/lib/libSDL3.a) find_package(X11 REQUIRED) target_link_libraries(${PROJECT_NAME} ${X11_LIBRARIES}) + find_package(PkgConfig REQUIRED) + pkg_check_modules(SpeechD REQUIRED speech-dispatcher) + + target_link_libraries(${PROJECT_NAME} ${SpeechD_LIBRARIES}) + + endif() target_link_libraries(${PROJECT_NAME} Poco::Foundation) target_link_libraries(${PROJECT_NAME} Poco::Net) diff --git a/Release/Tests/memcpy.ngt b/Release/Tests/memcpy.ngt index b2051c2..1e3176d 100644 --- a/Release/Tests/memcpy.ngt +++ b/Release/Tests/memcpy.ngt @@ -1,6 +1,5 @@ string str; int main() { - show_console(); str = "Hello, World!"; uint64 source = str.c_str(); uint64 destination = malloc(20); @@ -11,7 +10,6 @@ int main() { // Print the contents of the destination array printf("Destination: %s\n", c_str_to_string(destination)); free(destination); - exec("pause"); return 0; } diff --git a/Release/Tests/memory_stream_test.ngt b/Release/Tests/memory_stream_test.ngt index b39cce4..f682453 100644 --- a/Release/Tests/memory_stream_test.ngt +++ b/Release/Tests/memory_stream_test.ngt @@ -1,4 +1,4 @@ -void main() { +shared void main() { memory_stream stream(0); // Writing to the stream @@ -7,7 +7,7 @@ void main() { stream.write(str.c_str(), str.length()); // Getting current position int pos = stream.tell(); - printf("Current Position: " + pos); + println("Current Position: " + pos); // Seeking back to the start stream.seek(0); @@ -15,12 +15,11 @@ void main() { // Reading from the stream string data; stream.read(data, stream.size); // Read 13 bytes - printf("Data read from stream: " + data); + println("Data read from stream: ", data); // Checking the size of the stream size_t size = stream.size; - printf("Size of stream: " + size); + println("Size of stream: ", size); stream.clear(); - exec("pause"); } diff --git a/perf.data b/perf.data new file mode 100644 index 0000000..c660cef Binary files /dev/null and b/perf.data differ