Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the new features of xmake v2.1.5?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Xmake v2.1.5 version of the new features, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

New features

# 83: add add_csnippet,add_cxxsnippet to option to detect some compiler features

# 83: add a user extension module to detect programs, library files, and other host environments

Add find_program, find_file, find_library, find_tool and find_package module interfaces

Add net.* and devel.* expansion modules

Add the val () interface to get the built-in variables, such as val ("host"), val ("env PATH"), val ("shell echo hello") and val ("reg HKEY_LOCAL_MACHINE\\ XX;Value")

Added compilation support for Microsoft .rc resource files, when compiling on windows, you can add resource files

Add has_flags, features, has_features and other detection module interfaces

Add option.on_check, option.after_check, and option.before_check interfaces

Add target.on_load Interfac

# 132: add add_frameworkdirs API

Add lib.detect.has_xxx and lib.detect.find_xxx interfaces

Add add_moduledirs interface to define and load extension modules in the project

Add includes interface to replace add_subdirs and add_subfiles

# 133: improvement engineering plug-in to export compile_commands.json by running xmake project-k compile_commands

Add set_pcheader and set_pcxxheader to support precompiled header files across compilers, gcc, clang and msvc

Add xmake f-p cross platform for cross-compilation and support custom platform names

Improve

# 87: automatically add includes and links for dependent library targets

Improve import interface to load user extension module

# 93: improved xmake lua to support running single-line commands and modules

Improved compilation error message output

Improve the print interface to better display table data

# 111Add-- root generic option to temporarily support running as root

# 113: improved permission management, and now it is very safe to run as root

Improved xxx_script project description api to support multi-platform mode selection, for example: on_build ("iphoneos | arm*", function (target) end)

Improved built-in variables to support access to environment variables and registry data

Improved detection of vstudio environment and cross tool chain

# 71: improved detection of linkers and compilers from environment variables

Improved option option detection, increased detection speed by 70% through multitasking detection

# 129: detect link dependencies. If the source file has not changed, it is not necessary to relink the target file.

Add support for * .asm files in the vs201x project plug-in

Mark add_bindings and add_rbindings as obsolete interfaces

Optimize the construction speed of xmake rebuild on windows

Migrate core.project.task modules to core.base.task

Migrate echo and app2ipa plug-ins to the xmake-plugins repository

Add set_config_header ("config.h", {prefix = ""}) instead of set_config_h and set_config_h_prefix

Bugs repair

Repair try-catch-finally

Fix interpreter bug to fix incorrect root domain properties when loading multi-level subdirectories

# 115: fix the path problem of the installation script get.sh

Fixed the caching problem of the import () import interface

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report