summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-04 07:54:30 +0800
committerGitHub <[email protected]>2026-03-04 07:54:30 +0800
commitbf24224a1f27d9b957caef9fdffa64f139ca093f (patch)
treebc67ba183ffff74b7882fd02d53c04b274280187
parente0e20ef6ddbd0fc62fbaa00d195ce95f22a86fdf (diff)
parent074e35d2647a9271d37ecc30f41b4ca7332033ac (diff)
Merge pull request #7368 from xmake-io/templates
move templates to repository
-rw-r--r--core/src/cli/xmake.lua5
-rwxr-xr-xcore/src/cli/xmake.sh2
-rw-r--r--xmake/actions/create/main.lua4
-rw-r--r--xmake/actions/create/template.lua26
-rw-r--r--xmake/repository/templates/c++/console/src/main.cpp (renamed from xmake/templates/c++/console/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/console/xmake.lua (renamed from xmake/templates/c++/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/module/binary/.gitignore (renamed from xmake/templates/c++/module/binary/.gitignore)0
-rw-r--r--xmake/repository/templates/c++/module/binary/modules/binary/bar/.gitignore (renamed from xmake/templates/c++/module/binary/modules/binary/bar/.gitignore)0
-rw-r--r--xmake/repository/templates/c++/module/binary/modules/binary/bar/src/add.cpp (renamed from xmake/templates/c++/module/binary/modules/binary/bar/src/add.cpp)0
-rw-r--r--xmake/repository/templates/c++/module/binary/modules/binary/bar/src/sub.cpp (renamed from xmake/templates/c++/module/binary/modules/binary/bar/src/sub.cpp)0
-rw-r--r--xmake/repository/templates/c++/module/binary/modules/binary/bar/xmake.lua (renamed from xmake/templates/c++/module/binary/modules/binary/bar/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/module/binary/src/main.cpp (renamed from xmake/templates/c++/module/binary/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/module/binary/xmake.lua (renamed from xmake/templates/c++/module/binary/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/module/shared/.gitignore (renamed from xmake/templates/c++/module/shared/.gitignore)0
-rw-r--r--xmake/repository/templates/c++/module/shared/modules/shared/foo/src/foo.cpp (renamed from xmake/templates/c++/module/shared/modules/shared/foo/src/foo.cpp)0
-rw-r--r--xmake/repository/templates/c++/module/shared/modules/shared/foo/xmake.lua (renamed from xmake/templates/c++/module/shared/modules/shared/foo/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/module/shared/src/main.cpp (renamed from xmake/templates/c++/module/shared/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/module/shared/xmake.lua (renamed from xmake/templates/c++/module/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/qt/console/src/main.cpp (renamed from xmake/templates/c++/qt/console/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/qt/console/xmake.lua (renamed from xmake/templates/c++/qt/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/qt/quickapp/src/main.cpp (renamed from xmake/templates/c++/qt/quickapp/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/qt/quickapp/src/main.qml (renamed from xmake/templates/c++/qt/quickapp/src/main.qml)0
-rw-r--r--xmake/repository/templates/c++/qt/quickapp/src/qml.qrc (renamed from xmake/templates/c++/qt/quickapp/src/qml.qrc)0
-rw-r--r--xmake/repository/templates/c++/qt/quickapp/xmake.lua (renamed from xmake/templates/c++/qt/quickapp/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/qt/quickapp_static/src/main.cpp (renamed from xmake/templates/c++/qt/quickapp_static/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/qt/quickapp_static/src/main.qml (renamed from xmake/templates/c++/qt/quickapp_static/src/main.qml)0
-rw-r--r--xmake/repository/templates/c++/qt/quickapp_static/src/qml.qrc (renamed from xmake/templates/c++/qt/quickapp_static/src/qml.qrc)0
-rw-r--r--xmake/repository/templates/c++/qt/quickapp_static/xmake.lua (renamed from xmake/templates/c++/qt/quickapp_static/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/qt/shared/src/demo.cpp (renamed from xmake/templates/c++/qt/shared/src/demo.cpp)0
-rw-r--r--xmake/repository/templates/c++/qt/shared/src/demo.h (renamed from xmake/templates/c++/qt/shared/src/demo.h)0
-rw-r--r--xmake/repository/templates/c++/qt/shared/src/demo_global.h (renamed from xmake/templates/c++/qt/shared/src/demo_global.h)0
-rw-r--r--xmake/repository/templates/c++/qt/shared/xmake.lua (renamed from xmake/templates/c++/qt/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/qt/static/src/demo.cpp (renamed from xmake/templates/c++/qt/static/src/demo.cpp)0
-rw-r--r--xmake/repository/templates/c++/qt/static/src/demo.h (renamed from xmake/templates/c++/qt/static/src/demo.h)0
-rw-r--r--xmake/repository/templates/c++/qt/static/xmake.lua (renamed from xmake/templates/c++/qt/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp/src/main.cpp (renamed from xmake/templates/c++/qt/widgetapp/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.cpp (renamed from xmake/templates/c++/qt/widgetapp/src/mainwindow.cpp)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.h (renamed from xmake/templates/c++/qt/widgetapp/src/mainwindow.h)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.ui (renamed from xmake/templates/c++/qt/widgetapp/src/mainwindow.ui)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp/xmake.lua (renamed from xmake/templates/c++/qt/widgetapp/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp_static/src/main.cpp (renamed from xmake/templates/c++/qt/widgetapp_static/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.cpp (renamed from xmake/templates/c++/qt/widgetapp_static/src/mainwindow.cpp)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.h (renamed from xmake/templates/c++/qt/widgetapp_static/src/mainwindow.h)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.ui (renamed from xmake/templates/c++/qt/widgetapp_static/src/mainwindow.ui)0
-rw-r--r--xmake/repository/templates/c++/qt/widgetapp_static/xmake.lua (renamed from xmake/templates/c++/qt/widgetapp_static/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/shared/src/foo.cpp (renamed from xmake/templates/c++/shared/src/foo.cpp)0
-rw-r--r--xmake/repository/templates/c++/shared/src/foo.h (renamed from xmake/templates/c++/shared/src/foo.h)0
-rw-r--r--xmake/repository/templates/c++/shared/src/main.cpp (renamed from xmake/templates/c++/shared/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/shared/xmake.lua (renamed from xmake/templates/c++/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/static/src/foo.cpp (renamed from xmake/templates/c++/static/src/foo.cpp)0
-rw-r--r--xmake/repository/templates/c++/static/src/foo.h (renamed from xmake/templates/c++/static/src/foo.h)0
-rw-r--r--xmake/repository/templates/c++/static/src/main.cpp (renamed from xmake/templates/c++/static/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/static/xmake.lua (renamed from xmake/templates/c++/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/wxwidgets/src/main.cpp (renamed from xmake/templates/c++/wxwidgets/src/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/wxwidgets/xmake.lua (renamed from xmake/templates/c++/wxwidgets/xmake.lua)0
-rw-r--r--xmake/repository/templates/c++/xmake/cli/src/lni/main.cpp (renamed from xmake/templates/c++/xmake/cli/src/lni/main.cpp)0
-rw-r--r--xmake/repository/templates/c++/xmake/cli/src/lua/main.lua (renamed from xmake/templates/c++/xmake/cli/src/lua/main.lua)0
-rw-r--r--xmake/repository/templates/c++/xmake/cli/xmake.lua (renamed from xmake/templates/c++/xmake/cli/xmake.lua)0
-rw-r--r--xmake/repository/templates/c/console/src/main.c (renamed from xmake/templates/c/console/src/main.c)0
-rw-r--r--xmake/repository/templates/c/console/xmake.lua (renamed from xmake/templates/c/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/c/module/binary/.gitignore (renamed from xmake/templates/c/module/binary/.gitignore)0
-rw-r--r--xmake/repository/templates/c/module/binary/modules/binary/bar/.gitignore (renamed from xmake/templates/c/module/binary/modules/binary/bar/.gitignore)0
-rw-r--r--xmake/repository/templates/c/module/binary/modules/binary/bar/src/add.c (renamed from xmake/templates/c/module/binary/modules/binary/bar/src/add.c)0
-rw-r--r--xmake/repository/templates/c/module/binary/modules/binary/bar/src/sub.c (renamed from xmake/templates/c/module/binary/modules/binary/bar/src/sub.c)0
-rw-r--r--xmake/repository/templates/c/module/binary/modules/binary/bar/xmake.lua (renamed from xmake/templates/c/module/binary/modules/binary/bar/xmake.lua)0
-rw-r--r--xmake/repository/templates/c/module/binary/src/main.c (renamed from xmake/templates/c/module/binary/src/main.c)0
-rw-r--r--xmake/repository/templates/c/module/binary/xmake.lua (renamed from xmake/templates/c/module/binary/xmake.lua)0
-rw-r--r--xmake/repository/templates/c/module/shared/.gitignore (renamed from xmake/templates/c/module/shared/.gitignore)0
-rw-r--r--xmake/repository/templates/c/module/shared/modules/shared/foo/src/foo.c (renamed from xmake/templates/c/module/shared/modules/shared/foo/src/foo.c)0
-rw-r--r--xmake/repository/templates/c/module/shared/modules/shared/foo/xmake.lua (renamed from xmake/templates/c/module/shared/modules/shared/foo/xmake.lua)0
-rw-r--r--xmake/repository/templates/c/module/shared/src/main.c (renamed from xmake/templates/c/module/shared/src/main.c)0
-rw-r--r--xmake/repository/templates/c/module/shared/xmake.lua (renamed from xmake/templates/c/module/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/c/shared/src/foo.c (renamed from xmake/templates/c/shared/src/foo.c)0
-rw-r--r--xmake/repository/templates/c/shared/src/foo.h (renamed from xmake/templates/c/shared/src/foo.h)0
-rw-r--r--xmake/repository/templates/c/shared/src/main.c (renamed from xmake/templates/c/shared/src/main.c)0
-rw-r--r--xmake/repository/templates/c/shared/xmake.lua (renamed from xmake/templates/c/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/c/static/src/foo.c (renamed from xmake/templates/c/static/src/foo.c)0
-rw-r--r--xmake/repository/templates/c/static/src/foo.h (renamed from xmake/templates/c/static/src/foo.h)0
-rw-r--r--xmake/repository/templates/c/static/src/main.c (renamed from xmake/templates/c/static/src/main.c)0
-rw-r--r--xmake/repository/templates/c/static/xmake.lua (renamed from xmake/templates/c/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/c/xmake/cli/src/lni/main.c (renamed from xmake/templates/c/xmake/cli/src/lni/main.c)0
-rw-r--r--xmake/repository/templates/c/xmake/cli/src/lua/main.lua (renamed from xmake/templates/c/xmake/cli/src/lua/main.lua)0
-rw-r--r--xmake/repository/templates/c/xmake/cli/xmake.lua (renamed from xmake/templates/c/xmake/cli/xmake.lua)0
-rw-r--r--xmake/repository/templates/cuda/console/src/main.cu (renamed from xmake/templates/cuda/console/src/main.cu)0
-rw-r--r--xmake/repository/templates/cuda/console/xmake.lua (renamed from xmake/templates/cuda/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/cuda/shared/inc/lib.cuh (renamed from xmake/templates/cuda/shared/inc/lib.cuh)0
-rw-r--r--xmake/repository/templates/cuda/shared/src/lib.cu (renamed from xmake/templates/cuda/shared/src/lib.cu)0
-rw-r--r--xmake/repository/templates/cuda/shared/xmake.lua (renamed from xmake/templates/cuda/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/cuda/static/inc/lib.cuh (renamed from xmake/templates/cuda/static/inc/lib.cuh)0
-rw-r--r--xmake/repository/templates/cuda/static/src/lib.cu (renamed from xmake/templates/cuda/static/src/lib.cu)0
-rw-r--r--xmake/repository/templates/cuda/static/xmake.lua (renamed from xmake/templates/cuda/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/dlang/console/src/main.d (renamed from xmake/templates/dlang/console/src/main.d)0
-rw-r--r--xmake/repository/templates/dlang/console/xmake.lua (renamed from xmake/templates/dlang/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/dlang/shared/src/interfaces.d (renamed from xmake/templates/dlang/shared/src/interfaces.d)0
-rw-r--r--xmake/repository/templates/dlang/shared/src/main.d (renamed from xmake/templates/dlang/shared/src/main.d)0
-rw-r--r--xmake/repository/templates/dlang/shared/xmake.lua (renamed from xmake/templates/dlang/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/dlang/static/src/interfaces.d (renamed from xmake/templates/dlang/static/src/interfaces.d)0
-rw-r--r--xmake/repository/templates/dlang/static/src/main.d (renamed from xmake/templates/dlang/static/src/main.d)0
-rw-r--r--xmake/repository/templates/dlang/static/xmake.lua (renamed from xmake/templates/dlang/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/fortran/console/src/main.f90 (renamed from xmake/templates/fortran/console/src/main.f90)0
-rw-r--r--xmake/repository/templates/fortran/console/xmake.lua (renamed from xmake/templates/fortran/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/fortran/shared/src/main.f90 (renamed from xmake/templates/fortran/shared/src/main.f90)0
-rw-r--r--xmake/repository/templates/fortran/shared/src/test.f90 (renamed from xmake/templates/fortran/shared/src/test.f90)0
-rw-r--r--xmake/repository/templates/fortran/shared/xmake.lua (renamed from xmake/templates/fortran/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/fortran/static/src/main.f90 (renamed from xmake/templates/fortran/static/src/main.f90)0
-rw-r--r--xmake/repository/templates/fortran/static/src/test.f90 (renamed from xmake/templates/fortran/static/src/test.f90)0
-rw-r--r--xmake/repository/templates/fortran/static/xmake.lua (renamed from xmake/templates/fortran/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/go/console/src/main.go (renamed from xmake/templates/go/console/src/main.go)0
-rw-r--r--xmake/repository/templates/go/console/xmake.lua (renamed from xmake/templates/go/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/go/static/src/main.go (renamed from xmake/templates/go/static/src/main.go)0
-rw-r--r--xmake/repository/templates/go/static/src/module/add.go (renamed from xmake/templates/go/static/src/module/add.go)0
-rw-r--r--xmake/repository/templates/go/static/src/module/sub.go (renamed from xmake/templates/go/static/src/module/sub.go)0
-rw-r--r--xmake/repository/templates/go/static/src/test.go (renamed from xmake/templates/go/static/src/test.go)0
-rw-r--r--xmake/repository/templates/go/static/xmake.lua (renamed from xmake/templates/go/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/kotlin/console/src/main.kt (renamed from xmake/templates/kotlin/console/src/main.kt)0
-rw-r--r--xmake/repository/templates/kotlin/console/xmake.lua (renamed from xmake/templates/kotlin/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/kotlin/shared/src/foo.kt (renamed from xmake/templates/kotlin/shared/src/foo.kt)0
-rw-r--r--xmake/repository/templates/kotlin/shared/src/main.c (renamed from xmake/templates/kotlin/shared/src/main.c)0
-rw-r--r--xmake/repository/templates/kotlin/shared/xmake.lua (renamed from xmake/templates/kotlin/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/kotlin/static/src/foo.kt (renamed from xmake/templates/kotlin/static/src/foo.kt)0
-rw-r--r--xmake/repository/templates/kotlin/static/src/main.c (renamed from xmake/templates/kotlin/static/src/main.c)0
-rw-r--r--xmake/repository/templates/kotlin/static/xmake.lua (renamed from xmake/templates/kotlin/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/nim/console/src/main.nim (renamed from xmake/templates/nim/console/src/main.nim)0
-rw-r--r--xmake/repository/templates/nim/console/xmake.lua (renamed from xmake/templates/nim/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/nim/shared/src/foo.nim (renamed from xmake/templates/nim/shared/src/foo.nim)0
-rw-r--r--xmake/repository/templates/nim/shared/src/main.nim (renamed from xmake/templates/nim/shared/src/main.nim)0
-rw-r--r--xmake/repository/templates/nim/shared/xmake.lua (renamed from xmake/templates/nim/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/nim/static/src/foo.nim (renamed from xmake/templates/nim/static/src/foo.nim)0
-rw-r--r--xmake/repository/templates/nim/static/src/main.nim (renamed from xmake/templates/nim/static/src/main.nim)0
-rw-r--r--xmake/repository/templates/nim/static/xmake.lua (renamed from xmake/templates/nim/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc++/console/src/main.mm (renamed from xmake/templates/objc++/console/src/main.mm)0
-rw-r--r--xmake/repository/templates/objc++/console/xmake.lua (renamed from xmake/templates/objc++/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc++/xcode/bundle/src/Info.plist (renamed from xmake/templates/objc++/xcode/bundle/src/Info.plist)0
-rw-r--r--xmake/repository/templates/objc++/xcode/bundle/src/test.h (renamed from xmake/templates/objc++/xcode/bundle/src/test.h)0
-rw-r--r--xmake/repository/templates/objc++/xcode/bundle/src/test.mm (renamed from xmake/templates/objc++/xcode/bundle/src/test.mm)0
-rw-r--r--xmake/repository/templates/objc++/xcode/bundle/xmake.lua (renamed from xmake/templates/objc++/xcode/bundle/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc++/xcode/framework/src/Info.plist (renamed from xmake/templates/objc++/xcode/framework/src/Info.plist)0
-rw-r--r--xmake/repository/templates/objc++/xcode/framework/src/test.h (renamed from xmake/templates/objc++/xcode/framework/src/test.h)0
-rw-r--r--xmake/repository/templates/objc++/xcode/framework/src/test.mm (renamed from xmake/templates/objc++/xcode/framework/src/test.mm)0
-rw-r--r--xmake/repository/templates/objc++/xcode/framework/xmake.lua (renamed from xmake/templates/objc++/xcode/framework/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc/console/src/main.m (renamed from xmake/templates/objc/console/src/main.m)0
-rw-r--r--xmake/repository/templates/objc/console/xmake.lua (renamed from xmake/templates/objc/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc/xcode/bundle/src/Info.plist (renamed from xmake/templates/objc/xcode/bundle/src/Info.plist)0
-rw-r--r--xmake/repository/templates/objc/xcode/bundle/src/test.h (renamed from xmake/templates/objc/xcode/bundle/src/test.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/bundle/src/test.m (renamed from xmake/templates/objc/xcode/bundle/src/test.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/bundle/xmake.lua (renamed from xmake/templates/objc/xcode/bundle/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc/xcode/framework/src/Info.plist (renamed from xmake/templates/objc/xcode/framework/src/Info.plist)0
-rw-r--r--xmake/repository/templates/objc/xcode/framework/src/test.h (renamed from xmake/templates/objc/xcode/framework/src/test.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/framework/src/test.m (renamed from xmake/templates/objc/xcode/framework/src/test.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/framework/xmake.lua (renamed from xmake/templates/objc/xcode/framework/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/AppDelegate.h (renamed from xmake/templates/objc/xcode/iosapp/src/AppDelegate.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/AppDelegate.m (renamed from xmake/templates/objc/xcode/iosapp/src/AppDelegate.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json (renamed from xmake/templates/objc/xcode/iosapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/Assets.xcassets/Contents.json (renamed from xmake/templates/objc/xcode/iosapp/src/Assets.xcassets/Contents.json)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/Base.lproj/LaunchScreen.storyboard (renamed from xmake/templates/objc/xcode/iosapp/src/Base.lproj/LaunchScreen.storyboard)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/Base.lproj/Main.storyboard (renamed from xmake/templates/objc/xcode/iosapp/src/Base.lproj/Main.storyboard)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/Info.plist (renamed from xmake/templates/objc/xcode/iosapp/src/Info.plist)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/SceneDelegate.h (renamed from xmake/templates/objc/xcode/iosapp/src/SceneDelegate.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/SceneDelegate.m (renamed from xmake/templates/objc/xcode/iosapp/src/SceneDelegate.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/ViewController.h (renamed from xmake/templates/objc/xcode/iosapp/src/ViewController.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/ViewController.m (renamed from xmake/templates/objc/xcode/iosapp/src/ViewController.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/src/main.m (renamed from xmake/templates/objc/xcode/iosapp/src/main.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp/xmake.lua (renamed from xmake/templates/objc/xcode/iosapp/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.h (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.m (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/Contents.json (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/Contents.json)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/LaunchScreen.storyboard (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/LaunchScreen.storyboard)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/Main.storyboard (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/Main.storyboard)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Info.plist (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Info.plist)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.h (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.m (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.h (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.m (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/main.m (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/app/main.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/Info.plist (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/framework/Info.plist)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/test.h (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/framework/test.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/test.m (renamed from xmake/templates/objc/xcode/iosapp_with_framework/src/framework/test.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/iosapp_with_framework/xmake.lua (renamed from xmake/templates/objc/xcode/iosapp_with_framework/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/AppDelegate.h (renamed from xmake/templates/objc/xcode/macapp/src/AppDelegate.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/AppDelegate.m (renamed from xmake/templates/objc/xcode/macapp/src/AppDelegate.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json (renamed from xmake/templates/objc/xcode/macapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/Assets.xcassets/Contents.json (renamed from xmake/templates/objc/xcode/macapp/src/Assets.xcassets/Contents.json)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/Base.lproj/Main.storyboard (renamed from xmake/templates/objc/xcode/macapp/src/Base.lproj/Main.storyboard)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/Info.plist (renamed from xmake/templates/objc/xcode/macapp/src/Info.plist)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/ViewController.h (renamed from xmake/templates/objc/xcode/macapp/src/ViewController.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/ViewController.m (renamed from xmake/templates/objc/xcode/macapp/src/ViewController.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/main.m (renamed from xmake/templates/objc/xcode/macapp/src/main.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/src/test.entitlements (renamed from xmake/templates/objc/xcode/macapp/src/test.entitlements)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp/xmake.lua (renamed from xmake/templates/objc/xcode/macapp/xmake.lua)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.h (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.m (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/Contents.json (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/Contents.json)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Base.lproj/Main.storyboard (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/Base.lproj/Main.storyboard)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Info.plist (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/Info.plist)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/ViewController.h (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/ViewController.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/ViewController.m (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/ViewController.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/main.m (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/main.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/test.entitlements (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/app/test.entitlements)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/Info.plist (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/framework/Info.plist)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/test.h (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/framework/test.h)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/test.m (renamed from xmake/templates/objc/xcode/macapp_with_framework/src/framework/test.m)0
-rw-r--r--xmake/repository/templates/objc/xcode/macapp_with_framework/xmake.lua (renamed from xmake/templates/objc/xcode/macapp_with_framework/xmake.lua)0
-rw-r--r--xmake/repository/templates/pascal/console/src/main.pas (renamed from xmake/templates/pascal/console/src/main.pas)0
-rw-r--r--xmake/repository/templates/pascal/console/xmake.lua (renamed from xmake/templates/pascal/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/pascal/shared/src/foo.pas (renamed from xmake/templates/pascal/shared/src/foo.pas)0
-rw-r--r--xmake/repository/templates/pascal/shared/src/main.pas (renamed from xmake/templates/pascal/shared/src/main.pas)0
-rw-r--r--xmake/repository/templates/pascal/shared/xmake.lua (renamed from xmake/templates/pascal/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/rust/console/src/main.rs (renamed from xmake/templates/rust/console/src/main.rs)0
-rw-r--r--xmake/repository/templates/rust/console/xmake.lua (renamed from xmake/templates/rust/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/rust/shared/src/foo.rs (renamed from xmake/templates/rust/shared/src/foo.rs)0
-rw-r--r--xmake/repository/templates/rust/shared/src/main.rs (renamed from xmake/templates/rust/shared/src/main.rs)0
-rw-r--r--xmake/repository/templates/rust/shared/xmake.lua (renamed from xmake/templates/rust/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/rust/static/src/foo.rs (renamed from xmake/templates/rust/static/src/foo.rs)0
-rw-r--r--xmake/repository/templates/rust/static/src/main.rs (renamed from xmake/templates/rust/static/src/main.rs)0
-rw-r--r--xmake/repository/templates/rust/static/xmake.lua (renamed from xmake/templates/rust/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/swift/console/src/main.swift (renamed from xmake/templates/swift/console/src/main.swift)0
-rw-r--r--xmake/repository/templates/swift/console/xmake.lua (renamed from xmake/templates/swift/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/vala/console/src/main.vala (renamed from xmake/templates/vala/console/src/main.vala)0
-rw-r--r--xmake/repository/templates/vala/console/xmake.lua (renamed from xmake/templates/vala/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/vala/shared/src/main.vala (renamed from xmake/templates/vala/shared/src/main.vala)0
-rw-r--r--xmake/repository/templates/vala/shared/src/mymath.vala (renamed from xmake/templates/vala/shared/src/mymath.vala)0
-rw-r--r--xmake/repository/templates/vala/shared/xmake.lua (renamed from xmake/templates/vala/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/vala/static/src/main.vala (renamed from xmake/templates/vala/static/src/main.vala)0
-rw-r--r--xmake/repository/templates/vala/static/src/mymath.vala (renamed from xmake/templates/vala/static/src/mymath.vala)0
-rw-r--r--xmake/repository/templates/vala/static/xmake.lua (renamed from xmake/templates/vala/static/xmake.lua)0
-rw-r--r--xmake/repository/templates/zig/console/src/main.zig (renamed from xmake/templates/zig/console/src/main.zig)0
-rw-r--r--xmake/repository/templates/zig/console/xmake.lua (renamed from xmake/templates/zig/console/xmake.lua)0
-rw-r--r--xmake/repository/templates/zig/shared/src/main.zig (renamed from xmake/templates/zig/shared/src/main.zig)0
-rw-r--r--xmake/repository/templates/zig/shared/src/test.zig (renamed from xmake/templates/zig/shared/src/test.zig)0
-rw-r--r--xmake/repository/templates/zig/shared/xmake.lua (renamed from xmake/templates/zig/shared/xmake.lua)0
-rw-r--r--xmake/repository/templates/zig/static/src/main.zig (renamed from xmake/templates/zig/static/src/main.zig)0
-rw-r--r--xmake/repository/templates/zig/static/src/test.zig (renamed from xmake/templates/zig/static/src/test.zig)0
-rw-r--r--xmake/repository/templates/zig/static/xmake.lua (renamed from xmake/templates/zig/static/xmake.lua)0
235 files changed, 13 insertions, 24 deletions
diff --git a/core/src/cli/xmake.lua b/core/src/cli/xmake.lua
index 98e86b128..7cd50cb2c 100644
--- a/core/src/cli/xmake.lua
+++ b/core/src/cli/xmake.lua
@@ -58,7 +58,7 @@ target("cli")
add_installfiles("$(projectdir)/../NOTICE.md")
add_installfiles("$(projectdir)/../xmake/(**.lua)")
add_installfiles("$(projectdir)/../xmake/(scripts/**)")
- add_installfiles("$(projectdir)/../xmake/(templates/**)")
+ add_installfiles("$(projectdir)/../xmake/(repository/templates/**)")
add_installfiles("$(projectdir)/../scripts/xrepo.bat")
add_installfiles("$(projectdir)/../scripts/xrepo.ps1")
set_prefixdir("/", {bindir = "/"})
@@ -68,7 +68,7 @@ target("cli")
else
add_installfiles("$(projectdir)/../(xmake/**.lua)", {prefixdir = "share"})
add_installfiles("$(projectdir)/../(xmake/scripts/**)", {prefixdir = "share"})
- add_installfiles("$(projectdir)/../(xmake/templates/**)", {prefixdir = "share"})
+ add_installfiles("$(projectdir)/../(xmake/repository/templates/**)", {prefixdir = "share"})
add_installfiles("$(projectdir)/../scripts/xrepo.sh", {prefixdir = "bin", filename = "xrepo"})
end
@@ -91,4 +91,3 @@ target("cli")
batchcmds:rmdir(package:installdir("toolchains"))
end
end)
-
diff --git a/core/src/cli/xmake.sh b/core/src/cli/xmake.sh
index 6ae33ef16..af4e8ba36 100755
--- a/core/src/cli/xmake.sh
+++ b/core/src/cli/xmake.sh
@@ -32,7 +32,7 @@ target "cli"
add_installfiles "${projectdir}/(xmake/scripts/virtualenvs/**)" "share"
add_installfiles "${projectdir}/(xmake/scripts/conan/**)" "share"
add_installfiles "${projectdir}/(xmake/scripts/module/**)" "share"
- add_installfiles "${projectdir}/(xmake/templates/**)" "share"
+ add_installfiles "${projectdir}/(xmake/repository/templates/**)" "share"
add_installfiles "${projectdir}/scripts/xrepo.sh" "bin" "xrepo"
# fix os.exec() call incorrect program from /mingw64/bin. e.g. python, ..
diff --git a/xmake/actions/create/main.lua b/xmake/actions/create/main.lua
index 72b69f3b2..89a4791a6 100644
--- a/xmake/actions/create/main.lua
+++ b/xmake/actions/create/main.lua
@@ -194,7 +194,9 @@ function _create_project(lang, templateid, targetname)
-- create project
local sourcedir = template.templatedir(lang, templateid)
- assert(sourcedir, "template(%s/%s): not found!", lang, templateid)
+ if not sourcedir then
+ raise("template(%s/%s): not found!\nyou can try:\n - xrepo update-repo (update repositories)\n - xmake create --list (show available templates)", lang, templateid)
+ end
-- get the builtin variables
local builtinvars = template.builtinvars(targetname)
diff --git a/xmake/actions/create/template.lua b/xmake/actions/create/template.lua
index eb9e10b16..d638034cf 100644
--- a/xmake/actions/create/template.lua
+++ b/xmake/actions/create/template.lua
@@ -33,9 +33,8 @@ end
-- get all template roots with extra meta information
--
-- priority:
--- 1. repo: <global-repo>/templates
+-- 1. repo: <global-repo>/templates (including builtin repo templates)
-- 2. global: <globaldir>/templates
--- 3. builtin: <programdir>/templates
function rootinfos()
local results = {}
@@ -55,10 +54,6 @@ function rootinfos()
if os.isdir(dir) then
table.insert(results, {kind = "global", dir = dir})
end
- dir = path.join(os.programdir(), "templates")
- if os.isdir(dir) then
- table.insert(results, {kind = "builtin", dir = dir})
- end
return results
end
@@ -144,20 +139,13 @@ function replace_variables_in_files(files, vars)
end
-- get all languages from templates
+--
+-- scanning template roots to detect languages is too slow, and the language module list does not fully match template language names,
+-- so we hardcode it here for better performance.
function languages()
- local found = hashset.new()
- for _, rootdir in ipairs(rootdirs()) do
- local languages_dirs = os.dirs(path.join(rootdir, "*"))
- if languages_dirs then
- for _, d in ipairs(languages_dirs) do
- local name = path.filename(d)
- found:insert(name)
- end
- end
- end
- local results = found:to_array()
- table.sort(results)
- return results
+ return {"c", "c++", "cuda", "dlang", "fortran", "go",
+ "kotlin", "nim", "objc", "objc++", "pascal",
+ "rust", "swift", "vala", "zig"}
end
-- get all templates for the given language
diff --git a/xmake/templates/c++/console/src/main.cpp b/xmake/repository/templates/c++/console/src/main.cpp
index 9b6abffea..9b6abffea 100644
--- a/xmake/templates/c++/console/src/main.cpp
+++ b/xmake/repository/templates/c++/console/src/main.cpp
diff --git a/xmake/templates/c++/console/xmake.lua b/xmake/repository/templates/c++/console/xmake.lua
index c73be8724..c73be8724 100644
--- a/xmake/templates/c++/console/xmake.lua
+++ b/xmake/repository/templates/c++/console/xmake.lua
diff --git a/xmake/templates/c++/module/binary/.gitignore b/xmake/repository/templates/c++/module/binary/.gitignore
index 152105761..152105761 100644
--- a/xmake/templates/c++/module/binary/.gitignore
+++ b/xmake/repository/templates/c++/module/binary/.gitignore
diff --git a/xmake/templates/c++/module/binary/modules/binary/bar/.gitignore b/xmake/repository/templates/c++/module/binary/modules/binary/bar/.gitignore
index 152105761..152105761 100644
--- a/xmake/templates/c++/module/binary/modules/binary/bar/.gitignore
+++ b/xmake/repository/templates/c++/module/binary/modules/binary/bar/.gitignore
diff --git a/xmake/templates/c++/module/binary/modules/binary/bar/src/add.cpp b/xmake/repository/templates/c++/module/binary/modules/binary/bar/src/add.cpp
index 93fdf0ad8..93fdf0ad8 100644
--- a/xmake/templates/c++/module/binary/modules/binary/bar/src/add.cpp
+++ b/xmake/repository/templates/c++/module/binary/modules/binary/bar/src/add.cpp
diff --git a/xmake/templates/c++/module/binary/modules/binary/bar/src/sub.cpp b/xmake/repository/templates/c++/module/binary/modules/binary/bar/src/sub.cpp
index ae7b6d1f2..ae7b6d1f2 100644
--- a/xmake/templates/c++/module/binary/modules/binary/bar/src/sub.cpp
+++ b/xmake/repository/templates/c++/module/binary/modules/binary/bar/src/sub.cpp
diff --git a/xmake/templates/c++/module/binary/modules/binary/bar/xmake.lua b/xmake/repository/templates/c++/module/binary/modules/binary/bar/xmake.lua
index add3c6e97..add3c6e97 100644
--- a/xmake/templates/c++/module/binary/modules/binary/bar/xmake.lua
+++ b/xmake/repository/templates/c++/module/binary/modules/binary/bar/xmake.lua
diff --git a/xmake/templates/c++/module/binary/src/main.cpp b/xmake/repository/templates/c++/module/binary/src/main.cpp
index 9b6abffea..9b6abffea 100644
--- a/xmake/templates/c++/module/binary/src/main.cpp
+++ b/xmake/repository/templates/c++/module/binary/src/main.cpp
diff --git a/xmake/templates/c++/module/binary/xmake.lua b/xmake/repository/templates/c++/module/binary/xmake.lua
index d73d457d3..d73d457d3 100644
--- a/xmake/templates/c++/module/binary/xmake.lua
+++ b/xmake/repository/templates/c++/module/binary/xmake.lua
diff --git a/xmake/templates/c++/module/shared/.gitignore b/xmake/repository/templates/c++/module/shared/.gitignore
index 152105761..152105761 100644
--- a/xmake/templates/c++/module/shared/.gitignore
+++ b/xmake/repository/templates/c++/module/shared/.gitignore
diff --git a/xmake/templates/c++/module/shared/modules/shared/foo/src/foo.cpp b/xmake/repository/templates/c++/module/shared/modules/shared/foo/src/foo.cpp
index adde214ca..adde214ca 100644
--- a/xmake/templates/c++/module/shared/modules/shared/foo/src/foo.cpp
+++ b/xmake/repository/templates/c++/module/shared/modules/shared/foo/src/foo.cpp
diff --git a/xmake/templates/c++/module/shared/modules/shared/foo/xmake.lua b/xmake/repository/templates/c++/module/shared/modules/shared/foo/xmake.lua
index 9b3423d41..9b3423d41 100644
--- a/xmake/templates/c++/module/shared/modules/shared/foo/xmake.lua
+++ b/xmake/repository/templates/c++/module/shared/modules/shared/foo/xmake.lua
diff --git a/xmake/templates/c++/module/shared/src/main.cpp b/xmake/repository/templates/c++/module/shared/src/main.cpp
index 9b6abffea..9b6abffea 100644
--- a/xmake/templates/c++/module/shared/src/main.cpp
+++ b/xmake/repository/templates/c++/module/shared/src/main.cpp
diff --git a/xmake/templates/c++/module/shared/xmake.lua b/xmake/repository/templates/c++/module/shared/xmake.lua
index 43aafe904..43aafe904 100644
--- a/xmake/templates/c++/module/shared/xmake.lua
+++ b/xmake/repository/templates/c++/module/shared/xmake.lua
diff --git a/xmake/templates/c++/qt/console/src/main.cpp b/xmake/repository/templates/c++/qt/console/src/main.cpp
index e876eea4f..e876eea4f 100644
--- a/xmake/templates/c++/qt/console/src/main.cpp
+++ b/xmake/repository/templates/c++/qt/console/src/main.cpp
diff --git a/xmake/templates/c++/qt/console/xmake.lua b/xmake/repository/templates/c++/qt/console/xmake.lua
index 2ce5aa993..2ce5aa993 100644
--- a/xmake/templates/c++/qt/console/xmake.lua
+++ b/xmake/repository/templates/c++/qt/console/xmake.lua
diff --git a/xmake/templates/c++/qt/quickapp/src/main.cpp b/xmake/repository/templates/c++/qt/quickapp/src/main.cpp
index 7d9cb80df..7d9cb80df 100644
--- a/xmake/templates/c++/qt/quickapp/src/main.cpp
+++ b/xmake/repository/templates/c++/qt/quickapp/src/main.cpp
diff --git a/xmake/templates/c++/qt/quickapp/src/main.qml b/xmake/repository/templates/c++/qt/quickapp/src/main.qml
index 120cdbddd..120cdbddd 100644
--- a/xmake/templates/c++/qt/quickapp/src/main.qml
+++ b/xmake/repository/templates/c++/qt/quickapp/src/main.qml
diff --git a/xmake/templates/c++/qt/quickapp/src/qml.qrc b/xmake/repository/templates/c++/qt/quickapp/src/qml.qrc
index 5f6483ac3..5f6483ac3 100644
--- a/xmake/templates/c++/qt/quickapp/src/qml.qrc
+++ b/xmake/repository/templates/c++/qt/quickapp/src/qml.qrc
diff --git a/xmake/templates/c++/qt/quickapp/xmake.lua b/xmake/repository/templates/c++/qt/quickapp/xmake.lua
index 3f71d1c15..3f71d1c15 100644
--- a/xmake/templates/c++/qt/quickapp/xmake.lua
+++ b/xmake/repository/templates/c++/qt/quickapp/xmake.lua
diff --git a/xmake/templates/c++/qt/quickapp_static/src/main.cpp b/xmake/repository/templates/c++/qt/quickapp_static/src/main.cpp
index 7d9cb80df..7d9cb80df 100644
--- a/xmake/templates/c++/qt/quickapp_static/src/main.cpp
+++ b/xmake/repository/templates/c++/qt/quickapp_static/src/main.cpp
diff --git a/xmake/templates/c++/qt/quickapp_static/src/main.qml b/xmake/repository/templates/c++/qt/quickapp_static/src/main.qml
index 120cdbddd..120cdbddd 100644
--- a/xmake/templates/c++/qt/quickapp_static/src/main.qml
+++ b/xmake/repository/templates/c++/qt/quickapp_static/src/main.qml
diff --git a/xmake/templates/c++/qt/quickapp_static/src/qml.qrc b/xmake/repository/templates/c++/qt/quickapp_static/src/qml.qrc
index 5f6483ac3..5f6483ac3 100644
--- a/xmake/templates/c++/qt/quickapp_static/src/qml.qrc
+++ b/xmake/repository/templates/c++/qt/quickapp_static/src/qml.qrc
diff --git a/xmake/templates/c++/qt/quickapp_static/xmake.lua b/xmake/repository/templates/c++/qt/quickapp_static/xmake.lua
index 0d311a762..0d311a762 100644
--- a/xmake/templates/c++/qt/quickapp_static/xmake.lua
+++ b/xmake/repository/templates/c++/qt/quickapp_static/xmake.lua
diff --git a/xmake/templates/c++/qt/shared/src/demo.cpp b/xmake/repository/templates/c++/qt/shared/src/demo.cpp
index 576c861f0..576c861f0 100644
--- a/xmake/templates/c++/qt/shared/src/demo.cpp
+++ b/xmake/repository/templates/c++/qt/shared/src/demo.cpp
diff --git a/xmake/templates/c++/qt/shared/src/demo.h b/xmake/repository/templates/c++/qt/shared/src/demo.h
index 89f29ec46..89f29ec46 100644
--- a/xmake/templates/c++/qt/shared/src/demo.h
+++ b/xmake/repository/templates/c++/qt/shared/src/demo.h
diff --git a/xmake/templates/c++/qt/shared/src/demo_global.h b/xmake/repository/templates/c++/qt/shared/src/demo_global.h
index d6b1ddf0b..d6b1ddf0b 100644
--- a/xmake/templates/c++/qt/shared/src/demo_global.h
+++ b/xmake/repository/templates/c++/qt/shared/src/demo_global.h
diff --git a/xmake/templates/c++/qt/shared/xmake.lua b/xmake/repository/templates/c++/qt/shared/xmake.lua
index 3b07153b9..3b07153b9 100644
--- a/xmake/templates/c++/qt/shared/xmake.lua
+++ b/xmake/repository/templates/c++/qt/shared/xmake.lua
diff --git a/xmake/templates/c++/qt/static/src/demo.cpp b/xmake/repository/templates/c++/qt/static/src/demo.cpp
index 576c861f0..576c861f0 100644
--- a/xmake/templates/c++/qt/static/src/demo.cpp
+++ b/xmake/repository/templates/c++/qt/static/src/demo.cpp
diff --git a/xmake/templates/c++/qt/static/src/demo.h b/xmake/repository/templates/c++/qt/static/src/demo.h
index 24730c9d8..24730c9d8 100644
--- a/xmake/templates/c++/qt/static/src/demo.h
+++ b/xmake/repository/templates/c++/qt/static/src/demo.h
diff --git a/xmake/templates/c++/qt/static/xmake.lua b/xmake/repository/templates/c++/qt/static/xmake.lua
index 371bdf082..371bdf082 100644
--- a/xmake/templates/c++/qt/static/xmake.lua
+++ b/xmake/repository/templates/c++/qt/static/xmake.lua
diff --git a/xmake/templates/c++/qt/widgetapp/src/main.cpp b/xmake/repository/templates/c++/qt/widgetapp/src/main.cpp
index 191ae18d2..191ae18d2 100644
--- a/xmake/templates/c++/qt/widgetapp/src/main.cpp
+++ b/xmake/repository/templates/c++/qt/widgetapp/src/main.cpp
diff --git a/xmake/templates/c++/qt/widgetapp/src/mainwindow.cpp b/xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.cpp
index c9c6a0d98..c9c6a0d98 100644
--- a/xmake/templates/c++/qt/widgetapp/src/mainwindow.cpp
+++ b/xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.cpp
diff --git a/xmake/templates/c++/qt/widgetapp/src/mainwindow.h b/xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.h
index a4245aa42..a4245aa42 100644
--- a/xmake/templates/c++/qt/widgetapp/src/mainwindow.h
+++ b/xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.h
diff --git a/xmake/templates/c++/qt/widgetapp/src/mainwindow.ui b/xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.ui
index 1c59b695e..1c59b695e 100644
--- a/xmake/templates/c++/qt/widgetapp/src/mainwindow.ui
+++ b/xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.ui
diff --git a/xmake/templates/c++/qt/widgetapp/xmake.lua b/xmake/repository/templates/c++/qt/widgetapp/xmake.lua
index e0f9f455e..e0f9f455e 100644
--- a/xmake/templates/c++/qt/widgetapp/xmake.lua
+++ b/xmake/repository/templates/c++/qt/widgetapp/xmake.lua
diff --git a/xmake/templates/c++/qt/widgetapp_static/src/main.cpp b/xmake/repository/templates/c++/qt/widgetapp_static/src/main.cpp
index db5b0cce8..db5b0cce8 100644
--- a/xmake/templates/c++/qt/widgetapp_static/src/main.cpp
+++ b/xmake/repository/templates/c++/qt/widgetapp_static/src/main.cpp
diff --git a/xmake/templates/c++/qt/widgetapp_static/src/mainwindow.cpp b/xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.cpp
index c9c6a0d98..c9c6a0d98 100644
--- a/xmake/templates/c++/qt/widgetapp_static/src/mainwindow.cpp
+++ b/xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.cpp
diff --git a/xmake/templates/c++/qt/widgetapp_static/src/mainwindow.h b/xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.h
index a4245aa42..a4245aa42 100644
--- a/xmake/templates/c++/qt/widgetapp_static/src/mainwindow.h
+++ b/xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.h
diff --git a/xmake/templates/c++/qt/widgetapp_static/src/mainwindow.ui b/xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.ui
index 1c59b695e..1c59b695e 100644
--- a/xmake/templates/c++/qt/widgetapp_static/src/mainwindow.ui
+++ b/xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.ui
diff --git a/xmake/templates/c++/qt/widgetapp_static/xmake.lua b/xmake/repository/templates/c++/qt/widgetapp_static/xmake.lua
index 2c357e531..2c357e531 100644
--- a/xmake/templates/c++/qt/widgetapp_static/xmake.lua
+++ b/xmake/repository/templates/c++/qt/widgetapp_static/xmake.lua
diff --git a/xmake/templates/c++/shared/src/foo.cpp b/xmake/repository/templates/c++/shared/src/foo.cpp
index 1a1fb3425..1a1fb3425 100644
--- a/xmake/templates/c++/shared/src/foo.cpp
+++ b/xmake/repository/templates/c++/shared/src/foo.cpp
diff --git a/xmake/templates/c++/shared/src/foo.h b/xmake/repository/templates/c++/shared/src/foo.h
index bd496c784..bd496c784 100644
--- a/xmake/templates/c++/shared/src/foo.h
+++ b/xmake/repository/templates/c++/shared/src/foo.h
diff --git a/xmake/templates/c++/shared/src/main.cpp b/xmake/repository/templates/c++/shared/src/main.cpp
index 3834ee4d3..3834ee4d3 100644
--- a/xmake/templates/c++/shared/src/main.cpp
+++ b/xmake/repository/templates/c++/shared/src/main.cpp
diff --git a/xmake/templates/c++/shared/xmake.lua b/xmake/repository/templates/c++/shared/xmake.lua
index 96bd36d7c..96bd36d7c 100644
--- a/xmake/templates/c++/shared/xmake.lua
+++ b/xmake/repository/templates/c++/shared/xmake.lua
diff --git a/xmake/templates/c++/static/src/foo.cpp b/xmake/repository/templates/c++/static/src/foo.cpp
index 1a1fb3425..1a1fb3425 100644
--- a/xmake/templates/c++/static/src/foo.cpp
+++ b/xmake/repository/templates/c++/static/src/foo.cpp
diff --git a/xmake/templates/c++/static/src/foo.h b/xmake/repository/templates/c++/static/src/foo.h
index d2506bca9..d2506bca9 100644
--- a/xmake/templates/c++/static/src/foo.h
+++ b/xmake/repository/templates/c++/static/src/foo.h
diff --git a/xmake/templates/c++/static/src/main.cpp b/xmake/repository/templates/c++/static/src/main.cpp
index 3834ee4d3..3834ee4d3 100644
--- a/xmake/templates/c++/static/src/main.cpp
+++ b/xmake/repository/templates/c++/static/src/main.cpp
diff --git a/xmake/templates/c++/static/xmake.lua b/xmake/repository/templates/c++/static/xmake.lua
index 2c15d36e8..2c15d36e8 100644
--- a/xmake/templates/c++/static/xmake.lua
+++ b/xmake/repository/templates/c++/static/xmake.lua
diff --git a/xmake/templates/c++/wxwidgets/src/main.cpp b/xmake/repository/templates/c++/wxwidgets/src/main.cpp
index 4b43fe6e3..4b43fe6e3 100644
--- a/xmake/templates/c++/wxwidgets/src/main.cpp
+++ b/xmake/repository/templates/c++/wxwidgets/src/main.cpp
diff --git a/xmake/templates/c++/wxwidgets/xmake.lua b/xmake/repository/templates/c++/wxwidgets/xmake.lua
index 65a05c72c..65a05c72c 100644
--- a/xmake/templates/c++/wxwidgets/xmake.lua
+++ b/xmake/repository/templates/c++/wxwidgets/xmake.lua
diff --git a/xmake/templates/c++/xmake/cli/src/lni/main.cpp b/xmake/repository/templates/c++/xmake/cli/src/lni/main.cpp
index 3de2b1e36..3de2b1e36 100644
--- a/xmake/templates/c++/xmake/cli/src/lni/main.cpp
+++ b/xmake/repository/templates/c++/xmake/cli/src/lni/main.cpp
diff --git a/xmake/templates/c++/xmake/cli/src/lua/main.lua b/xmake/repository/templates/c++/xmake/cli/src/lua/main.lua
index d87daf102..d87daf102 100644
--- a/xmake/templates/c++/xmake/cli/src/lua/main.lua
+++ b/xmake/repository/templates/c++/xmake/cli/src/lua/main.lua
diff --git a/xmake/templates/c++/xmake/cli/xmake.lua b/xmake/repository/templates/c++/xmake/cli/xmake.lua
index cf1987c60..cf1987c60 100644
--- a/xmake/templates/c++/xmake/cli/xmake.lua
+++ b/xmake/repository/templates/c++/xmake/cli/xmake.lua
diff --git a/xmake/templates/c/console/src/main.c b/xmake/repository/templates/c/console/src/main.c
index ccf4b2a77..ccf4b2a77 100644
--- a/xmake/templates/c/console/src/main.c
+++ b/xmake/repository/templates/c/console/src/main.c
diff --git a/xmake/templates/c/console/xmake.lua b/xmake/repository/templates/c/console/xmake.lua
index 7e9356f26..7e9356f26 100644
--- a/xmake/templates/c/console/xmake.lua
+++ b/xmake/repository/templates/c/console/xmake.lua
diff --git a/xmake/templates/c/module/binary/.gitignore b/xmake/repository/templates/c/module/binary/.gitignore
index 152105761..152105761 100644
--- a/xmake/templates/c/module/binary/.gitignore
+++ b/xmake/repository/templates/c/module/binary/.gitignore
diff --git a/xmake/templates/c/module/binary/modules/binary/bar/.gitignore b/xmake/repository/templates/c/module/binary/modules/binary/bar/.gitignore
index 152105761..152105761 100644
--- a/xmake/templates/c/module/binary/modules/binary/bar/.gitignore
+++ b/xmake/repository/templates/c/module/binary/modules/binary/bar/.gitignore
diff --git a/xmake/templates/c/module/binary/modules/binary/bar/src/add.c b/xmake/repository/templates/c/module/binary/modules/binary/bar/src/add.c
index 93fdf0ad8..93fdf0ad8 100644
--- a/xmake/templates/c/module/binary/modules/binary/bar/src/add.c
+++ b/xmake/repository/templates/c/module/binary/modules/binary/bar/src/add.c
diff --git a/xmake/templates/c/module/binary/modules/binary/bar/src/sub.c b/xmake/repository/templates/c/module/binary/modules/binary/bar/src/sub.c
index ae7b6d1f2..ae7b6d1f2 100644
--- a/xmake/templates/c/module/binary/modules/binary/bar/src/sub.c
+++ b/xmake/repository/templates/c/module/binary/modules/binary/bar/src/sub.c
diff --git a/xmake/templates/c/module/binary/modules/binary/bar/xmake.lua b/xmake/repository/templates/c/module/binary/modules/binary/bar/xmake.lua
index d4983d741..d4983d741 100644
--- a/xmake/templates/c/module/binary/modules/binary/bar/xmake.lua
+++ b/xmake/repository/templates/c/module/binary/modules/binary/bar/xmake.lua
diff --git a/xmake/templates/c/module/binary/src/main.c b/xmake/repository/templates/c/module/binary/src/main.c
index ccf4b2a77..ccf4b2a77 100644
--- a/xmake/templates/c/module/binary/src/main.c
+++ b/xmake/repository/templates/c/module/binary/src/main.c
diff --git a/xmake/templates/c/module/binary/xmake.lua b/xmake/repository/templates/c/module/binary/xmake.lua
index 7df556cb8..7df556cb8 100644
--- a/xmake/templates/c/module/binary/xmake.lua
+++ b/xmake/repository/templates/c/module/binary/xmake.lua
diff --git a/xmake/templates/c/module/shared/.gitignore b/xmake/repository/templates/c/module/shared/.gitignore
index 152105761..152105761 100644
--- a/xmake/templates/c/module/shared/.gitignore
+++ b/xmake/repository/templates/c/module/shared/.gitignore
diff --git a/xmake/templates/c/module/shared/modules/shared/foo/src/foo.c b/xmake/repository/templates/c/module/shared/modules/shared/foo/src/foo.c
index adde214ca..adde214ca 100644
--- a/xmake/templates/c/module/shared/modules/shared/foo/src/foo.c
+++ b/xmake/repository/templates/c/module/shared/modules/shared/foo/src/foo.c
diff --git a/xmake/templates/c/module/shared/modules/shared/foo/xmake.lua b/xmake/repository/templates/c/module/shared/modules/shared/foo/xmake.lua
index 035573d9f..035573d9f 100644
--- a/xmake/templates/c/module/shared/modules/shared/foo/xmake.lua
+++ b/xmake/repository/templates/c/module/shared/modules/shared/foo/xmake.lua
diff --git a/xmake/templates/c/module/shared/src/main.c b/xmake/repository/templates/c/module/shared/src/main.c
index ccf4b2a77..ccf4b2a77 100644
--- a/xmake/templates/c/module/shared/src/main.c
+++ b/xmake/repository/templates/c/module/shared/src/main.c
diff --git a/xmake/templates/c/module/shared/xmake.lua b/xmake/repository/templates/c/module/shared/xmake.lua
index 4b92b0b9e..4b92b0b9e 100644
--- a/xmake/templates/c/module/shared/xmake.lua
+++ b/xmake/repository/templates/c/module/shared/xmake.lua
diff --git a/xmake/templates/c/shared/src/foo.c b/xmake/repository/templates/c/shared/src/foo.c
index 1a1fb3425..1a1fb3425 100644
--- a/xmake/templates/c/shared/src/foo.c
+++ b/xmake/repository/templates/c/shared/src/foo.c
diff --git a/xmake/templates/c/shared/src/foo.h b/xmake/repository/templates/c/shared/src/foo.h
index e15925829..e15925829 100644
--- a/xmake/templates/c/shared/src/foo.h
+++ b/xmake/repository/templates/c/shared/src/foo.h
diff --git a/xmake/templates/c/shared/src/main.c b/xmake/repository/templates/c/shared/src/main.c
index f1c29d751..f1c29d751 100644
--- a/xmake/templates/c/shared/src/main.c
+++ b/xmake/repository/templates/c/shared/src/main.c
diff --git a/xmake/templates/c/shared/xmake.lua b/xmake/repository/templates/c/shared/xmake.lua
index 11e8dd0dd..11e8dd0dd 100644
--- a/xmake/templates/c/shared/xmake.lua
+++ b/xmake/repository/templates/c/shared/xmake.lua
diff --git a/xmake/templates/c/static/src/foo.c b/xmake/repository/templates/c/static/src/foo.c
index 1a1fb3425..1a1fb3425 100644
--- a/xmake/templates/c/static/src/foo.c
+++ b/xmake/repository/templates/c/static/src/foo.c
diff --git a/xmake/templates/c/static/src/foo.h b/xmake/repository/templates/c/static/src/foo.h
index 6295ab95c..6295ab95c 100644
--- a/xmake/templates/c/static/src/foo.h
+++ b/xmake/repository/templates/c/static/src/foo.h
diff --git a/xmake/templates/c/static/src/main.c b/xmake/repository/templates/c/static/src/main.c
index f1c29d751..f1c29d751 100644
--- a/xmake/templates/c/static/src/main.c
+++ b/xmake/repository/templates/c/static/src/main.c
diff --git a/xmake/templates/c/static/xmake.lua b/xmake/repository/templates/c/static/xmake.lua
index f00e9f4f7..f00e9f4f7 100644
--- a/xmake/templates/c/static/xmake.lua
+++ b/xmake/repository/templates/c/static/xmake.lua
diff --git a/xmake/templates/c/xmake/cli/src/lni/main.c b/xmake/repository/templates/c/xmake/cli/src/lni/main.c
index 1ef27cd75..1ef27cd75 100644
--- a/xmake/templates/c/xmake/cli/src/lni/main.c
+++ b/xmake/repository/templates/c/xmake/cli/src/lni/main.c
diff --git a/xmake/templates/c/xmake/cli/src/lua/main.lua b/xmake/repository/templates/c/xmake/cli/src/lua/main.lua
index d87daf102..d87daf102 100644
--- a/xmake/templates/c/xmake/cli/src/lua/main.lua
+++ b/xmake/repository/templates/c/xmake/cli/src/lua/main.lua
diff --git a/xmake/templates/c/xmake/cli/xmake.lua b/xmake/repository/templates/c/xmake/cli/xmake.lua
index 33422b5c0..33422b5c0 100644
--- a/xmake/templates/c/xmake/cli/xmake.lua
+++ b/xmake/repository/templates/c/xmake/cli/xmake.lua
diff --git a/xmake/templates/cuda/console/src/main.cu b/xmake/repository/templates/cuda/console/src/main.cu
index 2fe9ac797..2fe9ac797 100644
--- a/xmake/templates/cuda/console/src/main.cu
+++ b/xmake/repository/templates/cuda/console/src/main.cu
diff --git a/xmake/templates/cuda/console/xmake.lua b/xmake/repository/templates/cuda/console/xmake.lua
index fb393bab7..fb393bab7 100644
--- a/xmake/templates/cuda/console/xmake.lua
+++ b/xmake/repository/templates/cuda/console/xmake.lua
diff --git a/xmake/templates/cuda/shared/inc/lib.cuh b/xmake/repository/templates/cuda/shared/inc/lib.cuh
index 5565e3eb5..5565e3eb5 100644
--- a/xmake/templates/cuda/shared/inc/lib.cuh
+++ b/xmake/repository/templates/cuda/shared/inc/lib.cuh
diff --git a/xmake/templates/cuda/shared/src/lib.cu b/xmake/repository/templates/cuda/shared/src/lib.cu
index d2cff9ac2..d2cff9ac2 100644
--- a/xmake/templates/cuda/shared/src/lib.cu
+++ b/xmake/repository/templates/cuda/shared/src/lib.cu
diff --git a/xmake/templates/cuda/shared/xmake.lua b/xmake/repository/templates/cuda/shared/xmake.lua
index 5f53ff87b..5f53ff87b 100644
--- a/xmake/templates/cuda/shared/xmake.lua
+++ b/xmake/repository/templates/cuda/shared/xmake.lua
diff --git a/xmake/templates/cuda/static/inc/lib.cuh b/xmake/repository/templates/cuda/static/inc/lib.cuh
index 35255e31e..35255e31e 100644
--- a/xmake/templates/cuda/static/inc/lib.cuh
+++ b/xmake/repository/templates/cuda/static/inc/lib.cuh
diff --git a/xmake/templates/cuda/static/src/lib.cu b/xmake/repository/templates/cuda/static/src/lib.cu
index a5f054354..a5f054354 100644
--- a/xmake/templates/cuda/static/src/lib.cu
+++ b/xmake/repository/templates/cuda/static/src/lib.cu
diff --git a/xmake/templates/cuda/static/xmake.lua b/xmake/repository/templates/cuda/static/xmake.lua
index 7a582cfbb..7a582cfbb 100644
--- a/xmake/templates/cuda/static/xmake.lua
+++ b/xmake/repository/templates/cuda/static/xmake.lua
diff --git a/xmake/templates/dlang/console/src/main.d b/xmake/repository/templates/dlang/console/src/main.d
index 6bea6ec02..6bea6ec02 100644
--- a/xmake/templates/dlang/console/src/main.d
+++ b/xmake/repository/templates/dlang/console/src/main.d
diff --git a/xmake/templates/dlang/console/xmake.lua b/xmake/repository/templates/dlang/console/xmake.lua
index c242d60c2..c242d60c2 100644
--- a/xmake/templates/dlang/console/xmake.lua
+++ b/xmake/repository/templates/dlang/console/xmake.lua
diff --git a/xmake/templates/dlang/shared/src/interfaces.d b/xmake/repository/templates/dlang/shared/src/interfaces.d
index b4f7ab6ba..b4f7ab6ba 100644
--- a/xmake/templates/dlang/shared/src/interfaces.d
+++ b/xmake/repository/templates/dlang/shared/src/interfaces.d
diff --git a/xmake/templates/dlang/shared/src/main.d b/xmake/repository/templates/dlang/shared/src/main.d
index bfcf9cf56..bfcf9cf56 100644
--- a/xmake/templates/dlang/shared/src/main.d
+++ b/xmake/repository/templates/dlang/shared/src/main.d
diff --git a/xmake/templates/dlang/shared/xmake.lua b/xmake/repository/templates/dlang/shared/xmake.lua
index 0086bebae..0086bebae 100644
--- a/xmake/templates/dlang/shared/xmake.lua
+++ b/xmake/repository/templates/dlang/shared/xmake.lua
diff --git a/xmake/templates/dlang/static/src/interfaces.d b/xmake/repository/templates/dlang/static/src/interfaces.d
index 3386c9124..3386c9124 100644
--- a/xmake/templates/dlang/static/src/interfaces.d
+++ b/xmake/repository/templates/dlang/static/src/interfaces.d
diff --git a/xmake/templates/dlang/static/src/main.d b/xmake/repository/templates/dlang/static/src/main.d
index bfcf9cf56..bfcf9cf56 100644
--- a/xmake/templates/dlang/static/src/main.d
+++ b/xmake/repository/templates/dlang/static/src/main.d
diff --git a/xmake/templates/dlang/static/xmake.lua b/xmake/repository/templates/dlang/static/xmake.lua
index b8fb24b37..b8fb24b37 100644
--- a/xmake/templates/dlang/static/xmake.lua
+++ b/xmake/repository/templates/dlang/static/xmake.lua
diff --git a/xmake/templates/fortran/console/src/main.f90 b/xmake/repository/templates/fortran/console/src/main.f90
index a332e8401..a332e8401 100644
--- a/xmake/templates/fortran/console/src/main.f90
+++ b/xmake/repository/templates/fortran/console/src/main.f90
diff --git a/xmake/templates/fortran/console/xmake.lua b/xmake/repository/templates/fortran/console/xmake.lua
index 70faf8aea..70faf8aea 100644
--- a/xmake/templates/fortran/console/xmake.lua
+++ b/xmake/repository/templates/fortran/console/xmake.lua
diff --git a/xmake/templates/fortran/shared/src/main.f90 b/xmake/repository/templates/fortran/shared/src/main.f90
index 9adea3e26..9adea3e26 100644
--- a/xmake/templates/fortran/shared/src/main.f90
+++ b/xmake/repository/templates/fortran/shared/src/main.f90
diff --git a/xmake/templates/fortran/shared/src/test.f90 b/xmake/repository/templates/fortran/shared/src/test.f90
index 7b215fcdf..7b215fcdf 100644
--- a/xmake/templates/fortran/shared/src/test.f90
+++ b/xmake/repository/templates/fortran/shared/src/test.f90
diff --git a/xmake/templates/fortran/shared/xmake.lua b/xmake/repository/templates/fortran/shared/xmake.lua
index da6d6da3f..da6d6da3f 100644
--- a/xmake/templates/fortran/shared/xmake.lua
+++ b/xmake/repository/templates/fortran/shared/xmake.lua
diff --git a/xmake/templates/fortran/static/src/main.f90 b/xmake/repository/templates/fortran/static/src/main.f90
index 9adea3e26..9adea3e26 100644
--- a/xmake/templates/fortran/static/src/main.f90
+++ b/xmake/repository/templates/fortran/static/src/main.f90
diff --git a/xmake/templates/fortran/static/src/test.f90 b/xmake/repository/templates/fortran/static/src/test.f90
index 7b215fcdf..7b215fcdf 100644
--- a/xmake/templates/fortran/static/src/test.f90
+++ b/xmake/repository/templates/fortran/static/src/test.f90
diff --git a/xmake/templates/fortran/static/xmake.lua b/xmake/repository/templates/fortran/static/xmake.lua
index 4b91ad207..4b91ad207 100644
--- a/xmake/templates/fortran/static/xmake.lua
+++ b/xmake/repository/templates/fortran/static/xmake.lua
diff --git a/xmake/templates/go/console/src/main.go b/xmake/repository/templates/go/console/src/main.go
index b689db480..b689db480 100644
--- a/xmake/templates/go/console/src/main.go
+++ b/xmake/repository/templates/go/console/src/main.go
diff --git a/xmake/templates/go/console/xmake.lua b/xmake/repository/templates/go/console/xmake.lua
index a7861eb2a..a7861eb2a 100644
--- a/xmake/templates/go/console/xmake.lua
+++ b/xmake/repository/templates/go/console/xmake.lua
diff --git a/xmake/templates/go/static/src/main.go b/xmake/repository/templates/go/static/src/main.go
index f2b477453..f2b477453 100644
--- a/xmake/templates/go/static/src/main.go
+++ b/xmake/repository/templates/go/static/src/main.go
diff --git a/xmake/templates/go/static/src/module/add.go b/xmake/repository/templates/go/static/src/module/add.go
index 98ffef600..98ffef600 100644
--- a/xmake/templates/go/static/src/module/add.go
+++ b/xmake/repository/templates/go/static/src/module/add.go
diff --git a/xmake/templates/go/static/src/module/sub.go b/xmake/repository/templates/go/static/src/module/sub.go
index a24a9abb7..a24a9abb7 100644
--- a/xmake/templates/go/static/src/module/sub.go
+++ b/xmake/repository/templates/go/static/src/module/sub.go
diff --git a/xmake/templates/go/static/src/test.go b/xmake/repository/templates/go/static/src/test.go
index cf10523f9..cf10523f9 100644
--- a/xmake/templates/go/static/src/test.go
+++ b/xmake/repository/templates/go/static/src/test.go
diff --git a/xmake/templates/go/static/xmake.lua b/xmake/repository/templates/go/static/xmake.lua
index 4391d7799..4391d7799 100644
--- a/xmake/templates/go/static/xmake.lua
+++ b/xmake/repository/templates/go/static/xmake.lua
diff --git a/xmake/templates/kotlin/console/src/main.kt b/xmake/repository/templates/kotlin/console/src/main.kt
index 543f5ac8f..543f5ac8f 100644
--- a/xmake/templates/kotlin/console/src/main.kt
+++ b/xmake/repository/templates/kotlin/console/src/main.kt
diff --git a/xmake/templates/kotlin/console/xmake.lua b/xmake/repository/templates/kotlin/console/xmake.lua
index 935dc7c75..935dc7c75 100644
--- a/xmake/templates/kotlin/console/xmake.lua
+++ b/xmake/repository/templates/kotlin/console/xmake.lua
diff --git a/xmake/templates/kotlin/shared/src/foo.kt b/xmake/repository/templates/kotlin/shared/src/foo.kt
index cc5184bd7..cc5184bd7 100644
--- a/xmake/templates/kotlin/shared/src/foo.kt
+++ b/xmake/repository/templates/kotlin/shared/src/foo.kt
diff --git a/xmake/templates/kotlin/shared/src/main.c b/xmake/repository/templates/kotlin/shared/src/main.c
index abb3f2c12..abb3f2c12 100644
--- a/xmake/templates/kotlin/shared/src/main.c
+++ b/xmake/repository/templates/kotlin/shared/src/main.c
diff --git a/xmake/templates/kotlin/shared/xmake.lua b/xmake/repository/templates/kotlin/shared/xmake.lua
index 97bebf8a6..97bebf8a6 100644
--- a/xmake/templates/kotlin/shared/xmake.lua
+++ b/xmake/repository/templates/kotlin/shared/xmake.lua
diff --git a/xmake/templates/kotlin/static/src/foo.kt b/xmake/repository/templates/kotlin/static/src/foo.kt
index cc5184bd7..cc5184bd7 100644
--- a/xmake/templates/kotlin/static/src/foo.kt
+++ b/xmake/repository/templates/kotlin/static/src/foo.kt
diff --git a/xmake/templates/kotlin/static/src/main.c b/xmake/repository/templates/kotlin/static/src/main.c
index abb3f2c12..abb3f2c12 100644
--- a/xmake/templates/kotlin/static/src/main.c
+++ b/xmake/repository/templates/kotlin/static/src/main.c
diff --git a/xmake/templates/kotlin/static/xmake.lua b/xmake/repository/templates/kotlin/static/xmake.lua
index 6095dbe93..6095dbe93 100644
--- a/xmake/templates/kotlin/static/xmake.lua
+++ b/xmake/repository/templates/kotlin/static/xmake.lua
diff --git a/xmake/templates/nim/console/src/main.nim b/xmake/repository/templates/nim/console/src/main.nim
index 17179284f..17179284f 100644
--- a/xmake/templates/nim/console/src/main.nim
+++ b/xmake/repository/templates/nim/console/src/main.nim
diff --git a/xmake/templates/nim/console/xmake.lua b/xmake/repository/templates/nim/console/xmake.lua
index 662945bbb..662945bbb 100644
--- a/xmake/templates/nim/console/xmake.lua
+++ b/xmake/repository/templates/nim/console/xmake.lua
diff --git a/xmake/templates/nim/shared/src/foo.nim b/xmake/repository/templates/nim/shared/src/foo.nim
index cde4de7ca..cde4de7ca 100644
--- a/xmake/templates/nim/shared/src/foo.nim
+++ b/xmake/repository/templates/nim/shared/src/foo.nim
diff --git a/xmake/templates/nim/shared/src/main.nim b/xmake/repository/templates/nim/shared/src/main.nim
index 1be3abe69..1be3abe69 100644
--- a/xmake/templates/nim/shared/src/main.nim
+++ b/xmake/repository/templates/nim/shared/src/main.nim
diff --git a/xmake/templates/nim/shared/xmake.lua b/xmake/repository/templates/nim/shared/xmake.lua
index 5067dafb3..5067dafb3 100644
--- a/xmake/templates/nim/shared/xmake.lua
+++ b/xmake/repository/templates/nim/shared/xmake.lua
diff --git a/xmake/templates/nim/static/src/foo.nim b/xmake/repository/templates/nim/static/src/foo.nim
index be0904262..be0904262 100644
--- a/xmake/templates/nim/static/src/foo.nim
+++ b/xmake/repository/templates/nim/static/src/foo.nim
diff --git a/xmake/templates/nim/static/src/main.nim b/xmake/repository/templates/nim/static/src/main.nim
index 1be3abe69..1be3abe69 100644
--- a/xmake/templates/nim/static/src/main.nim
+++ b/xmake/repository/templates/nim/static/src/main.nim
diff --git a/xmake/templates/nim/static/xmake.lua b/xmake/repository/templates/nim/static/xmake.lua
index 3f2cb7dfc..3f2cb7dfc 100644
--- a/xmake/templates/nim/static/xmake.lua
+++ b/xmake/repository/templates/nim/static/xmake.lua
diff --git a/xmake/templates/objc++/console/src/main.mm b/xmake/repository/templates/objc++/console/src/main.mm
index cbd1e8906..cbd1e8906 100644
--- a/xmake/templates/objc++/console/src/main.mm
+++ b/xmake/repository/templates/objc++/console/src/main.mm
diff --git a/xmake/templates/objc++/console/xmake.lua b/xmake/repository/templates/objc++/console/xmake.lua
index 99749f901..99749f901 100644
--- a/xmake/templates/objc++/console/xmake.lua
+++ b/xmake/repository/templates/objc++/console/xmake.lua
diff --git a/xmake/templates/objc++/xcode/bundle/src/Info.plist b/xmake/repository/templates/objc++/xcode/bundle/src/Info.plist
index 20608314e..20608314e 100644
--- a/xmake/templates/objc++/xcode/bundle/src/Info.plist
+++ b/xmake/repository/templates/objc++/xcode/bundle/src/Info.plist
diff --git a/xmake/templates/objc++/xcode/bundle/src/test.h b/xmake/repository/templates/objc++/xcode/bundle/src/test.h
index d882546d1..d882546d1 100644
--- a/xmake/templates/objc++/xcode/bundle/src/test.h
+++ b/xmake/repository/templates/objc++/xcode/bundle/src/test.h
diff --git a/xmake/templates/objc++/xcode/bundle/src/test.mm b/xmake/repository/templates/objc++/xcode/bundle/src/test.mm
index 20e29bd0a..20e29bd0a 100644
--- a/xmake/templates/objc++/xcode/bundle/src/test.mm
+++ b/xmake/repository/templates/objc++/xcode/bundle/src/test.mm
diff --git a/xmake/templates/objc++/xcode/bundle/xmake.lua b/xmake/repository/templates/objc++/xcode/bundle/xmake.lua
index 1ecf69fcb..1ecf69fcb 100644
--- a/xmake/templates/objc++/xcode/bundle/xmake.lua
+++ b/xmake/repository/templates/objc++/xcode/bundle/xmake.lua
diff --git a/xmake/templates/objc++/xcode/framework/src/Info.plist b/xmake/repository/templates/objc++/xcode/framework/src/Info.plist
index 20608314e..20608314e 100644
--- a/xmake/templates/objc++/xcode/framework/src/Info.plist
+++ b/xmake/repository/templates/objc++/xcode/framework/src/Info.plist
diff --git a/xmake/templates/objc++/xcode/framework/src/test.h b/xmake/repository/templates/objc++/xcode/framework/src/test.h
index d882546d1..d882546d1 100644
--- a/xmake/templates/objc++/xcode/framework/src/test.h
+++ b/xmake/repository/templates/objc++/xcode/framework/src/test.h
diff --git a/xmake/templates/objc++/xcode/framework/src/test.mm b/xmake/repository/templates/objc++/xcode/framework/src/test.mm
index 20e29bd0a..20e29bd0a 100644
--- a/xmake/templates/objc++/xcode/framework/src/test.mm
+++ b/xmake/repository/templates/objc++/xcode/framework/src/test.mm
diff --git a/xmake/templates/objc++/xcode/framework/xmake.lua b/xmake/repository/templates/objc++/xcode/framework/xmake.lua
index 3805d95c6..3805d95c6 100644
--- a/xmake/templates/objc++/xcode/framework/xmake.lua
+++ b/xmake/repository/templates/objc++/xcode/framework/xmake.lua
diff --git a/xmake/templates/objc/console/src/main.m b/xmake/repository/templates/objc/console/src/main.m
index cbd1e8906..cbd1e8906 100644
--- a/xmake/templates/objc/console/src/main.m
+++ b/xmake/repository/templates/objc/console/src/main.m
diff --git a/xmake/templates/objc/console/xmake.lua b/xmake/repository/templates/objc/console/xmake.lua
index 37c01442a..37c01442a 100644
--- a/xmake/templates/objc/console/xmake.lua
+++ b/xmake/repository/templates/objc/console/xmake.lua
diff --git a/xmake/templates/objc/xcode/bundle/src/Info.plist b/xmake/repository/templates/objc/xcode/bundle/src/Info.plist
index 20608314e..20608314e 100644
--- a/xmake/templates/objc/xcode/bundle/src/Info.plist
+++ b/xmake/repository/templates/objc/xcode/bundle/src/Info.plist
diff --git a/xmake/templates/objc/xcode/bundle/src/test.h b/xmake/repository/templates/objc/xcode/bundle/src/test.h
index d882546d1..d882546d1 100644
--- a/xmake/templates/objc/xcode/bundle/src/test.h
+++ b/xmake/repository/templates/objc/xcode/bundle/src/test.h
diff --git a/xmake/templates/objc/xcode/bundle/src/test.m b/xmake/repository/templates/objc/xcode/bundle/src/test.m
index 20e29bd0a..20e29bd0a 100644
--- a/xmake/templates/objc/xcode/bundle/src/test.m
+++ b/xmake/repository/templates/objc/xcode/bundle/src/test.m
diff --git a/xmake/templates/objc/xcode/bundle/xmake.lua b/xmake/repository/templates/objc/xcode/bundle/xmake.lua
index 34d108fcb..34d108fcb 100644
--- a/xmake/templates/objc/xcode/bundle/xmake.lua
+++ b/xmake/repository/templates/objc/xcode/bundle/xmake.lua
diff --git a/xmake/templates/objc/xcode/framework/src/Info.plist b/xmake/repository/templates/objc/xcode/framework/src/Info.plist
index 20608314e..20608314e 100644
--- a/xmake/templates/objc/xcode/framework/src/Info.plist
+++ b/xmake/repository/templates/objc/xcode/framework/src/Info.plist
diff --git a/xmake/templates/objc/xcode/framework/src/test.h b/xmake/repository/templates/objc/xcode/framework/src/test.h
index d882546d1..d882546d1 100644
--- a/xmake/templates/objc/xcode/framework/src/test.h
+++ b/xmake/repository/templates/objc/xcode/framework/src/test.h
diff --git a/xmake/templates/objc/xcode/framework/src/test.m b/xmake/repository/templates/objc/xcode/framework/src/test.m
index 20e29bd0a..20e29bd0a 100644
--- a/xmake/templates/objc/xcode/framework/src/test.m
+++ b/xmake/repository/templates/objc/xcode/framework/src/test.m
diff --git a/xmake/templates/objc/xcode/framework/xmake.lua b/xmake/repository/templates/objc/xcode/framework/xmake.lua
index 83ddfa1a2..83ddfa1a2 100644
--- a/xmake/templates/objc/xcode/framework/xmake.lua
+++ b/xmake/repository/templates/objc/xcode/framework/xmake.lua
diff --git a/xmake/templates/objc/xcode/iosapp/src/AppDelegate.h b/xmake/repository/templates/objc/xcode/iosapp/src/AppDelegate.h
index b01a8dc72..b01a8dc72 100644
--- a/xmake/templates/objc/xcode/iosapp/src/AppDelegate.h
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/AppDelegate.h
diff --git a/xmake/templates/objc/xcode/iosapp/src/AppDelegate.m b/xmake/repository/templates/objc/xcode/iosapp/src/AppDelegate.m
index 0ad500bfe..0ad500bfe 100644
--- a/xmake/templates/objc/xcode/iosapp/src/AppDelegate.m
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/AppDelegate.m
diff --git a/xmake/templates/objc/xcode/iosapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json b/xmake/repository/templates/objc/xcode/iosapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json
index d8db8d65f..d8db8d65f 100644
--- a/xmake/templates/objc/xcode/iosapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json
diff --git a/xmake/templates/objc/xcode/iosapp/src/Assets.xcassets/Contents.json b/xmake/repository/templates/objc/xcode/iosapp/src/Assets.xcassets/Contents.json
index da4a164c9..da4a164c9 100644
--- a/xmake/templates/objc/xcode/iosapp/src/Assets.xcassets/Contents.json
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/Assets.xcassets/Contents.json
diff --git a/xmake/templates/objc/xcode/iosapp/src/Base.lproj/LaunchScreen.storyboard b/xmake/repository/templates/objc/xcode/iosapp/src/Base.lproj/LaunchScreen.storyboard
index 865e9329f..865e9329f 100644
--- a/xmake/templates/objc/xcode/iosapp/src/Base.lproj/LaunchScreen.storyboard
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/Base.lproj/LaunchScreen.storyboard
diff --git a/xmake/templates/objc/xcode/iosapp/src/Base.lproj/Main.storyboard b/xmake/repository/templates/objc/xcode/iosapp/src/Base.lproj/Main.storyboard
index 808a21ce7..808a21ce7 100644
--- a/xmake/templates/objc/xcode/iosapp/src/Base.lproj/Main.storyboard
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/Base.lproj/Main.storyboard
diff --git a/xmake/templates/objc/xcode/iosapp/src/Info.plist b/xmake/repository/templates/objc/xcode/iosapp/src/Info.plist
index 686d21a3a..686d21a3a 100644
--- a/xmake/templates/objc/xcode/iosapp/src/Info.plist
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/Info.plist
diff --git a/xmake/templates/objc/xcode/iosapp/src/SceneDelegate.h b/xmake/repository/templates/objc/xcode/iosapp/src/SceneDelegate.h
index 5dbf88aa6..5dbf88aa6 100644
--- a/xmake/templates/objc/xcode/iosapp/src/SceneDelegate.h
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/SceneDelegate.h
diff --git a/xmake/templates/objc/xcode/iosapp/src/SceneDelegate.m b/xmake/repository/templates/objc/xcode/iosapp/src/SceneDelegate.m
index d6698dd7c..d6698dd7c 100644
--- a/xmake/templates/objc/xcode/iosapp/src/SceneDelegate.m
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/SceneDelegate.m
diff --git a/xmake/templates/objc/xcode/iosapp/src/ViewController.h b/xmake/repository/templates/objc/xcode/iosapp/src/ViewController.h
index e74d2f236..e74d2f236 100644
--- a/xmake/templates/objc/xcode/iosapp/src/ViewController.h
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/ViewController.h
diff --git a/xmake/templates/objc/xcode/iosapp/src/ViewController.m b/xmake/repository/templates/objc/xcode/iosapp/src/ViewController.m
index c3441c87a..c3441c87a 100644
--- a/xmake/templates/objc/xcode/iosapp/src/ViewController.m
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/ViewController.m
diff --git a/xmake/templates/objc/xcode/iosapp/src/main.m b/xmake/repository/templates/objc/xcode/iosapp/src/main.m
index 11a58afc7..11a58afc7 100644
--- a/xmake/templates/objc/xcode/iosapp/src/main.m
+++ b/xmake/repository/templates/objc/xcode/iosapp/src/main.m
diff --git a/xmake/templates/objc/xcode/iosapp/xmake.lua b/xmake/repository/templates/objc/xcode/iosapp/xmake.lua
index 1306fce94..1306fce94 100644
--- a/xmake/templates/objc/xcode/iosapp/xmake.lua
+++ b/xmake/repository/templates/objc/xcode/iosapp/xmake.lua
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.h b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.h
index b01a8dc72..b01a8dc72 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.h
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.h
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.m b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.m
index 1f3556c06..1f3556c06 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.m
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.m
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
index d8db8d65f..d8db8d65f 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/Contents.json b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/Contents.json
index da4a164c9..da4a164c9 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/Contents.json
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/Contents.json
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/LaunchScreen.storyboard b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/LaunchScreen.storyboard
index 865e9329f..865e9329f 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/LaunchScreen.storyboard
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/LaunchScreen.storyboard
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/Main.storyboard b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/Main.storyboard
index 808a21ce7..808a21ce7 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/Main.storyboard
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/Main.storyboard
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Info.plist b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Info.plist
index 686d21a3a..686d21a3a 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/Info.plist
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Info.plist
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.h b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.h
index 5dbf88aa6..5dbf88aa6 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.h
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.h
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.m b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.m
index d6698dd7c..d6698dd7c 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.m
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.m
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.h b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.h
index e74d2f236..e74d2f236 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.h
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.h
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.m b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.m
index c3441c87a..c3441c87a 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.m
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.m
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/main.m b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/main.m
index 11a58afc7..11a58afc7 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/app/main.m
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/main.m
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/framework/Info.plist b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/Info.plist
index 20608314e..20608314e 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/framework/Info.plist
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/Info.plist
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/framework/test.h b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/test.h
index d882546d1..d882546d1 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/framework/test.h
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/test.h
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/src/framework/test.m b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/test.m
index 71214544b..71214544b 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/src/framework/test.m
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/test.m
diff --git a/xmake/templates/objc/xcode/iosapp_with_framework/xmake.lua b/xmake/repository/templates/objc/xcode/iosapp_with_framework/xmake.lua
index e1383b8b2..e1383b8b2 100644
--- a/xmake/templates/objc/xcode/iosapp_with_framework/xmake.lua
+++ b/xmake/repository/templates/objc/xcode/iosapp_with_framework/xmake.lua
diff --git a/xmake/templates/objc/xcode/macapp/src/AppDelegate.h b/xmake/repository/templates/objc/xcode/macapp/src/AppDelegate.h
index 5f5ba059e..5f5ba059e 100644
--- a/xmake/templates/objc/xcode/macapp/src/AppDelegate.h
+++ b/xmake/repository/templates/objc/xcode/macapp/src/AppDelegate.h
diff --git a/xmake/templates/objc/xcode/macapp/src/AppDelegate.m b/xmake/repository/templates/objc/xcode/macapp/src/AppDelegate.m
index da967d2ef..da967d2ef 100644
--- a/xmake/templates/objc/xcode/macapp/src/AppDelegate.m
+++ b/xmake/repository/templates/objc/xcode/macapp/src/AppDelegate.m
diff --git a/xmake/templates/objc/xcode/macapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json b/xmake/repository/templates/objc/xcode/macapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json
index 2db2b1c7c..2db2b1c7c 100644
--- a/xmake/templates/objc/xcode/macapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ b/xmake/repository/templates/objc/xcode/macapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json
diff --git a/xmake/templates/objc/xcode/macapp/src/Assets.xcassets/Contents.json b/xmake/repository/templates/objc/xcode/macapp/src/Assets.xcassets/Contents.json
index da4a164c9..da4a164c9 100644
--- a/xmake/templates/objc/xcode/macapp/src/Assets.xcassets/Contents.json
+++ b/xmake/repository/templates/objc/xcode/macapp/src/Assets.xcassets/Contents.json
diff --git a/xmake/templates/objc/xcode/macapp/src/Base.lproj/Main.storyboard b/xmake/repository/templates/objc/xcode/macapp/src/Base.lproj/Main.storyboard
index 7a6d659a5..7a6d659a5 100644
--- a/xmake/templates/objc/xcode/macapp/src/Base.lproj/Main.storyboard
+++ b/xmake/repository/templates/objc/xcode/macapp/src/Base.lproj/Main.storyboard
diff --git a/xmake/templates/objc/xcode/macapp/src/Info.plist b/xmake/repository/templates/objc/xcode/macapp/src/Info.plist
index ce53d780c..ce53d780c 100644
--- a/xmake/templates/objc/xcode/macapp/src/Info.plist
+++ b/xmake/repository/templates/objc/xcode/macapp/src/Info.plist
diff --git a/xmake/templates/objc/xcode/macapp/src/ViewController.h b/xmake/repository/templates/objc/xcode/macapp/src/ViewController.h
index a974fc934..a974fc934 100644
--- a/xmake/templates/objc/xcode/macapp/src/ViewController.h
+++ b/xmake/repository/templates/objc/xcode/macapp/src/ViewController.h
diff --git a/xmake/templates/objc/xcode/macapp/src/ViewController.m b/xmake/repository/templates/objc/xcode/macapp/src/ViewController.m
index bccdf6189..bccdf6189 100644
--- a/xmake/templates/objc/xcode/macapp/src/ViewController.m
+++ b/xmake/repository/templates/objc/xcode/macapp/src/ViewController.m
diff --git a/xmake/templates/objc/xcode/macapp/src/main.m b/xmake/repository/templates/objc/xcode/macapp/src/main.m
index ae3706f51..ae3706f51 100644
--- a/xmake/templates/objc/xcode/macapp/src/main.m
+++ b/xmake/repository/templates/objc/xcode/macapp/src/main.m
diff --git a/xmake/templates/objc/xcode/macapp/src/test.entitlements b/xmake/repository/templates/objc/xcode/macapp/src/test.entitlements
index f2ef3ae02..f2ef3ae02 100644
--- a/xmake/templates/objc/xcode/macapp/src/test.entitlements
+++ b/xmake/repository/templates/objc/xcode/macapp/src/test.entitlements
diff --git a/xmake/templates/objc/xcode/macapp/xmake.lua b/xmake/repository/templates/objc/xcode/macapp/xmake.lua
index 1306fce94..1306fce94 100644
--- a/xmake/templates/objc/xcode/macapp/xmake.lua
+++ b/xmake/repository/templates/objc/xcode/macapp/xmake.lua
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.h b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.h
index 5f5ba059e..5f5ba059e 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.h
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.h
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.m b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.m
index 667420c8c..667420c8c 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.m
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.m
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
index 2db2b1c7c..2db2b1c7c 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/Contents.json b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/Contents.json
index da4a164c9..da4a164c9 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/Contents.json
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/Contents.json
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/Base.lproj/Main.storyboard b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Base.lproj/Main.storyboard
index 7a6d659a5..7a6d659a5 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/Base.lproj/Main.storyboard
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Base.lproj/Main.storyboard
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/Info.plist b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Info.plist
index ce53d780c..ce53d780c 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/Info.plist
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Info.plist
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/ViewController.h b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/ViewController.h
index a974fc934..a974fc934 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/ViewController.h
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/ViewController.h
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/ViewController.m b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/ViewController.m
index bccdf6189..bccdf6189 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/ViewController.m
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/ViewController.m
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/main.m b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/main.m
index ae3706f51..ae3706f51 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/main.m
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/main.m
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/app/test.entitlements b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/test.entitlements
index f2ef3ae02..f2ef3ae02 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/app/test.entitlements
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/test.entitlements
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/framework/Info.plist b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/Info.plist
index 20608314e..20608314e 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/framework/Info.plist
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/Info.plist
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/framework/test.h b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/test.h
index d882546d1..d882546d1 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/framework/test.h
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/test.h
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/src/framework/test.m b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/test.m
index 71214544b..71214544b 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/src/framework/test.m
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/test.m
diff --git a/xmake/templates/objc/xcode/macapp_with_framework/xmake.lua b/xmake/repository/templates/objc/xcode/macapp_with_framework/xmake.lua
index e1383b8b2..e1383b8b2 100644
--- a/xmake/templates/objc/xcode/macapp_with_framework/xmake.lua
+++ b/xmake/repository/templates/objc/xcode/macapp_with_framework/xmake.lua
diff --git a/xmake/templates/pascal/console/src/main.pas b/xmake/repository/templates/pascal/console/src/main.pas
index a908ffab7..a908ffab7 100644
--- a/xmake/templates/pascal/console/src/main.pas
+++ b/xmake/repository/templates/pascal/console/src/main.pas
diff --git a/xmake/templates/pascal/console/xmake.lua b/xmake/repository/templates/pascal/console/xmake.lua
index 52168c3a4..52168c3a4 100644
--- a/xmake/templates/pascal/console/xmake.lua
+++ b/xmake/repository/templates/pascal/console/xmake.lua
diff --git a/xmake/templates/pascal/shared/src/foo.pas b/xmake/repository/templates/pascal/shared/src/foo.pas
index 788950f46..788950f46 100644
--- a/xmake/templates/pascal/shared/src/foo.pas
+++ b/xmake/repository/templates/pascal/shared/src/foo.pas
diff --git a/xmake/templates/pascal/shared/src/main.pas b/xmake/repository/templates/pascal/shared/src/main.pas
index 02d5e88d0..02d5e88d0 100644
--- a/xmake/templates/pascal/shared/src/main.pas
+++ b/xmake/repository/templates/pascal/shared/src/main.pas
diff --git a/xmake/templates/pascal/shared/xmake.lua b/xmake/repository/templates/pascal/shared/xmake.lua
index fad68bd07..fad68bd07 100644
--- a/xmake/templates/pascal/shared/xmake.lua
+++ b/xmake/repository/templates/pascal/shared/xmake.lua
diff --git a/xmake/templates/rust/console/src/main.rs b/xmake/repository/templates/rust/console/src/main.rs
index 88d5e2749..88d5e2749 100644
--- a/xmake/templates/rust/console/src/main.rs
+++ b/xmake/repository/templates/rust/console/src/main.rs
diff --git a/xmake/templates/rust/console/xmake.lua b/xmake/repository/templates/rust/console/xmake.lua
index 684ea720a..684ea720a 100644
--- a/xmake/templates/rust/console/xmake.lua
+++ b/xmake/repository/templates/rust/console/xmake.lua
diff --git a/xmake/templates/rust/shared/src/foo.rs b/xmake/repository/templates/rust/shared/src/foo.rs
index a3a3aa4a6..a3a3aa4a6 100644
--- a/xmake/templates/rust/shared/src/foo.rs
+++ b/xmake/repository/templates/rust/shared/src/foo.rs
diff --git a/xmake/templates/rust/shared/src/main.rs b/xmake/repository/templates/rust/shared/src/main.rs
index 205d23da3..205d23da3 100644
--- a/xmake/templates/rust/shared/src/main.rs
+++ b/xmake/repository/templates/rust/shared/src/main.rs
diff --git a/xmake/templates/rust/shared/xmake.lua b/xmake/repository/templates/rust/shared/xmake.lua
index 52effc17b..52effc17b 100644
--- a/xmake/templates/rust/shared/xmake.lua
+++ b/xmake/repository/templates/rust/shared/xmake.lua
diff --git a/xmake/templates/rust/static/src/foo.rs b/xmake/repository/templates/rust/static/src/foo.rs
index a3a3aa4a6..a3a3aa4a6 100644
--- a/xmake/templates/rust/static/src/foo.rs
+++ b/xmake/repository/templates/rust/static/src/foo.rs
diff --git a/xmake/templates/rust/static/src/main.rs b/xmake/repository/templates/rust/static/src/main.rs
index 205d23da3..205d23da3 100644
--- a/xmake/templates/rust/static/src/main.rs
+++ b/xmake/repository/templates/rust/static/src/main.rs
diff --git a/xmake/templates/rust/static/xmake.lua b/xmake/repository/templates/rust/static/xmake.lua
index 9eb48bef1..9eb48bef1 100644
--- a/xmake/templates/rust/static/xmake.lua
+++ b/xmake/repository/templates/rust/static/xmake.lua
diff --git a/xmake/templates/swift/console/src/main.swift b/xmake/repository/templates/swift/console/src/main.swift
index ee21045f4..ee21045f4 100644
--- a/xmake/templates/swift/console/src/main.swift
+++ b/xmake/repository/templates/swift/console/src/main.swift
diff --git a/xmake/templates/swift/console/xmake.lua b/xmake/repository/templates/swift/console/xmake.lua
index d07f6547b..d07f6547b 100644
--- a/xmake/templates/swift/console/xmake.lua
+++ b/xmake/repository/templates/swift/console/xmake.lua
diff --git a/xmake/templates/vala/console/src/main.vala b/xmake/repository/templates/vala/console/src/main.vala
index 8e8a32da0..8e8a32da0 100644
--- a/xmake/templates/vala/console/src/main.vala
+++ b/xmake/repository/templates/vala/console/src/main.vala
diff --git a/xmake/templates/vala/console/xmake.lua b/xmake/repository/templates/vala/console/xmake.lua
index 4fb124a8a..4fb124a8a 100644
--- a/xmake/templates/vala/console/xmake.lua
+++ b/xmake/repository/templates/vala/console/xmake.lua
diff --git a/xmake/templates/vala/shared/src/main.vala b/xmake/repository/templates/vala/shared/src/main.vala
index da9fd895e..da9fd895e 100644
--- a/xmake/templates/vala/shared/src/main.vala
+++ b/xmake/repository/templates/vala/shared/src/main.vala
diff --git a/xmake/templates/vala/shared/src/mymath.vala b/xmake/repository/templates/vala/shared/src/mymath.vala
index 4f4e761c5..4f4e761c5 100644
--- a/xmake/templates/vala/shared/src/mymath.vala
+++ b/xmake/repository/templates/vala/shared/src/mymath.vala
diff --git a/xmake/templates/vala/shared/xmake.lua b/xmake/repository/templates/vala/shared/xmake.lua
index 4b4291a78..4b4291a78 100644
--- a/xmake/templates/vala/shared/xmake.lua
+++ b/xmake/repository/templates/vala/shared/xmake.lua
diff --git a/xmake/templates/vala/static/src/main.vala b/xmake/repository/templates/vala/static/src/main.vala
index da9fd895e..da9fd895e 100644
--- a/xmake/templates/vala/static/src/main.vala
+++ b/xmake/repository/templates/vala/static/src/main.vala
diff --git a/xmake/templates/vala/static/src/mymath.vala b/xmake/repository/templates/vala/static/src/mymath.vala
index 4f4e761c5..4f4e761c5 100644
--- a/xmake/templates/vala/static/src/mymath.vala
+++ b/xmake/repository/templates/vala/static/src/mymath.vala
diff --git a/xmake/templates/vala/static/xmake.lua b/xmake/repository/templates/vala/static/xmake.lua
index 8e2430db7..8e2430db7 100644
--- a/xmake/templates/vala/static/xmake.lua
+++ b/xmake/repository/templates/vala/static/xmake.lua
diff --git a/xmake/templates/zig/console/src/main.zig b/xmake/repository/templates/zig/console/src/main.zig
index db34441e1..db34441e1 100644
--- a/xmake/templates/zig/console/src/main.zig
+++ b/xmake/repository/templates/zig/console/src/main.zig
diff --git a/xmake/templates/zig/console/xmake.lua b/xmake/repository/templates/zig/console/xmake.lua
index 28940257d..28940257d 100644
--- a/xmake/templates/zig/console/xmake.lua
+++ b/xmake/repository/templates/zig/console/xmake.lua
diff --git a/xmake/templates/zig/shared/src/main.zig b/xmake/repository/templates/zig/shared/src/main.zig
index 7dc7b2bc4..7dc7b2bc4 100644
--- a/xmake/templates/zig/shared/src/main.zig
+++ b/xmake/repository/templates/zig/shared/src/main.zig
diff --git a/xmake/templates/zig/shared/src/test.zig b/xmake/repository/templates/zig/shared/src/test.zig
index a04ec1544..a04ec1544 100644
--- a/xmake/templates/zig/shared/src/test.zig
+++ b/xmake/repository/templates/zig/shared/src/test.zig
diff --git a/xmake/templates/zig/shared/xmake.lua b/xmake/repository/templates/zig/shared/xmake.lua
index 2577bde9f..2577bde9f 100644
--- a/xmake/templates/zig/shared/xmake.lua
+++ b/xmake/repository/templates/zig/shared/xmake.lua
diff --git a/xmake/templates/zig/static/src/main.zig b/xmake/repository/templates/zig/static/src/main.zig
index 7dc7b2bc4..7dc7b2bc4 100644
--- a/xmake/templates/zig/static/src/main.zig
+++ b/xmake/repository/templates/zig/static/src/main.zig
diff --git a/xmake/templates/zig/static/src/test.zig b/xmake/repository/templates/zig/static/src/test.zig
index a04ec1544..a04ec1544 100644
--- a/xmake/templates/zig/static/src/test.zig
+++ b/xmake/repository/templates/zig/static/src/test.zig
diff --git a/xmake/templates/zig/static/xmake.lua b/xmake/repository/templates/zig/static/xmake.lua
index 2cc6601d2..2cc6601d2 100644
--- a/xmake/templates/zig/static/xmake.lua
+++ b/xmake/repository/templates/zig/static/xmake.lua