From 06e65e537bd0570aa9de3cc8bad3a1ca006b38b8 Mon Sep 17 00:00:00 2001 From: Qyriad Date: Thu, 6 Jun 2024 12:46:26 -0600 Subject: build: expose option to enable or disable precompiled std headers They are enabled by default, and Meson will also prints whether or not they're enabled at the bottom at the end of configuration. Change-Id: I48db238510bf9e74340b86f243f4bbe360794281 --- src/libcmd/meson.build | 2 +- src/libexpr/meson.build | 2 +- src/libfetchers/meson.build | 2 +- src/libmain/meson.build | 2 +- src/libstore/meson.build | 2 +- src/libutil/meson.build | 2 +- src/nix/meson.build | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/libcmd/meson.build b/src/libcmd/meson.build index 4dc0714c8..3d92f36a4 100644 --- a/src/libcmd/meson.build +++ b/src/libcmd/meson.build @@ -54,7 +54,7 @@ libcmd = library( nlohmann_json, lix_doc ], - cpp_pch : ['../pch/precompiled-headers.hh'], + cpp_pch : cpp_pch, install : true, # FIXME(Qyriad): is this right? install_rpath : libdir, diff --git a/src/libexpr/meson.build b/src/libexpr/meson.build index e60a85b5d..080fdb443 100644 --- a/src/libexpr/meson.build +++ b/src/libexpr/meson.build @@ -145,7 +145,7 @@ libexpr = library( include_directories : [ '../libmain', ], - cpp_pch : ['../pch/precompiled-headers.hh'], + cpp_pch : cpp_pch, install : true, # FIXME(Qyriad): is this right? install_rpath : libdir, diff --git a/src/libfetchers/meson.build b/src/libfetchers/meson.build index ee38b6cda..b66d0b9f9 100644 --- a/src/libfetchers/meson.build +++ b/src/libfetchers/meson.build @@ -30,7 +30,7 @@ libfetchers = library( liblixutil, nlohmann_json, ], - cpp_pch : ['../pch/precompiled-headers.hh'], + cpp_pch : cpp_pch, install : true, # FIXME(Qyriad): is this right? install_rpath : libdir, diff --git a/src/libmain/meson.build b/src/libmain/meson.build index 075aa83b2..a7cce287c 100644 --- a/src/libmain/meson.build +++ b/src/libmain/meson.build @@ -20,7 +20,7 @@ libmain = library( liblixutil, liblixstore, ], - cpp_pch : ['../pch/precompiled-headers.hh'], + cpp_pch : cpp_pch, install : true, # FIXME(Qyriad): is this right? install_rpath : libdir, diff --git a/src/libstore/meson.build b/src/libstore/meson.build index 7a129d22c..fa363bd19 100644 --- a/src/libstore/meson.build +++ b/src/libstore/meson.build @@ -220,7 +220,7 @@ libstore = library( nlohmann_json, ], cpp_args : cpp_args, - cpp_pch : ['../pch/precompiled-headers.hh'], + cpp_pch : cpp_pch, install : true, # FIXME(Qyriad): is this right? install_rpath : libdir, diff --git a/src/libutil/meson.build b/src/libutil/meson.build index 8c3377e76..f6d14a11b 100644 --- a/src/libutil/meson.build +++ b/src/libutil/meson.build @@ -129,7 +129,7 @@ libutil = library( openssl, nlohmann_json, ], - cpp_pch : ['../pch/precompiled-headers.hh'], + cpp_pch : cpp_pch, implicit_include_directories : true, install : true, ) diff --git a/src/nix/meson.build b/src/nix/meson.build index 8115a3d08..22f148fcb 100644 --- a/src/nix/meson.build +++ b/src/nix/meson.build @@ -89,7 +89,7 @@ nix = executable( boehm, nlohmann_json, ], - cpp_pch : ['../pch/precompiled-headers.hh'], + cpp_pch : cpp_pch, install : true, # FIXME(Qyriad): is this right? install_rpath : libdir, -- cgit v1.2.3