Skip to content

2.1 | How to build (Linux)

zalan-racz-gaijin edited this page Jun 13, 2024 · 2 revisions
  1. Open the Terminal

  2. Download and install npm

    sudo apt install npm
  3. Install git

    sudo apt install git
  4. Install the OpenJDK

    sudo apt-get install msopenjdk-21
  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