Permalink
Browse files

Atualizado processo de compilação no Windows.

  • Loading branch information...
1 parent a30a8c7 commit 2289a9b6c85d40f6a475ff17aff97300205c9474 @rkhaotix rkhaotix committed Aug 31, 2012
Showing with 24 additions and 6 deletions.
  1. +1 −1 build/conf/pgmodeler.conf
  2. +1 −0 libobjrenderer/libobjrenderer.pro
  3. +9 −1 libpgmodeler_ui/libpgmodeler_ui.pro
  4. +13 −2 main/main.pro
  5. +0 −2 pgmodeler.pro
@@ -9,7 +9,7 @@
-->
<pgmodeler>
<configuration op-list-size="500"
- grid-size="20"
+ grid-size="20"
autosave-interval="10"
paper-type="4"
paper-orientation="landscape"
@@ -9,6 +9,7 @@ DEPENDPATH = ". src obj"
OBJECTS_DIR = obj
LIBS += $$DESTDIR/$$LIBUTIL \
+ $$DESTDIR/$$LIBPARSERS \
$$DESTDIR/$$LIBPGMODELER
HEADERS += $$PWD/src/objetografico.h \
@@ -15,7 +15,15 @@ DESTDIR = ../build/lib
CODECFORTR = UTF-8
RESOURCES += res/resources.qrc
-QMAKE_POST_LINK+= "cp res/icones/pgsqlModeler48x48.png ../build/pgmodeler.png"
+unix {
+ QMAKE_POST_LINK+= "cp res/icones/pgsqlModeler48x48.png ../build/pgmodeler.png"
+}
+
+windows {
+ DEST=..\\build
+ QMAKE_POST_LINK+= "copy res\\icones\\pgsqlModeler48x48.png $$DEST\\pgmodeler.png"
+}
+
QMAKE_DISTCLEAN+= "../build/pgmodeler.png"
LIBS = $$DESTDIR/$$LIBUTIL \
View
@@ -9,11 +9,22 @@ DEPENDPATH = ". moc obj"
OBJECTS_DIR = obj
DESTDIR = ../build/
+unix {
QMAKE_POST_LINK+= "cp -r ../schemas/ $$DESTDIR; \
cp -r ../conf/ $$DESTDIR; \
cp -r ../lang/ $$DESTDIR; \
- cp ../*.md $$DESTDIR; \
- cp ../LICENSE $$DESTDIR;"
+ cp -r ../*.md $$DESTDIR; \
+ cp -r ../LICENSE $$DESTDIR"
+}
+
+windows {
+DEST=..\\build
+QMAKE_POST_LINK+="xcopy ..\\schemas $$DEST\\schemas /S /I /Y /Q &" \
+ "xcopy ..\\conf $$DEST\\conf /S /I /Y /Q &" \
+ "xcopy ..\\lang $$DEST\\lang /S /I /Y /Q &" \
+ "copy ..\\*.md $$DEST /Y &" \
+ "copy ..\\LICENSE $$DEST /Y"
+}
QMAKE_DISTCLEAN+= "-r $$DESTDIR/schemas \
$$DESTDIR/conf \
View
@@ -1,7 +1,5 @@
CONFIG += ordered
TEMPLATE = subdirs
-TARGET = pgmodeler
-DESTDIR = build/
unix {
GLOBAL_INCLUDES = .\

0 comments on commit 2289a9b

Please sign in to comment.