Skip to content

English

English

Appearance

ASN.1 programs need to use ASN.1 Compiler to generate relevant .c files to participate in project compilation.

While Xmake provides built-in add_rules("asn1c") rules to process .c file generation, add_requires("asn1c") automatically pulls and integrates ASN.1 compiler tools.

Here is a basic configuration example:

EXPLORER
src
main.c
rectangle.asn1
xmake.lua
Lua xmake.lua
123456789
add_rules("mode.debug", "mode.release")
add_requires("asn1c")

target("test")
 set_kind("binary")
 add_files("src/*.c")
 add_files("src/*.asn1")
 add_rules("asn1c")
 add_packages("asn1c")

For details, see Example Project.

AltStyle によって変換されたページ (->オリジナル) /