Add the include dir in the meson_cross_file.
This is needed to have kiwix-lib find the `mustache.hpp` include when cross compiling.
This commit is contained in:
parent
17c6b68a62
commit
1d881d0612
|
@ -37,7 +37,7 @@ class AndroidPlatformInfo(PlatformInfo):
|
|||
'binaries': self.binaries(install_path),
|
||||
'root_path': pj(install_path, 'sysroot'),
|
||||
'extra_libs': ['-llog'],
|
||||
'extra_cflags': [],
|
||||
'extra_cflags': ['-I{}'.format(pj(self.buildEnv.install_dir, 'include'))],
|
||||
'host_machine': {
|
||||
'system': 'Android',
|
||||
'lsystem': 'android',
|
||||
|
|
|
@ -16,7 +16,7 @@ class ArmhfPlatformInfo(PlatformInfo):
|
|||
'exec_wrapper_def': '',
|
||||
'root_path': self.root_path,
|
||||
'extra_libs': [],
|
||||
'extra_cflags': [],
|
||||
'extra_cflags': ['-I{}'.format(pj(self.buildEnv.install_dir, 'include'))],
|
||||
'host_machine': {
|
||||
'system': 'linux',
|
||||
'lsystem': 'linux',
|
||||
|
|
|
@ -14,7 +14,7 @@ class I586PlatformInfo(PlatformInfo):
|
|||
'binaries': self.binaries,
|
||||
'exec_wrapper_def': '',
|
||||
'extra_libs': ['-m32', '-march=i586', '-mno-sse'],
|
||||
'extra_cflags': ['-m32', '-march=i586', '-mno-sse'],
|
||||
'extra_cflags': ['-m32', '-march=i586', '-mno-sse', '-I{}'.format(pj(self.buildEnv.install_dir, 'include'))],
|
||||
'host_machine': {
|
||||
'system': 'linux',
|
||||
'lsystem': 'linux',
|
||||
|
|
|
@ -35,7 +35,7 @@ class iOSPlatformInfo(PlatformInfo):
|
|||
'binaries': self.binaries,
|
||||
'exec_wrapper_def': '',
|
||||
'extra_libs': ['-fembed-bitcode', '-isysroot', self.root_path, '-arch', self.arch, '-miphoneos-version-min=9.0', '-stdlib=libc++'],
|
||||
'extra_cflags': ['-fembed-bitcode', '-isysroot', self.root_path, '-arch', self.arch, '-miphoneos-version-min=9.0', '-stdlib=libc++'],
|
||||
'extra_cflags': ['-fembed-bitcode', '-isysroot', self.root_path, '-arch', self.arch, '-miphoneos-version-min=9.0', '-stdlib=libc++', '-I{}'.format(pj(self.buildEnv.install_dir, 'include'))],
|
||||
'host_machine': {
|
||||
'system': 'Darwin',
|
||||
'lsystem': 'darwin',
|
||||
|
|
|
@ -17,7 +17,7 @@ class Win32PlatformInfo(PlatformInfo):
|
|||
'binaries': self.binaries,
|
||||
'root_path': self.root_path,
|
||||
'extra_libs': self.extra_libs,
|
||||
'extra_cflags': ['-DWIN32'],
|
||||
'extra_cflags': ['-DWIN32', '-I{}'.format(pj(self.buildEnv.install_dir, 'include'))],
|
||||
'host_machine': {
|
||||
'system': 'Windows',
|
||||
'lsystem': 'windows',
|
||||
|
|
Loading…
Reference in New Issue