how to build on cmd line specifying "build configuration" ?
-
I have these custom-named "Build Configuations" specified in the GUI:
How do i choose which one is built when i invoke the compiler from the command line?(please don't ask why it's set up this way, and don't say "you're doing it wrong". what i'd like to know is: can i choose which one to compile from the command line. a valid answer is "sorry that's not possible")
-
@JoeCFD When i use the GUI, and say i select from the "configuration" menu
kJams 2 Debug
, then, when i go to the "Build" menu and chooseBuild Project "kJams_mac"
, i see this in the output:Project MESSAGE: ------------------------------ Project MESSAGE: build_type: debug Project MESSAGE: kJams 2 Debug 64bit
When i go to the command line and type this:
qmake kjams_mac.pro
I get this:
Project MESSAGE: ------------------------------ Project MESSAGE: build_type: release Project MESSAGE: kjams_mac 64bit
which is precisely what i do not want. i'm asking of there's some command to do something like this:
qmake kjams_mac.pro -BUILD_CONFIGURATION="kJams 2 Debug"
??
-
oooOOOOOooooh!!!! I see. I create the makefile in the GUI the normal way, then observe the command used to create it after it's been created. Good call, thanks for the answer!
BTW: the command line looks like this:
qmake -o Makefile ../kJams_mac.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=force_debug_info CONFIG+=separate_debug_info 'TARGET="kJams 2 Debug"' DEFINES+=kDEBUG DEFINES+=KJAMS_PRO DEFINES+=KJAMS_2
The reason it starts with "../" is i put it in a subdir of the .pro file so they don't all get tangled together.
-
This post is deleted!