Skip to content
  • Dylan Baker's avatar
    meson: Add script to use VERSION file for getting version · 3e9533d9
    Dylan Baker authored
    
    
    Meson has up until this point set it's version in the root meson.build
    script, while the other build systems read the VERSION file. This is
    just "one more thing" to duplicate between meson and every other build
    system. This script is a simple "read, strip, print" sort of deal to
    allow meson to read the VERSION file.
    
    I chose to implement this in python since python is portable, and to
    keep the meson.build script clean. This is also complicated by the fact
    that the project() call *must* be the first non-comment,non-blank in the
    toplevel meson.build script.
    
    v2: - Move from scripts/ to bin/
        - use python explicitly to run the scripts to support windows
    
    Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
    Reviewed-by: default avatarEric Engestrom <eric.engestrom@imgtec.com>
    3e9533d9