From ebe9d193bba641037cbdb7fdf55bbe02f8e0074a Mon Sep 17 00:00:00 2001 From: daleclack Date: Sun, 10 Jan 2021 14:51:17 +0800 Subject: [PATCH] Add vscode-gtk test --- .../.vscode/c_cpp_properties.json | 40 +++++++++++ Gtk3/vscode-gtk-test/.vscode/launch.json | 29 ++++++++ Gtk3/vscode-gtk-test/.vscode/settings.json | 3 + Gtk3/vscode-gtk-test/.vscode/tasks.json | 62 ++++++++++++++++++ Gtk3/vscode-gtk-test/main.cpp | 14 ++++ cpp/vscode-test/main | Bin 16152 -> 0 bytes 6 files changed, 148 insertions(+) create mode 100644 Gtk3/vscode-gtk-test/.vscode/c_cpp_properties.json create mode 100644 Gtk3/vscode-gtk-test/.vscode/launch.json create mode 100644 Gtk3/vscode-gtk-test/.vscode/settings.json create mode 100644 Gtk3/vscode-gtk-test/.vscode/tasks.json create mode 100644 Gtk3/vscode-gtk-test/main.cpp delete mode 100644 cpp/vscode-test/main 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 bf54dadade931b6cf323b395ca2cf5a8e9c29204..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16152 zcmeHO4RBn=ec!vMlTLd2I7zl8VX#lev=m1t35>D81bx_+Mg2i+LrG}!bh>*dU46P! z??aYt8XTYjN>i-ZfN6o!$+Xx^8=Te+?vxP0(3T19j1xZMHb7+uC^JCnl<=W~QGfs4 z{h!{wI|0*nrkRXay7%Az=l=J<`}Xa=-FMTvjqAN0kKkm8#{^-6<%-g+83$MC3_!P7 zEh=$cCRzoFl}Vc7cPjv{N*`#`4E>sJ0FvHnuOhhNVlBszJtXMUyi(x#N=0QTWNp-y zd_7j9_{VCLMTUE|AGd4BdW4eRGg|K%t;cX$JI0XfM|Gp$c5TlM*MdihA<0s@=Cy2; z@_V%*H{2+tgkZ>eUx1!&GA;4RAfVY>b$Ro}WrOygA-6+&B0kifh_)r-$=pO+IGm1* ztXdh$q(Ysl-V0!#+PHu7wIcG5t5!V`d+G;Iet+@bpLlxRMN9X8>lX5xd?0%yLy6=o zWKPkE$K`4AX99*W#qkoI#1Kv5!a$+LURVs4uv!h;vJ!Oaj}0a0Uj{8$f=+ExN}jwZ zMIQw{h+k0}%VjenJd{djg=Ix1!d5Jv3@75dZJ=n2h?U8P(^+dY98U_usV!EC{*42@ zeb&XH&dY=~uziyiwbS-+Jd?H4+c)(kQb~Jzcql<8hDTFLZNgHbB?a?tc?ES0btR$) ze{F!=ukM|^2UYiq%ZQ1@_nDzP?3ixoDSbaNJ*eqN>L^0!6I#Ao-w(%K^eHWW!bQ(& zdWUXrw!`=_E$@MS>UW%`9CTf@WIf}cJMXh;2VD<6%9JkG3nNZDeh1yzMFS4H(|)sq zuB#;N2OV@CbBJ+f&-V_WF~nqt5C_iedGgSdVZEpvQrFYq?-OEQ{m1b>1F0k4oeiI)Rk=D@3f_d4)e;6o0)0r<@dKTqua;S&5_Gs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