Created
August 20, 2019 09:07
-
-
Save menangen/17e716fb680ab166206981d7e236844c to your computer and use it in GitHub Desktop.
QuickJS Meson build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project('quickjs', 'c', version : '2019-08-10') | |
add_project_arguments('-DCONFIG_VERSION="2019-08-10"', language : 'c') | |
lib = static_library('quickjs', 'quickjs.c', 'cutils.c', 'quickjs-libc.c', 'libregexp.c', 'libunicode.c') | |
compiler = executable('qjsc', 'qjsc.c', link_with : lib) #, link_args : '-Wl,-S' | |
repl_c = custom_target( | |
'repl.c', | |
input : 'repl.js', | |
output : 'repl.c', | |
command : [compiler, '-c', '-o', '@OUTPUT@', '-m', '@INPUT@']) | |
executable('qjs', ['qjs.c', repl_c], link_with : lib) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment