Skip to content

Commit

Permalink
meson: configure local build launchers if buildtype is set to debug
Browse files Browse the repository at this point in the history
    * change CLI local launcher name to `local-gradience-cli`
  • Loading branch information
tfuxu committed Feb 11, 2023
1 parent bd0fb4a commit 75d2a89
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions gradience/frontend/cli/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ configure_file(
install_dir: get_option('bindir')
)

configure_file(
input: 'cli.in',
output: 'gradience-cli',
configuration: local_conf,
install_dir: join_paths(meson.project_build_root(), 'gradience', 'frontend')
)
if get_option('buildtype') == 'debug'
configure_file(
input: 'cli.in',
output: 'local-gradience-cli',
configuration: local_conf,
install_dir: join_paths(meson.project_build_root(), 'gradience', 'frontend')
)
endif

gradience_sources = [
'__init__.py'
Expand Down
12 changes: 7 additions & 5 deletions gradience/frontend/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ configure_file(
install_dir: get_option('bindir')
)

configure_file(
input: 'gradience.in',
output: 'local-gradience',
configuration: local_conf
)
if get_option('buildtype') == 'debug'
configure_file(
input: 'gradience.in',
output: 'local-gradience',
configuration: local_conf
)
endif

subdir('cli')
subdir('dialogs')
Expand Down
2 changes: 1 addition & 1 deletion local_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

python builddir/gradience/frontend/gradience-cli "$@"
python builddir/gradience/frontend/local-gradience-cli "$@"

0 comments on commit 75d2a89

Please sign in to comment.