Skip to content

Commit

Permalink
pro: refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Mar 13, 2013
1 parent 4e12e4d commit 9acdb11
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
12 changes: 0 additions & 12 deletions common.pri
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,6 @@ win32-msvc* {
}

#################################functions#########################################
defineReplace(cleanPath) {
win32:1 ~= s|\\\\|/|g
contains(1, ^/.*):pfx = /
else:pfx =
segs = $$split(1, /)
out =
for(seg, segs) {
equals(seg, ..):out = $$member(out, 0, -2)
else:!equals(seg, .):out += $$seg
}
return($$join(out, /, $$pfx))
}

#Acts like qtLibraryTarget. From qtcreator.pri
defineReplace(qtLibName) {
Expand Down
7 changes: 0 additions & 7 deletions src/libQtAV.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ QT += core gui opengl
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG *= qtav-buildlib
CONFIG *= portaudio
#CONFIG *= openal
win32 {
CONFIG *= gdi
#TODO: link or dynamic link?
*msvc*: CONFIG *= direct2d #gcc may not have heeaders and libs
}

#var with '_' can not pass to pri?
STATICLINK = 0
Expand Down

0 comments on commit 9acdb11

Please sign in to comment.