Permalink
Browse files

Added ability to use only one generated dir

  • Loading branch information...
1 parent e1e7628 commit dd73bfa004e692483693d09f8d6bee06e617df09 @Rallaz Rallaz committed Feb 20, 2012
View
16 common.pro
@@ -1,12 +1,16 @@
# Store intermedia stuff somewhere else
-OBJECTS_DIR = generated/obj
-MOC_DIR = generated/moc
-RCC_DIR = generated/rcc
-UI_DIR = generated/ui
-UI_HEADERS_DIR = generated/ui
-UI_SOURCES_DIR = generated/ui
+isEmpty(GENERATED_DIR){
+ GENERATED_DIR = generated
+}
+ # Store intermedia stuff somewhere else
+OBJECTS_DIR = $${GENERATED_DIR}/obj
+MOC_DIR = $${GENERATED_DIR}/moc
+RCC_DIR = $${GENERATED_DIR}/rcc
+UI_DIR = $${GENERATED_DIR}/ui
+UI_HEADERS_DIR = $${GENERATED_DIR}/ui
+UI_SOURCES_DIR = $${GENERATED_DIR}/ui
# Copy command
View
1 libraries/dxflib/dxflib.pro
@@ -16,6 +16,7 @@ VERSION = 2.2.0.0
DLL_NAME = dxflib
TARGET = $$DLL_NAME
+GENERATED_DIR = ../../generated/lib/dxflib
# Use common project definitions.
include(../../settings.pro)
include(../../common.pro)
View
1 libraries/fparser/fparser.pro
@@ -16,6 +16,7 @@ VERSION = 4.3
DLL_NAME = fparser
TARGET = $$DLL_NAME
+GENERATED_DIR = ../../generated/lib/fparser
# Use common project definitions.
include(../../settings.pro)
include(../../common.pro)
View
1 libraries/jwwlib/jwwlib.pro
@@ -16,6 +16,7 @@ VERSION = 0.0.1
DLL_NAME = jwwlib
TARGET = $$DLL_NAME
+GENERATED_DIR = ../../generated/lib/jwwlib
# Use common project definitions.
include(../../settings.pro)
include(../../common.pro)
View
1 libraries/libdxfrw/libdxfrw.pro
@@ -16,6 +16,7 @@ VERSION = 0.0.1
DLL_NAME = dxfrw
TARGET = $$DLL_NAME
+GENERATED_DIR = ../../generated/lib/libdxfrw
# Use common project definitions.
include(../../settings.pro)
include(../../common.pro)
View
2 librecad/src/src.pro
@@ -18,6 +18,8 @@ SCMREVISION="2.0.0alpha2"
DEFINES += USE_DXFRW=1
+# Store intermedia stuff somewhere else
+GENERATED_DIR = ../../generated/librecad
# Use common project definitions.
include(../../settings.pro)
include(../../common.pro)
View
2 plugins/align/align.pro
@@ -10,6 +10,8 @@ CONFIG += plugin
VERSION = 1.0.1
PLUGIN_NAME=align
+# Store intermedia stuff somewhere else
+GENERATED_DIR = ../../generated/plugin/align
# Use common project definitions.
include(../../common.pro)
View
1 tools/ttf2lff/ttf2lff.pro
@@ -13,6 +13,7 @@ CONFIG -= app_bundle
TEMPLATE = app
DEFINES += VERSION="\"0.0.0.2\""
+GENERATED_DIR = ../../generated/tools/ttf2lff
# Use common project definitions.
include(../../settings.pro)
include(../../common.pro)

0 comments on commit dd73bfa

Please sign in to comment.