Move some defines to only the source files where they are needed

This commit is contained in:
Kovid Goyal
2024-05-16 17:38:26 +05:30
parent f30652c24a
commit f979c24add
2 changed files with 22 additions and 6 deletions

View File

@@ -64,6 +64,11 @@ class Env:
vcs_rev: str = ''
binary_arch: BinaryArch = BinaryArch()
native_optimizations: bool = False
has_systemd: bool = False
primary_version: int = 0
secondary_version: int = 0
xt_version: str = ''
has_copy_file_range: bool = False
# glfw stuff
all_headers: List[str] = []
@@ -118,6 +123,11 @@ class Env:
ans.vcs_rev = self.vcs_rev
ans.binary_arch = self.binary_arch
ans.native_optimizations = self.native_optimizations
ans.has_systemd = self.has_systemd
ans.primary_version = self.primary_version
ans.secondary_version = self.secondary_version
ans.xt_version = self.xt_version
ans.has_copy_file_range = self.has_copy_file_range
return ans