-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(zig): fix buildexe name escape * fix(zig): libraries spelling * chore(zig): removed an unneeded comma * fix(zig): json formatting * fix(cmake): package json formatting * chore(zig): reformatted zig json to proper standard
- Loading branch information
1 parent
dfa2d9e
commit 59c1813
Showing
2 changed files
with
27 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
{ | ||
"Import": { | ||
"prefix": "import", | ||
"body": ["const ${1} = @import(\"${1}\")"], | ||
"description": "Importing Librarys" | ||
}, | ||
"CImport": { | ||
"prefix": "cimport", | ||
"body": [ | ||
"const c = @cImport({", | ||
"@cDefine(\"${1}\")", | ||
"});" | ||
], | ||
"description": "Importing C Header Files" | ||
}, | ||
"buildExe": { | ||
"prefix": "bExe", | ||
"body": [ | ||
"const exe = b.addExecutable(.{", | ||
".name = \"${1}",\", | ||
".root_source_file = b.path(\"${2: path}\"),", | ||
".target = target,", | ||
".optimize = optimize,", | ||
"});", | ||
"\n\n\n b.installArtifact(exe);", | ||
], | ||
"description": "Building an exe" | ||
} | ||
"Import": { | ||
"prefix": "import", | ||
"body": ["const ${1} = @import(\"${1}\")"], | ||
"description": "Importing Libraries" | ||
}, | ||
"CImport": { | ||
"prefix": "cimport", | ||
"body": ["const c = @cImport({", " @cDefine(\"${1}\")", "});"], | ||
"description": "Importing C Header Files" | ||
}, | ||
"buildExe": { | ||
"prefix": "bExe", | ||
"body": [ | ||
"const exe = b.addExecutable(.{", | ||
" .name = \"${1}\",", | ||
" .root_source_file = b.path(\"${2:path}\"),", | ||
" .target = target,", | ||
" .optimize = optimize,", | ||
"});", | ||
"b.installArtifact(exe);" | ||
], | ||
"description": "Building an exe" | ||
} | ||
} |