Skip to content

Instantly share code, notes, and snippets.

@Wohlstand
Created April 18, 2015 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wohlstand/9d8bda938e408fb4bc8b to your computer and use it in GitHub Desktop.
Save Wohlstand/9d8bda938e408fb4bc8b to your computer and use it in GitHub Desktop.
Don't flood build directory with object files
android:{
ARCH=android_arm
} else {
!contains(QMAKE_TARGET.arch, x86_64) {
ARCH=x32
} else {
ARCH=x64
}
}
static: {
LINKTYPE=static
} else {
LINKTYPE=dynamic
}
debug: BUILDTP=debug
release: BUILDTP=release
OBJECTS_DIR = $$DESTDIR/_build_$$ARCH/$$TARGET/_$$BUILDTP/.obj
MOC_DIR = $$DESTDIR/_build_$$ARCH/$$TARGET/_$$BUILDTP/.moc
RCC_DIR = $$DESTDIR/_build_$$ARCH/$$TARGET/_$$BUILDTP/.rcc
UI_DIR = $$DESTDIR/_build_$$ARCH/$$TARGET/_$$BUILDTP/.ui
message("$$TARGET will be built as $$BUILDTP $$ARCH ($$QMAKE_TARGET.arch) $${LINKTYPE}ally in $$OBJECTS_DIR")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment