MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

generate messages.h from messages.toml for core library

+35 -19
+9 -2
libant/meson.build
··· 17 17 18 18 subdir('meson') 19 19 20 + messages_h = custom_target('messages_h', 21 + input: '../src/core/messages.toml', 22 + output: 'messages.h', 23 + command: [python, files('../meson/messages.py'), '@INPUT@'], 24 + capture: true, 25 + ) 26 + 20 27 lib_sources = files(run_command( 21 28 python, files('meson/sources.py'), src_root / 'sources.json', 'library', src_root, 22 29 check: true ··· 24 31 25 32 libant_core = static_library( 26 33 'ant_core', 27 - lib_sources + [snapshot_h], 34 + lib_sources + [snapshot_h, messages_h], 28 35 include_directories: include, 29 36 dependencies: ant_deps + [oxc_dep], 30 37 ) ··· 32 39 if use_lto 33 40 libant_core_lto = static_library( 34 41 'ant_core_lto', 35 - lib_sources + [snapshot_h], 42 + lib_sources + [snapshot_h, messages_h], 36 43 include_directories: include, 37 44 dependencies: ant_deps + [oxc_dep], 38 45 c_args: ['-flto'],
+15 -6
libant/scripts/compile.sh
··· 4 4 . "$(dirname "$0")/common.sh" 5 5 6 6 cd "$SCRIPT_DIR" 7 + export PKG_CONFIG_PATH="$DEPS_DIR/lib/pkgconfig:$PKG_CONFIG_PATH" 7 8 8 - export PKG_CONFIG_PATH="$DEPS_DIR/lib/pkgconfig:$PKG_CONFIG_PATH" 9 + tlsuv_wrap="$SCRIPT_DIR/vendor/tlsuv.wrap" 10 + tlsuv_dir="$(awk -F '=' '/^directory[[:space:]]*=/{gsub(/[[:space:]]/, "", $2); print $2; exit}' "$tlsuv_wrap")" 11 + 12 + if [ -z "$tlsuv_dir" ]; then 13 + echo "Failed to resolve tlsuv directory from $tlsuv_wrap" >&2 14 + exit 1 15 + fi 16 + 17 + tlsuv_prefix="$BUILD_DIR/vendor/$tlsuv_dir/deps" 18 + mkdir -p "$BUILD_DIR/vendor/$tlsuv_dir" 9 19 10 - mkdir -p "$BUILD_DIR/vendor/tlsuv" 11 - rm -rf "$BUILD_DIR/vendor/tlsuv/deps" 12 - cp -RL "$BUILD_DIR/deps" "$BUILD_DIR/vendor/tlsuv/deps" 20 + rm -rf "$tlsuv_prefix" 21 + cp -RL "$BUILD_DIR/deps" "$tlsuv_prefix" 13 22 14 - meson setup build --prefer-static -Dtls_library=mbedtls -Ddeps_prefix_cmake="$BUILD_DIR/vendor/tlsuv/deps" "$@" 15 - meson compile -C build 23 + meson setup build --prefer-static -Dtls_library=mbedtls -Ddeps_prefix_cmake="$tlsuv_prefix" "$@" 24 + meson compile -C build
+11 -11
meson.build
··· 17 17 18 18 subdir('meson') 19 19 20 + messages_h = custom_target('messages_h', 21 + input: 'src/core/messages.toml', 22 + output: 'messages.h', 23 + command: [python, files('meson/messages.py'), '@INPUT@'], 24 + capture: true, 25 + ) 26 + 20 27 lib_sources = files(run_command( 21 28 python, files('meson/sources.py'), files('sources.json'), 'engine', 22 29 check: true ··· 24 31 25 32 libant = static_library( 26 33 'ant', 27 - lib_sources + [snapshot_h], 34 + install: true, 35 + lib_sources + [snapshot_h, messages_h], 28 36 include_directories: include, 29 - dependencies: ant_deps, 30 - install: true 37 + dependencies: ant_deps 31 38 ) 32 39 33 40 pkg_lib = custom_target( ··· 64 71 dependencies: ant_deps + [oxc_dep, pkg_dep] 65 72 ) 66 73 67 - messages_h = custom_target('messages_h', 68 - input: 'src/core/messages.toml', 69 - output: 'messages.h', 70 - command: [python, files('meson/messages.py'), '@INPUT@'], 71 - capture: true, 72 - ) 73 - 74 74 link_args = [] 75 75 if get_option('static_link') 76 76 link_args += ['-static'] ··· 78 78 79 79 executable( 80 80 'ant', 81 - files('src/main.c', 'src/watch.c') + [messages_h], 81 + files('src/main.c', 'src/watch.c'), 82 82 dependencies: libant_dep, link_args: link_args 83 83 )