diff --git a/Gtk3/vscode-gtk-test/.vscode/c_cpp_properties.json b/Gtk3/vscode-gtk-test/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..fa49425 --- /dev/null +++ b/Gtk3/vscode-gtk-test/.vscode/c_cpp_properties.json @@ -0,0 +1,40 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**", + "/usr/include/gtk-3.0/**", + "/usr/include/gtk-3.0/gtk/**", + "/usr/include/at-spi2-atk/2.0/**", + "/usr/include/at-spi-2.0/**", + "/usr/include/dbus-1.0/**", + "/usr/lib/aarch64-linux-gnu/dbus-1.0/include/**", + "/usr/include/gio-unix-2.0/**", + "/usr/include/cairo/**", + "/usr/include/pango-1.0/**", + "/usr/include/fribidi/**", + "/usr/include/harfbuzz/**", + "/usr/include/atk-1.0/**", + "/usr/include/pixman-1/**", + "/usr/include/uuid/**", + "/usr/include/freetype2/**", + "/usr/include/libpng16/**", + "/usr/include/gdk-pixbuf-2.0/**", + "/usr/include/libmount/**", + "/usr/include/blkid/**", + "/usr/include/glib-2.0/**", + "/usr/lib/aarch64-linux-gnu/glib-2.0/include" + ], + "defines": [], + "compilerPath": "/usr/bin/gcc", + "cStandard": "gnu17", + "cppStandard": "gnu++14", + "intelliSenseMode": "gcc-arm64", + "compilerArgs": [ + "`pkg-config --cflags --libs gtk+-3.0`" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/Gtk3/vscode-gtk-test/.vscode/launch.json b/Gtk3/vscode-gtk-test/.vscode/launch.json new file mode 100644 index 0000000..23e633e --- /dev/null +++ b/Gtk3/vscode-gtk-test/.vscode/launch.json @@ -0,0 +1,29 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "g++ - Build and debug active file", + "type": "cppdbg", + "request": "launch", + "program": "${fileDirname}/${fileBasenameNoExtension}", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "C/C++: g++ build active file", + "miDebuggerPath": "/usr/bin/gdb" + } + ] +} \ No newline at end of file diff --git a/Gtk3/vscode-gtk-test/.vscode/settings.json b/Gtk3/vscode-gtk-test/.vscode/settings.json new file mode 100644 index 0000000..691a8f6 --- /dev/null +++ b/Gtk3/vscode-gtk-test/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.errorSquiggles": "Disabled" +} \ No newline at end of file diff --git a/Gtk3/vscode-gtk-test/.vscode/tasks.json b/Gtk3/vscode-gtk-test/.vscode/tasks.json new file mode 100644 index 0000000..d457d60 --- /dev/null +++ b/Gtk3/vscode-gtk-test/.vscode/tasks.json @@ -0,0 +1,62 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: g++ build active file", + "command": "/usr/bin/g++", + "args": [ + "-g", + "${file}", + "-o", + "${fileDirname}/${fileBasenameNoExtension}", + "-pthread", + "-I/usr/include/gtk-3.0", + "-I/usr/include/at-spi2-atk/2.0", + "-I/usr/include/at-spi-2.0", + "-I/usr/include/dbus-1.0", + "-I/usr/lib/aarch64-linux-gnu/dbus-1.0/include", + "-I/usr/include/gtk-3.0", + "-I/usr/include/gio-unix-2.0", + "-I/usr/include/cairo", + "-I/usr/include/pango-1.0", + "-I/usr/include/fribidi", + "-I/usr/include/harfbuzz", + "-I/usr/include/atk-1.0", + "-I/usr/include/cairo", + "-I/usr/include/pixman-1", + "-I/usr/include/uuid", + "-I/usr/include/freetype2", + "-I/usr/include/libpng16", + "-I/usr/include/gdk-pixbuf-2.0", + "-I/usr/include/libmount", + "-I/usr/include/blkid", + "-I/usr/include/glib-2.0", + "-I/usr/lib/aarch64-linux-gnu/glib-2.0/include", + "-lgtk-3", + "-lgdk-3", + "-lpangocairo-1.0", + "-lpango-1.0", + "-lharfbuzz", + "-latk-1.0", + "-lcairo-gobject", + "-lcairo", + "-lgdk_pixbuf-2.0", + "-lgio-2.0", + "-lgobject-2.0", + "-lglib-2.0", + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "Task generated by Debugger." + } + ], + "version": "2.0.0" +} \ No newline at end of file diff --git a/Gtk3/vscode-gtk-test/main.cpp b/Gtk3/vscode-gtk-test/main.cpp new file mode 100644 index 0000000..0a9585b --- /dev/null +++ b/Gtk3/vscode-gtk-test/main.cpp @@ -0,0 +1,14 @@ +#include + +static void gtkmain(GtkApplication *app,gpointer user_data){ + GtkWidget *window; + window=gtk_application_window_new(app); + gtk_widget_show_all(window); +} + +int main(int argc,char *argv[]){ + GtkApplication *app; + app=gtk_application_new("com.github.vscode.test",G_APPLICATION_FLAGS_NONE); + g_signal_connect(app,"activate",G_CALLBACK(gtkmain),NULL); + return g_application_run(G_APPLICATION(app),argc,argv); +} \ No newline at end of file diff --git a/cpp/vscode-test/main b/cpp/vscode-test/main deleted file mode 100644 index bf54dad..0000000 Binary files a/cpp/vscode-test/main and /dev/null differ