mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-06 07:15:53 -04:00
默认不生成文件在家目录
This commit is contained in:
parent
53bf73d8a2
commit
a0eda93e6c
1 changed files with 22 additions and 22 deletions
44
meson.build
44
meson.build
|
|
@ -4,28 +4,28 @@ project('maomao', ['c', 'cpp'],
|
||||||
|
|
||||||
subdir('protocols')
|
subdir('protocols')
|
||||||
|
|
||||||
fs = import('fs')
|
# fs = import('fs')
|
||||||
|
#
|
||||||
# 获取用户的主目录
|
# # 获取用户的主目录
|
||||||
home_dir = run_command('sh', '-c', 'echo $HOME', check: true).stdout().strip()
|
# home_dir = run_command('sh', '-c', 'echo $HOME', check: true).stdout().strip()
|
||||||
config_dir = join_paths(home_dir, '.config', 'maomao')
|
# config_dir = join_paths(home_dir, '.config', 'maomao')
|
||||||
|
#
|
||||||
# 如果目标目录不存在,则创建它
|
# # 如果目标目录不存在,则创建它
|
||||||
if not fs.is_dir(config_dir)
|
# if not fs.is_dir(config_dir)
|
||||||
run_command('mkdir', '-p', config_dir, check: true)
|
# run_command('mkdir', '-p', config_dir, check: true)
|
||||||
endif
|
# endif
|
||||||
|
#
|
||||||
# 拷贝 config.conf
|
# # 拷贝 config.conf
|
||||||
config_file = join_paths(config_dir, 'config.conf')
|
# config_file = join_paths(config_dir, 'config.conf')
|
||||||
if not fs.exists(config_file)
|
# if not fs.exists(config_file)
|
||||||
run_command('cp', 'config.conf', config_file, check: true)
|
# run_command('cp', 'config.conf', config_file, check: true)
|
||||||
endif
|
# endif
|
||||||
|
#
|
||||||
# 拷贝 autostart.sh
|
# # 拷贝 autostart.sh
|
||||||
autostart_file = join_paths(config_dir, 'autostart.sh')
|
# autostart_file = join_paths(config_dir, 'autostart.sh')
|
||||||
if not fs.exists(autostart_file)
|
# if not fs.exists(autostart_file)
|
||||||
run_command('cp', 'autostart.sh', autostart_file, check: true)
|
# run_command('cp', 'autostart.sh', autostart_file, check: true)
|
||||||
endif
|
# endif
|
||||||
|
|
||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
libm = cc.find_library('m')
|
libm = cc.find_library('m')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue