Skip to content

2.0 | How to build (Windows)

zalan-racz-gaijin edited this page Jun 13, 2024 · 1 revision
  1. Download and install Node.js (https://nodejs.org/en/download)

  2. Download and install git (https://git-scm.com/downloads)

  3. Download and install the OpenJDK (https://www.microsoft.com/openjdk)

  4. Open PowerShell or cmd

  5. Clone the repository

    git clone https://github.com/GaijinEntertainment/Dagor-Shader-Language-Server.git
    
  6. Go inside the repository's root folder

    cd Dagor-Shader-Language-Server
    
  7. Install dependencies

    npm install
    
  8. Generate code

    npm run generate-dshl-antlr
    

    and

    npm run generate-condition-antlr
    

    You have to generate code again, every time you change the ConditionLexer.g4, ConditionParser.g4, DshlLexer.g4 or the DshlParser.g4 files.

  9. Build the code

    npm run build
    

    or

    npm run build-production
    

Clone this wiki locally