Giter Site home page Giter Site logo

quickjs-windows's Introduction

QuickJS Windows

This project is to build qjs.exe and qjsc.exe on Windows.

Feature

  • CMake with ninja-build tool and mingw64 toolchain are enough. Do not need Msys2 environment.
  • Both support shared and static lib build.
  • qjsc.exe with MinGW toolchain. You can also use C module for your qjs exe.

Usage

Build

  1. Install tools
  1. Clone this repo git clone --depth=1 https://github.com/stevenhobs/quickjs-windows.git

  2. Open the terminal from the repo position

  3. build commands

    cd quickjs-windows
    
    # check cmake tool
    where.exe cmake
    # check ninja
    where.exe ninja
    # check gcc
    where.exe gcc
    
    # pull required repositories
    git submodule update --init --depth=1
    
    # modify configuration about qjs
    notepad CMakeLists.txt
    
    # generate cmake build cache
    cmake -B build -DCC=gcc -G Ninja
    
    # build targets
    cmake --build build -v
    
    # install targets
    cmake --install build
  4. copy the target lib and exe files

    # Open File Explorer
    exlorer.exe .\install

    choose files about quickjs. Usually they are qjs.exe,qjsc.exe and libquckjs.dll(if you build shared lib)

    Note that some mingw64 sdk have shared stdlib dlls at the bin folder of MinGW installed directory. If you want to share your build targets with others. You should also take the copy of these dll files. For example: libgcc_s_seh-1.dll, libwinpthread-1.dll

LICENSE

MIT

quickjs-windows's People

Contributors

stevenhobs avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

a289672082

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.