140 lines
4.1 KiB
Plaintext
140 lines
4.1 KiB
Plaintext
|
# This is the build file for project "cityhash"
|
||
|
# It is autogenerated by the Meson build system.
|
||
|
# Do not edit by hand.
|
||
|
|
||
|
ninja_required_version = 1.5.1
|
||
|
|
||
|
# Rules for compiling.
|
||
|
|
||
|
rule llvm_ir_COMPILER
|
||
|
command = sc++ $ARGS -o $out -c $in
|
||
|
description = Compiling LLVM IR object $in.
|
||
|
|
||
|
rule cpp_COMPILER
|
||
|
command = sc++ $ARGS -MD -MQ $out -MF '$DEPFILE' -o $out -c $in
|
||
|
deps = gcc
|
||
|
depfile = $DEPFILE
|
||
|
description = Compiling C++ object $out.
|
||
|
|
||
|
rule cpp_PCH
|
||
|
command = sc++ $ARGS -MD -MQ $out -MF '$DEPFILE' -o $out -c $in
|
||
|
deps = gcc
|
||
|
depfile = $DEPFILE
|
||
|
description = Precompiling header $in.
|
||
|
|
||
|
|
||
|
# Rules for linking.
|
||
|
|
||
|
rule STATIC_LINKER
|
||
|
command = rm -f $out && ar $LINK_ARGS $out $in
|
||
|
description = Linking static target $out.
|
||
|
|
||
|
rule cpp_LINKER
|
||
|
command = sc++ $ARGS -o $out $in $LINK_ARGS $aliasing
|
||
|
description = Linking target $out.
|
||
|
|
||
|
|
||
|
rule SHSYM
|
||
|
command = /usr/bin/python3.6 /usr/local/bin/meson --internal symbolextractor $in $out $CROSS
|
||
|
restat = 1
|
||
|
description = Generating symbol file $out.
|
||
|
|
||
|
# Other rules
|
||
|
|
||
|
rule CUSTOM_COMMAND
|
||
|
command = $COMMAND
|
||
|
description = $DESC
|
||
|
restat = 1
|
||
|
|
||
|
rule CUSTOM_COMMAND_DEP
|
||
|
command = $COMMAND
|
||
|
description = $DESC
|
||
|
deps = gcc
|
||
|
depfile = $DEPFILE
|
||
|
restat = 1
|
||
|
|
||
|
rule REGENERATE_BUILD
|
||
|
command = /usr/bin/python3.6 /usr/local/bin/meson --internal regenerate /mnt/c/Users/Mahmoud/git/cityhash /mnt/c/Users/Mahmoud/git/cityhash/build --backend ninja
|
||
|
description = Regenerating build files.
|
||
|
generator = 1
|
||
|
|
||
|
|
||
|
# Phony build target, always out of date
|
||
|
build PHONY: phony
|
||
|
|
||
|
# Build rules for targets
|
||
|
|
||
|
build cityhash@sha/src_city.cc.o: cpp_COMPILER ../src/city.cc
|
||
|
DEPFILE = cityhash@sha/src_city.cc.o.d
|
||
|
ARGS = -Icityhash@sha -I. -I.. -I../src/ -Iinternal -I../internal -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -O0 -g -march=native -msse4a -mfma -march=native -msse4a -mfma -D_GLIBCXX_USE_CXX11_ABI -fPIC
|
||
|
|
||
|
build cityhash@sha/libcityhash.so.symbols: SHSYM libcityhash.so
|
||
|
|
||
|
build libcityhash.so: cpp_LINKER cityhash@sha/src_city.cc.o
|
||
|
LINK_ARGS = -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libcityhash.so -Wl,--end-group -march=native -msse4a -mfma -D_GLIBCXX_USE_CXX11_ABI
|
||
|
|
||
|
# Test rules
|
||
|
|
||
|
build meson-test: CUSTOM_COMMAND all PHONY
|
||
|
COMMAND = /usr/bin/python3.6 -u /usr/local/bin/meson test --no-rebuild --print-errorlogs
|
||
|
DESC = Running$ all$ tests.
|
||
|
pool = console
|
||
|
|
||
|
build test: phony meson-test
|
||
|
|
||
|
build meson-benchmark: CUSTOM_COMMAND all PHONY
|
||
|
COMMAND = /usr/bin/python3.6 -u /usr/local/bin/meson test --benchmark --logbase benchmarklog --num-processes=1 --no-rebuild
|
||
|
DESC = Running$ benchmark$ suite.
|
||
|
pool = console
|
||
|
|
||
|
build benchmark: phony meson-benchmark
|
||
|
|
||
|
# Install rules
|
||
|
|
||
|
build meson-install: CUSTOM_COMMAND PHONY | all
|
||
|
DESC = Installing$ files.
|
||
|
COMMAND = /usr/bin/python3.6 /usr/local/bin/meson --internal install /mnt/c/Users/Mahmoud/git/cityhash/build/meson-private/install.dat
|
||
|
pool = console
|
||
|
|
||
|
build install: phony meson-install
|
||
|
|
||
|
build meson-dist: CUSTOM_COMMAND PHONY
|
||
|
DESC = Creating$ source$ packages
|
||
|
COMMAND = /usr/bin/python3.6 /usr/local/bin/meson --internal dist /mnt/c/Users/Mahmoud/git/cityhash /mnt/c/Users/Mahmoud/git/cityhash/build /usr/bin/python3.6 /usr/local/bin/meson
|
||
|
pool = console
|
||
|
|
||
|
build dist: phony meson-dist
|
||
|
|
||
|
# Suffix
|
||
|
|
||
|
build meson-scan-build: CUSTOM_COMMAND PHONY
|
||
|
COMMAND = /usr/bin/python3.6 /usr/local/bin/meson --internal scanbuild /mnt/c/Users/Mahmoud/git/cityhash /mnt/c/Users/Mahmoud/git/cityhash/build /usr/bin/python3.6 /usr/local/bin/meson
|
||
|
pool = console
|
||
|
|
||
|
build scan-build: phony meson-scan-build
|
||
|
|
||
|
build meson-uninstall: CUSTOM_COMMAND PHONY
|
||
|
COMMAND = /usr/bin/python3.6 /usr/local/bin/meson --internal uninstall
|
||
|
pool = console
|
||
|
|
||
|
build uninstall: phony meson-uninstall
|
||
|
|
||
|
build all: phony libcityhash.so
|
||
|
|
||
|
default all
|
||
|
|
||
|
build clean: phony meson-clean
|
||
|
|
||
|
build meson-clean: CUSTOM_COMMAND PHONY
|
||
|
COMMAND = ninja -t clean
|
||
|
description = Cleaning.
|
||
|
|
||
|
build build.ninja: REGENERATE_BUILD ../meson.build ../internal/meson.build meson-private/coredata.dat
|
||
|
pool = console
|
||
|
|
||
|
build reconfigure: REGENERATE_BUILD PHONY
|
||
|
pool = console
|
||
|
|
||
|
build ../meson.build ../internal/meson.build meson-private/coredata.dat: phony
|
||
|
|