Build system: Make npm optional
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ INSTALL_DIR = get_option('datadir') / 'gnome-shell' / 'extensions' / UUID
|
|||||||
gnome = import('gnome')
|
gnome = import('gnome')
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
|
|
||||||
npm_exe = find_program('npm')
|
npm_exe = find_program('npm', required: false)
|
||||||
if npm_exe.found()
|
if npm_exe.found()
|
||||||
run_target('dev', command: [ npm_exe, 'install', '--save-dev' ])
|
run_target('dev', command: [ npm_exe, 'install', '--save-dev' ])
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user