Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarknessFX committed Jan 5, 2025
1 parent d8eca94 commit 54ca96c
Show file tree
Hide file tree
Showing 58 changed files with 6,898 additions and 1 deletion.
Binary file added Base/Base.ico
Binary file not shown.
32 changes: 32 additions & 0 deletions Base/Base.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#include "windows.h"

IDI_ICON1 ICON "Base.ico"

1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x1L
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "Base"
VALUE "FileDescription", "Base"
VALUE "FileVersion", "1.0.0.0"
VALUE "InternalName", "Base.exe"
VALUE "LegalCopyright", "Copyleft(c) Created by DarknessFX, http://dfx.lv/ , @DrkFX."
VALUE "OriginalFilename", "Base.exe"
VALUE "ProductName", "Base"
VALUE "ProductVersion", "1.0.0.0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
4 changes: 4 additions & 0 deletions Base/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ pub fn build(b: *std.Build) void {
.target = target,
.optimize = optimize
});
exe.addWin32ResourceFile(.{
.file = b.path(projectname ++ ".rc"),
.flags = &.{"/c65001"}, // UTF-8 codepage
});

switch (optimize) {
.Debug => b.exe_dir = "bin/Debug",
Expand Down
1 change: 0 additions & 1 deletion BaseEx/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub fn build(b: *std.Build) void {
.file = b.path(projectname ++ ".rc"),
.flags = &.{"/c65001"}, // UTF-8 codepage
});
exe.linkLibC();

switch (optimize) {
.Debug => b.exe_dir = "bin/Debug",
Expand Down
200 changes: 200 additions & 0 deletions BaseWebview/.vscode/BaseWebview.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
{
"folders": [{ "path": ".." }],
"settings": {
// Zig Workspace
"files.exclude": {
"*.lnk": true,
"**/.git": true,
".gitignore": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
// VSCODE FOLDERS --------
"**/.vscode": false,
"**/.code-workspace": true,
// ZIG FOLDERS --------
"**/zig-cache": true,
"**/.zig-cache": true
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
// ZIG FOLDERS --------
"**/zig-out": true
},
"files.watcherExclude": {
// ZIG FOLDERS --------
"**/zig-cache": true
},

// DarknessFX settings
"telemetry.telemetryLevel": "off",
"workbench.colorTheme": "Default Dark+",
"workbench.startupEditor": "none",
"workbench.colorCustomizations": {
"statusBar.background" : "#1A1A1A",
"statusBar.noFolderBackground" : "#212121",
"statusBar.debuggingBackground": "#263238",
"editorBracketHighlight.foreground1": "#888888",
"editorBracketHighlight.foreground2": "#686888",
"editorBracketHighlight.foreground3": "#688868",
"editorBracketHighlight.foreground4": "#886868",
"editorBracketHighlight.foreground5": "#686868",
},
"editor.tokenColorCustomizations": {
"comments": "#546E7A",
"functions": "#DFAB4B",
"keywords": "#367CB6",
"numbers": "#CE9178",
"strings": "#CE9178",
"types": "#2EA990",
"variables": "#7CBCDE",

"[Default Dark+]": {
"textMateRules": [
{
"scope": [
"other",
"source",
"keyword.operator",
"keyword.operator.noexcept",
"punctuation",
"punctuation.dot",
"punctuation.comma",
"punctuation.definitions",
"punctuation.definition.comment",
"punctuation.definition.tag",
"punctuation.definition.tag.html",
"punctuation.definition.tag.begin.html",
"punctuation.definition.tag.end.html",
"punctuation.section.embedded",
"punctuation.separator",
"punctuation.separator.inheritance.php",
],
"settings": {
"foreground": "#758E68",
"fontStyle": "",
}
},
{
"scope": [
"comment",
],
"settings": {
"fontStyle": "italic",
}
},
{
"scope": [
"keyword",
"keyword.control",
"keyword.other",
"keyword.other.template",
"keyword.other.substitution",
"keyword.other.unit",
"storage",
"storage.type",
"storage.modifier",
"keywordLiteral",
"keyword.literal",
"keyword.constant.default",
],
"settings": {
"fontStyle": "italic",
"foreground": "#367CB6"
}
},
{
"scope": [
"support.class",
"support.type",
"entity.name.type",
"entity.name.namespace",
"entity.other.attribute",
"entity.name.scope-resolution",
"entity.name.class",
],
"settings": {
"foreground": "#2EA990"
}
},
],
},
},
"editor.tabSize": 2,
"editor.fontSize": 16,
"editor.unicodeHighlight.invisibleCharacters": false,
"editor.autoClosingBrackets": "never",
"editor.autoSurround": "never",
"editor.autoClosingQuotes": "never",
"editor.detectIndentation": false,
"editor.lightbulb.enabled": "off",
"workbench.editor.focusRecentEditorAfterClose": false,
"workbench.panel.defaultLocation": "left",
"workbench.panel.opensMaximized": "never",
"workbench.editor.tabSizing": "fixed",
"workbench.editor.tabSizingFixedMaxWidth": 140,
"workbench.sideBar.location": "right",
"debug.allowBreakpointsEverywhere": true,
"debug.onTaskErrors": "abort",
"explorer.confirmDragAndDrop": false,
"explorer.compactFolders": false,
"explorer.confirmDelete": false,
"terminal.integrated.profiles.windows": {
"Windows Terminal": {
"path": "wt",
"args": [
"-p", "cmd", "cmd"
],
"icon": "terminal-bash",
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Git Bash": {
"source": "Git Bash"
},
},
"terminal.integrated.tabs.location": "left",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"C_Cpp.vcFormat.space.groupSquareBrackets": false,
"C_Cpp.loggingLevel": "Debug",
"C_Cpp.codeAnalysis.clangTidy.codeAction.formatFixes": false,
"git.openRepositoryInParentFolders": "never",
"html.autoCreateQuotes": false,
"zig.buildFilePath": "${workspaceFolder}",
"zig.formattingProvider": "off",
"zig.checkForUpdate": false,
"zig.zls.enabled": true,
"zig.zls.highlightGlobalVarDeclarations": true,
"zig.zls.semanticTokens": "full",
"zig.zls.enableArgumentPlaceholders": false,
"zig.zls.inlayHintsExcludeSingleArgument": false,
"zig.zls.enableAutofix": false,
"zig.zls.checkForUpdate": false,
"zig.zls.enableInlayHints": false,
"zig.zls.preferAstCheckAsChildProcess": false,
"files.associations": {
"raylib.h": "c",
"rcamera.h": "c",
"raymath.h": "c"
},
},
"extensions": {
"recommendations": [
"pkief.material-icon-theme"
]
}
}
36 changes: 36 additions & 0 deletions BaseWebview/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "cppvsdbg",
"request": "launch",
"presentation": {
"hidden": false,
"group": "",
"order": 1
},
"program": "${workspaceFolder}/bin/Debug/${workspaceFolderBasename}.exe",
"args": [ ],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"preLaunchTask": "${defaultBuildTask}",
"console": "integratedTerminal",
"symbolSearchPath": "${workspaceFolder}/bin/Debug/",
},
{
"name": "Debug Attach",
"type": "cppvsdbg",
"request": "attach",
"presentation": {
"hidden": true,
"group": "",
"order": 2
},
"preLaunchTask": "Zig: Run main",
"internalConsoleOptions": "openOnFirstSessionStart",
"processId": "${command:pickProcess}"
}
]
}
106 changes: 106 additions & 0 deletions BaseWebview/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"tasks": [{
"label": "Zig: Build",
"args": [ "build", "--summary", "all" ],
"detail": "zig build --summary all",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": true },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Safe.",
"args": [ "build", "-Doptimize=ReleaseSafe", "--summary", "all" ],
"detail": "zig build -Doptimize=ReleaseSafe --summary all",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Fast.",
"args": [ "build", "-Doptimize=ReleaseFast", "--summary", "all" ],
"detail": "zig build -Doptimize=ReleaseFast --summary all",
"command": "zig","type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Small.",
"args": [ "build", "-Doptimize=ReleaseSmall", "--summary", "all" ],
"detail": "zig build -Doptimize=ReleaseSmall --summary all",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Strip.",
"args": [ ],
"detail": "zig build-exe -O ReleaseSmall -fstrip -fsingle-threaded (+ lots of options) main.zig",
"command": "buildReleaseStrip.bat", "type": "shell", "options": { "cwd": "${workspaceRoot}\\tools" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Test",
"args": [ "test", "${file}" ],
"detail": "'zig test' in the current workspace.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "test", "isDefault": true },
"presentation": { "group": "test", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main",
"args": [ "run", "-lc",
"-I.", "-Ilib/webview/include",
"-Llib/webview",
"-lwebview",
"main.zig",
],
"detail": "zig run main.zig",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": true },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (With Args)",
"args": [ "run", "-lc", "main.zig", "--", "ArgsForYourProgram" ],
"detail": "zig run main.zig -- ArgsForYourProgram",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (Fast)",
"args": [ "run", "-lc", "main.zig", "-O", "ReleaseFast" ],
"detail": "zig run main.zig -O ReleaseFast",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (Safe)",
"args": [ "run", "-lc", "main.zig", "-O", "ReleaseSafe" ],
"detail": "zig run main.zig -O ReleaseSafe",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (Small)",
"args": [ "run", "-lc", "main.zig", "-O", "ReleaseSmall" ],
"detail": "zig run main.zig -O ReleaseSmall",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run current file",
"args": [ "run", "${file}" ],
"detail": "'zig run' active file in the current workspace.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "zTime Zig: Run current file",
"args": [ "zig", "run", "${file}" ],
"detail": "'zTime zig run' active file in the current workspace.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "zTime", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Docs",
"args": [ "run", "-femit-docs", "main.zig" ],
"detail": "Generate docs from source comments.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "docs", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
}],
"version": "2.0.0"
}
Binary file added BaseWebview/BaseWebview.ico
Binary file not shown.
Loading

0 comments on commit 54ca96c

Please sign in to comment.