Skip to content

Instantly share code, notes, and snippets.

@void-main
Created April 15, 2013 02:01
Show Gist options
  • Save void-main/5385182 to your computer and use it in GitHub Desktop.
Save void-main/5385182 to your computer and use it in GitHub Desktop.
Generate the lib file list for Qt .pro file.
from os import listdir
from os.path import isfile, join
mypath = "/path/to/your/lib/folder"
onlyfiles = [ "-l" + f[:-4] for f in listdir(mypath) if (isfile(join(mypath,f)) and f.endswith(".lib")) ]
print " ".join(onlyfiles)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment