place source code files to src directory
This commit is contained in:
parent
397f225fa8
commit
6803ef84a5
@ -8,5 +8,5 @@ Now support Arch and Debian based Linux (OpenRC and SystemD).
|
||||
git clone https://git.macaw.me/plant_1312/Yggtk.git && cd Yggtk
|
||||
meson build
|
||||
ninja -C build
|
||||
./build/yggtk
|
||||
./build/src/yggtk
|
||||
```
|
||||
|
16
meson.build
16
meson.build
@ -8,18 +8,4 @@ pkg = import('pkgconfig')
|
||||
gnome = import('gnome')
|
||||
|
||||
subdir('data')
|
||||
|
||||
yggtk = executable(
|
||||
meson.project_name(),
|
||||
[
|
||||
'main.vala',
|
||||
] + yggtk_resources,
|
||||
dependencies: [
|
||||
dependency('gtk+-3.0'),
|
||||
dependency('json-glib-1.0'),
|
||||
],
|
||||
vala_args: [
|
||||
'--gresources',
|
||||
join_paths(meson.source_root(), 'data', 'org.yggtk.yggtk.gresource.xml'),
|
||||
]
|
||||
)
|
||||
subdir('src')
|
||||
|
@ -134,7 +134,7 @@ int update () {
|
||||
Process.spawn_command_line_sync (@"git clone $repo_url $temp_dir");
|
||||
Process.spawn_command_line_sync (@"meson $temp_dir/build $temp_dir");
|
||||
Process.spawn_command_line_sync (@"ninja -C $temp_dir/build");
|
||||
Process.spawn_command_line_sync (@"cp $temp_dir/build/yggtk .");
|
||||
Process.spawn_command_line_sync (@"cp $temp_dir/build/src/yggtk .");
|
||||
Process.spawn_command_line_sync (@"rm -rf $temp_dir");
|
||||
Process.spawn_command_line_sync ("./yggtk");
|
||||
|
16
src/meson.build
Normal file
16
src/meson.build
Normal file
@ -0,0 +1,16 @@
|
||||
yggtk_sources = [
|
||||
'main.vala',
|
||||
]
|
||||
|
||||
yggtk = executable(
|
||||
meson.project_name(),
|
||||
yggtk_sources + yggtk_resources,
|
||||
dependencies: [
|
||||
dependency('gtk+-3.0'),
|
||||
dependency('json-glib-1.0'),
|
||||
],
|
||||
vala_args: [
|
||||
'--gresources',
|
||||
join_paths(meson.source_root(), 'data', 'org.yggtk.yggtk.gresource.xml'),
|
||||
]
|
||||
)
|
Loading…
Reference in New Issue
Block a user