Require Tools
- Visual studio 2022
- Perl (Added to windows PATH)
- CMake (Added to windows PATH)
- Ninja (Added to windows PATH)
- Postgresql LIB (Added to windows PATH)
Build command:
... | |
"architect": { | |
"build": { | |
"builder": "@angular-builders/custom-webpack:browser", | |
"options": { | |
"customWebpackConfig": { | |
"path": "./extra-webpack.config.js" | |
}, | |
} | |
} |
Require Tools
Build command:
# Run script every hours | |
0 * * * * /ddns.sh |
#! /bin/bash | |
echo "install requires tools" | |
sudo apt-get update | |
sudo apt-get install -y cmake libffi-dev libedit-dev swig git gcc g++ pkg-config ninja-build libxml2-dev python3-pip | |
echo "Download llvm source" | |
git clone --depth 1 https://github.com/llvm/llvm-project | |
cd llvm-project |
To extract message, run following command:
yarn extract-i18n
# Check http://releases.llvm.org/download.html#9.0.0 for the latest available binaries | |
FROM ubuntu:18.04 | |
# Make sure the image is updated, install some prerequisites, | |
# Download the latest version of Clang (official binary) for Ubuntu | |
# Extract the archive and add Clang to the PATH | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
gnupg \ | |
ca-certificates \ | |
openssl \ |
// Include standard font and media definitions | |
#include <font.defs> | |
#include <media.defs> | |
Copyright "Oxycoder" | |
Copyright "License: MIT" | |
// Reference document: https://www.cups.org/doc/ref-ppdcfile.html#CustomMedia | |
// Introduction: https://www.cups.org/doc/ppd-compiler.html | |
// PostScript Dev: https://www.cups.org/doc/postscript-driver.html |
Requirement: Visual stuio 2019 LLVM : http://releases.llvm.org/8.0.0/LLVM-8.0.0-win64.exe
Step 1: Install Visual studio 2019
Step 2: Install LLVM (remember to check add llvm to system enviroment path)
// Basic c++ game loop | |
// idea: Render without affected to game logic and input | |
int main() | |
{ | |
bool hasFocus = true; // check if windows is focus and active | |
bool isMinimize = false; // check if windows is minized | |
DWORD currentTime = timeGetTime(); | |
DWORD lastFrameTime = 0; | |
int fpsLimitWithFocused = 60; | |
int fpsLimitWithoutFocus = 15; |