diff options
| author | 2014-12-06 17:33:25 -0500 | |
|---|---|---|
| committer | 2014-12-06 17:33:25 -0500 | |
| commit | 7167ce41b61d2ba2cdb526777a4233eb84a3b66a (patch) | |
| tree | a35c14143716e1f2c98f808c81f89426045a946f /SQLiteStudio3/utils.pri | |
Imported Upstream version 2.99.6upstream/2.99.6
Diffstat (limited to 'SQLiteStudio3/utils.pri')
| -rw-r--r-- | SQLiteStudio3/utils.pri | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/SQLiteStudio3/utils.pri b/SQLiteStudio3/utils.pri new file mode 100644 index 0000000..a689216 --- /dev/null +++ b/SQLiteStudio3/utils.pri @@ -0,0 +1,36 @@ +defineTest(copy_dir) { + #message("copying $$absolute_path($$1) to $$absolute_path($$2)"); + unix: { + system(cp -R $$quote($$1) $$quote($$2)) + } + win32: { + system(xcopy \"$$quote($$1)\" \"$$quote($$2)\" /s /e /y /q /i) + } +} + +defineTest(copy_file) { + #message("copying $$absolute_path($$1) to $$absolute_path($$2)"); + unix: { + system(cp $$quote($$1) $$quote($$2)) + } + win32: { + system(copy \"$$quote($$1)\" \"$$quote($$2)\" /y) + } +} + +# This would be better way, but targets defined inside of test function are not visible outside +# and they cannot be exported. I need to find another way to do this. +# +#defineTest(copy_file) { +# message("copying $$absolute_path($$1) to $$absolute_path($$2)"); +# unix: { +# copy_target.commands = cp $$quote($$absolute_path($$1)) $$quote($$absolute_path($$2)) +# } +# win32: { +# copy_target.commands = copy $$quote($$absolute_path($$1)) $$quote($$absolute_path($$2)) /y +# } +# QMAKE_EXTRA_TARGETS += copy_target +# PRE_TARGETDEPS += copy_target +# export(PRE_TARGETDEPS) +# export(QMAKE_EXTRA_TARGETS) +#} |
