| 1 | libfiles = [ |
| 2 | 'about.tcl', |
| 3 | 'blame.tcl', |
| 4 | 'branch_checkout.tcl', |
| 5 | 'branch_create.tcl', |
| 6 | 'branch_delete.tcl', |
| 7 | 'branch_rename.tcl', |
| 8 | 'branch.tcl', |
| 9 | 'browser.tcl', |
| 10 | 'checkout_op.tcl', |
| 11 | 'choose_font.tcl', |
| 12 | 'choose_repository.tcl', |
| 13 | 'choose_rev.tcl', |
| 14 | 'chord.tcl', |
| 15 | 'class.tcl', |
| 16 | 'commit.tcl', |
| 17 | 'console.tcl', |
| 18 | 'database.tcl', |
| 19 | 'date.tcl', |
| 20 | 'diff.tcl', |
| 21 | 'encoding.tcl', |
| 22 | 'error.tcl', |
| 23 | 'index.tcl', |
| 24 | 'line.tcl', |
| 25 | 'logo.tcl', |
| 26 | 'merge.tcl', |
| 27 | 'mergetool.tcl', |
| 28 | 'option.tcl', |
| 29 | 'remote_add.tcl', |
| 30 | 'remote_branch_delete.tcl', |
| 31 | 'remote.tcl', |
| 32 | 'search.tcl', |
| 33 | 'shortcut.tcl', |
| 34 | 'spellcheck.tcl', |
| 35 | 'sshkey.tcl', |
| 36 | 'status_bar.tcl', |
| 37 | 'themed.tcl', |
| 38 | 'tools_dlg.tcl', |
| 39 | 'tools.tcl', |
| 40 | 'transport.tcl', |
| 41 | 'win32.tcl', |
| 42 | ] |
| 43 | |
| 44 | nontcl_libfiles = [ |
| 45 | 'git-gui.ico', |
| 46 | 'win32_shortcut.js', |
| 47 | ] |
| 48 | |
| 49 | foreach file : libfiles + nontcl_libfiles |
| 50 | configure_file( |
| 51 | input: file, |
| 52 | output: file, |
| 53 | copy: true, |
| 54 | install: true, |
| 55 | install_dir: get_option('datadir') / 'git-gui/lib', |
| 56 | ) |
| 57 | endforeach |
| 58 | |
| 59 | custom_target( |
| 60 | output: 'tclIndex', |
| 61 | command: [ |
| 62 | shell, |
| 63 | meson.project_source_root() / 'generate-tclindex.sh', |
| 64 | meson.project_build_root(), |
| 65 | meson.project_build_root() / 'GIT-GUI-BUILD-OPTIONS', |
| 66 | libfiles, |
| 67 | ], |
| 68 | depend_files: [ |
| 69 | libfiles, |
| 70 | build_options, |
| 71 | ], |
| 72 | install: true, |
| 73 | install_dir: get_option('datadir') / 'git-gui/lib', |
| 74 | ) |