diff options
Diffstat (limited to 'mkspecs/features/mac/objective_c.prf')
-rw-r--r-- | mkspecs/features/mac/objective_c.prf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mkspecs/features/mac/objective_c.prf b/mkspecs/features/mac/objective_c.prf new file mode 100644 index 0000000..0a73af9 --- /dev/null +++ b/mkspecs/features/mac/objective_c.prf @@ -0,0 +1,24 @@ + +isEmpty(QMAKE_OBJECTIVE_CC):QMAKE_OBJECTIVE_CC = $$QMAKE_CC +isEmpty(QMAKE_OBJECTIVE_CFLAGS) { #bootstrap + QMAKE_OBJECTIVE_CFLAGS = $$QMAKE_CFLAGS + QMAKE_OBJECTIVE_CFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON + QMAKE_OBJECTIVE_CFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF + QMAKE_OBJECTIVE_CFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG + QMAKE_OBJECTIVE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE + QMAKE_OBJECTIVE_CFLAGS_X86 = $$QMAKE_CFLAGS_X86 + QMAKE_OBJECTIVE_CFLAGS_PPC = $$QMAKE_CFLAGS_PPC + QMAKE_OBJECTIVE_CFLAGS_HIDESYMS = $$QMAKE_CXXFLAGS_HIDESYMS +} +OBJECTIVE_C_OBJECTS_DIR = $$OBJECTS_DIR +isEmpty(OBJECTIVE_C_OBJECTS_DIR):OBJECTIVE_C_OBJECTS_DIR = . +isEmpty(QMAKE_EXT_OBJECTIVE_C):QMAKE_EXT_OBJECTIVE_C = .mm .m + +objective_c.dependency_type = TYPE_C +objective_c.variables = QMAKE_OBJECTIVE_CFLAGS +objective_c.commands = $$QMAKE_OBJECTIVE_CC -c $(QMAKE_COMP_QMAKE_OBJECTIVE_CFLAGS) $(DEFINES) $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} +objective_c.output = $$OBJECTIVE_C_OBJECTS_DIR/${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)} +objective_c.input = OBJECTIVE_SOURCES +objective_c.name = Compile ${QMAKE_FILE_IN} +silent:objective_c.commands = @echo objective-c ${QMAKE_FILE_IN} && $$objective_c.commands +QMAKE_EXTRA_COMPILERS += objective_c |