diff --git a/.gitignore b/.gitignore index 378eac2..1682ae2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +*.swp +*~ build diff --git a/meson.build b/meson.build index 4bc98de..56f0f0d 100644 --- a/meson.build +++ b/meson.build @@ -1,43 +1,45 @@ # Project name, programming language and version project ( 'com.github.writeas.writeas-gtk', 'c', 'vala', version: '1.0.2', ) # GNOME module gnome = import ('gnome') # Translation module i18n = import ('i18n') # Project arguments add_project_arguments ( '-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name ()), language: 'c' ) # Listing dependencies dependencies = [ dependency ('gtk+-3.0'), dependency ('gtksourceview-3.0') ] +run_target('build', command: 'meson/build-cli.sh') + subdir ('src') # Define executable executable ( meson.project_name (), sources, dependencies: dependencies, install: true ) subdir ('data') subdir ('po') subdir ('fonts/lora') meson.add_install_script ('meson/post_install.py') diff --git a/meson/build-cli.sh b/meson/build-cli.sh new file mode 100755 index 0000000..c42d042 --- /dev/null +++ b/meson/build-cli.sh @@ -0,0 +1,3 @@ +echo "Building $exec_name CLI…" +gb build github.com/writeas/writeas-cli/cmd/writeas && +echo "Success."