QMake - Architecture specific conditional compilation
Hi, I’m wondering how I would conditionally include files in a project file, based on the architecture i’m building for. What I’d like to do is something like the following:
- unix {
- SOURCES += a.cpp
- SOURCES += b.cpp
- LIBS += -lfoo
- x86 {
- SOURCES += c_x86.cpp
- LIBS += -lbar
- }
- arm {
- SOURCES += c_arm.cpp
- }
- }
6 replies
You must log in to post a reply. Not a member yet? Register here!




