Browse Source

Add .pri.

Girish Ramakrishnan 10 years ago
parent
commit
b48a232aa9
2 changed files with 22 additions and 19 deletions
  1. 20 0
      npploader.pri
  2. 2 19
      npploader.pro

+ 20 - 0
npploader.pri

@@ -0,0 +1,20 @@
+DEPENDPATH += $${PWD} moz-sdk
+CONFIG += link_pkgconfig debug
+INCLUDEPATH += $${PWD} $${PWD}/moz-sdk
+PKGCONFIG += nspr gtk+-2.0 gdk-2.0 gdk-x11-2.0
+LIBS += -lnspr4
+DEFINES += MOZ_X11
+
+# Input
+VPATH = $${PWD}
+SOURCES += npnimpl.cpp \
+           stream.cpp \
+           x11embedcontainer.cpp \
+           x11windowlesscontainer.cpp
+
+HEADERS += npnimpl.h \
+           stream.h \
+           x11embedcontainer.h \
+           x11windowlesscontainer.h
+
+DEFINES += GRAB_BS

+ 2 - 19
npploader.pro

@@ -1,23 +1,6 @@
 TEMPLATE = app
 TARGET = 
-DEPENDPATH += .
-DEPENDPATH += . moz-sdk
-CONFIG += link_pkgconfig debug
-INCLUDEPATH += . moz-sdk
-PKGCONFIG += nspr gtk+-2.0 gdk-2.0 gdk-x11-2.0
-LIBS += -lnspr4
-DEFINES += MOZ_X11
+include(npploader.pri)
 
-# Input
-SOURCES += main.cpp \
-           npnimpl.cpp \
-           stream.cpp \
-           x11embedcontainer.cpp \
-           x11windowlesscontainer.cpp
+SOURCES += main.cpp
 
-HEADERS += npnimpl.h \
-           stream.h \
-           x11embedcontainer.h \
-           x11windowlesscontainer.h
-
-DEFINES += GRAB_BS