⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rc-mingw.jam

📁 ReactOS是一些高手根据Windows XP的内核编写出的类XP。内核实现机理和API函数调用几乎相同。甚至可以兼容XP的程序。喜欢研究系统内核的人可以看一看。
💻 JAM
字号:
import type ;
import generators ;
import feature ;

type.register RC : rc ;

rule init ( )
{
}

rule resource-compile ( target : sources * : properties * )
{
#    local OS = [ feature.get-values <os> : $(properties) ] ;
    resource-compile-mingw $(target) : $(sources[1]) ;
#    switch $(OS)
#    {
#        case "NT" :
#            resource-compile-nt $(target) : $(sources[1]) ;
#        case "CYGWIN" :
#            resource-compile-cygwin $(target) : $(sources[1]) ;
#        case "FREEBSD" :
#            create-empty-object $(target) : $(sources[1]) ;
#        case "*" :
#            errors.error "Cannot process RC files for OS=$(OS)" ;
#    }
}


actions quietly resource-compile-nt
{
    rc /i "$(>:D)" /fo "$(<)" "$(>)"
}

actions quietly resource-compile-mingw
{
    windres -D__WINDRES__ -o "$(<)" -i "$(>)"
}

actions quietly resource-compile-cygwin
{
    windres -D__WINDRES__ --include-dir "$(>:D)" -o "$(<)" -i "$(>)"
}

actions quietly create-empty-object
{
    as /dev/null -o "$(<)"
}

# Since it's a common practice to write
# exe hello : hello.cpp hello.rc
# we change the name of object created from RC file, to
# avoid conflict with hello.cpp.
generators.register-standard rc-mingw.resource-compile : RC : OBJ(%_res) ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -