xmake-vscode plugin is a xmake integration in Visual Studio Code.
It is deeply integrated with xmake and vscode to provide a convenient and fast cross-platform c/c++ development and building.
This version is mainly updated as follows:
xmake-vscode plugin is a xmake integration in Visual Studio Code.
It is deeply integrated with xmake and vscode to provide a convenient and fast cross-platform c/c++ development and building.
This version is mainly updated as follows:
Newly added configuration:
"xmake.QtDirectory": {
"type": "string",
"default": "",
"description": "The Qt Directory"
},
"xmake.WDKDirectory": {
"type": "string",
"default": "",
"description": "The WDK Directory"
},
"xmake.additionalConfigArguments": {
"type": "string",
"default": "",
"description": "The Additional Config Arguments, .e.g --cc=gcc --cxflags=\"-DDEBUG\""
}
To make xmake more convenient and flexible to support other compilation environments, I spent four months to upgrade custom rule rules.
Users can now implement various compilation rules by customizing the rules, and xmake also has built-in common compilation rules that can be applied directly to the current project to support QT, WDK driver and Cuda compilation environments.
Relative articles:
set_tools and add_tools apis to change the toolchains for special targetmode.debug, mode.release, mode.profile and mode.checkis_mode, is_arch and is_plat builtin apis in the custom scriptsqt.console, qt.application rulesos.files and os.dirs apimake clean for generating makefile pluginIn the latest xmake v2.2.1 release, we have supported for the QT SDK environment, and we can fully develop QT applications in VScode/Sublime Text/IDEA Intellij and xmake plugin (xmake-vscode, xmake-idea …).
Users can completely switch to their most commonly used editor environments to develop and build QT programs, such as:

xmake provides some project templates that can be used to quickly create an empty project based on QT, for example:
$ xmake create -l c++ -t console_qt test
$ xmake create -l c++ -t static_qt test
$ xmake create -l c++ -t shared_qt test
$ xmake create -l c++ -t quickapp_qt test
At present, mainly provide the four types of engineering templates, corresponding to: console programs, static libraries, dynamic libraries, UI applications.
The content of xmake.lua for quickapp is this:
target("qt_demo")
-- add rules
add_rules("qt.application")
-- add headers
add_headers("src/*.h")
-- add files
add_files("src/*.cpp")
add_files("src/qml.qrc")
-- add frameworks
add_frameworks("QtQuick")
This release provide user custom menu config, like make menuconfig for linux:

If you want to known more usage, please see online documents。
del_files() api to delete files in the files listrule(), add_rules() api to implement the custom build rule and improve add_files("src/*.md", {rule = "markdown"})os.filesize() apicore.ui.xxx cui componentsxmake f --menu to configure project with a menu configuration interfaceset_values api to option()xmake f --cc=gcc@ccmips.exeadd_cxflags .., force to set flags without auto checking: add_cxflags("-DTEST", {force = true})add_files, add force block to force to set flags without auto checking: add_files("src/*.c", {force = {cxflags = "-DTEST"}})os.nuldev() for gcc on mingwar.exexmake f --cross erroros.cd to the windows root path bugconfiguration menu:
