Skip to content

Instantly share code, notes, and snippets.

@hellwolf
Created December 24, 2010 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellwolf/754446 to your computer and use it in GitHub Desktop.
Save hellwolf/754446 to your computer and use it in GitHub Desktop.
qmake map function
defineReplace(map) {
vname = $$1
fs = $$2
eval(v = \$\$$$vname)
for(f, fs) {
eval(v = \$\$$${f}(v))
}
return ($$v)
}
TOP_DIR = $$map(PWD, dirname dirname dirname dirname)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment