place source code files to src directory

This commit is contained in:
Nikolay Brovko 2020-01-24 16:02:38 +03:00
parent 397f225fa8
commit 6803ef84a5
No known key found for this signature in database
GPG Key ID: 32258A3DEC9B6F07
4 changed files with 19 additions and 17 deletions

View File

@ -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
```

View File

@ -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')

View File

@ -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
View 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'),
]
)