From 4c5b7d437a5bf71c17941202395c7e56cdcc900b Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 01 Nov 2002 00:24:02 +0000 Subject: Adding spec files for qmake :) --- (limited to 'mkspecs/macx-mwerks') diff --git a/mkspecs/macx-mwerks/mwerkstmpl.xml b/mkspecs/macx-mwerks/mwerkstmpl.xml new file mode 100644 index 0000000..462deac --- a/dev/null +++ b/mkspecs/macx-mwerks/mwerkstmpl.xml @@ -0,0 +1,826 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + $$TARGET_STEM + + + + UserSourceTrees + + + AlwaysSearchUserPathsfalse + InterpretDOSAndUnixPathstrue + RequireFrameworkStyleIncludestrue + UserSearchPaths + + SearchPath + Path: + PathFormatMacOS + PathRootProject + + Recursivetrue + HostFlagsAll + + + SystemSearchPaths + + SearchPath + Path:usr:include: + PathFormatMacOS + PathRootOS X Volume + + Recursivefalse + HostFlagsAll + + + SearchPath + Path:usr:include:sys: + PathFormatMacOS + PathRootOS X Volume + + Recursivefalse + HostFlagsAll + + + SearchPath + Path:MSL:MSL_C:MSL_MacOS:Include: + PathFormatMacOS + PathRootCodeWarrior + + HostFlagsAll + + + SearchPath + Path:MSL:MSL_C++:MSL_Common:Include: + PathFormatMacOS + PathRootCodeWarrior + + HostFlagsAll + + + SearchPath + Path:MSL:MSL_C:MSL_Common:Include: + PathFormatMacOS + PathRootCodeWarrior + + HostFlagsAll + +$$CODEWARRIOR_DEPENDPATH +$$CODEWARRIOR_INCLUDEPATH + + SearchPath + Path:usr:lib: + PathFormatMacOS + PathRootOS X Volume + + Recursivetrue + HostFlagsAll + + + SearchPath + Path:MacOS X Support:Libraries:Runtime:Libs: + PathFormatMacOS + PathRootCodeWarrior + + HostFlagsAll + + + SearchPath + Path:MSL:MSL_C++:MSL_MacOS:Lib:Mach-O: + PathFormatMacOS + PathRootCodeWarrior + + HostFlagsAll + +$$CODEWARRIOR_FRAMEWORKPATH + + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + QTDIR=$$CODEWARRIOR_QTDIR + + + + Linker$$CODEWARRIOR_LINKER + PreLinker + PostLinker + Targetname$$TARGET_STEM + OutputDirectory +$$CODEWARRIOR_OUTPUT_DIR + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + + FileTypeAPPL + FileExtension + Compiler + EditLanguage + Precompilefalse + Launchabletrue + ResourceFiletrue + IgnoredByMakefalse + + + FileTypeAppl + FileExtension + Compiler + EditLanguage + Precompilefalse + Launchabletrue + ResourceFiletrue + IgnoredByMakefalse + + + FileTypeMDYL + FileExtension + CompilerLib Import Mach-O + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeMLIB + FileExtension + CompilerLib Import Mach-O + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeMMLB + FileExtension + CompilerLib Import Mach-O + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeMPLF + FileExtension + CompilerLib Import Mach-O + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeMWCD + FileExtension + Compiler + EditLanguage + Precompilefalse + Launchabletrue + ResourceFiletrue + IgnoredByMakefalse + + + FileTypeRSRC + FileExtension + CompilerRez + EditLanguage + Precompilefalse + Launchabletrue + ResourceFiletrue + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.c + CompilerMW C/C++ MachPPC + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.c++ + CompilerMW C/C++ MachPPC + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerMW C/C++ MachPPC + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cp + CompilerMW C/C++ MachPPC + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerMW C/C++ MachPPC + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.exp + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerMW C/C++ MachPPC + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch + CompilerMW C/C++ MachPPC + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pch++ + CompilerMW C/C++ MachPPC + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.r + CompilerRez + EditLanguageRez + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypedocu + FileExtension + Compiler + EditLanguage + Precompilefalse + Launchabletrue + ResourceFiletrue + IgnoredByMakefalse + + + FileTypersrc + FileExtension + CompilerRez + EditLanguage + Precompilefalse + Launchabletrue + ResourceFiletrue + IgnoredByMakefalse + + + FileExtension.doc + Compiler + EditLanguage + Precompilefalse + Launchabletrue + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.lib + CompilerLib Import Mach-O + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeshlb + FileExtension + CompilerPEF Import PPC + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dylib + CompilerLib Import Mach-O + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.moc + CompilerMW C/C++ MachPPC + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + + + CacheModDates$$CODEWARRIOR_CACHEMODDATES + ActivateBrowserfalse + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + + + LogSystemMessagesfalse + AutoTargetDLLsfalse + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatGeneric + PathRootAbsolute + + StopAtTempBPOnLaunchtrue + CacheSymbolicstrue + TempBPFunctionNamemain + TempBPTypefalse + + + Enabledfalse + ConnectionName + DownloadPath + LaunchRemoteAppfalse + RemoteAppPath + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + MWCodeGen_MachO_structalignmentPPC + MWCodeGen_MachO_tracebacktablesInline + MWCodeGen_MachO_processorGeneric + MWCodeGen_MachO_readonlystrings0 + MWCodeGen_MachO_profiler0 + MWCodeGen_MachO_fpcontract1 + MWCodeGen_MachO_schedule0 + MWCodeGen_MachO_peephole0 + MWCodeGen_MachO_processorspecific0 + MWCodeGen_MachO_altivec0 + MWCodeGen_MachO_vrsave1 + MWCodeGen_MachO_common0 + MWCodeGen_MachO_implicit_templates1 + + + MWFrontEnd_C_cplusplus1 + MWFrontEnd_C_checkprotos0 + MWFrontEnd_C_arm0 + MWFrontEnd_C_trigraphs0 + MWFrontEnd_C_onlystdkeywords0 + MWFrontEnd_C_enumsalwaysint0 + MWFrontEnd_C_mpwpointerstyle0 + MWFrontEnd_C_prefixname$$CODEWARRIOR_PREFIX_HEADER + MWFrontEnd_C_ansistrict0 + MWFrontEnd_C_mpwcnewline0 + MWFrontEnd_C_wchar_type0 + MWFrontEnd_C_enableexceptions0 + MWFrontEnd_C_dontreusestrings0 + MWFrontEnd_C_poolstrings0 + MWFrontEnd_C_dontinline1 + MWFrontEnd_C_useRTTI0 + MWFrontEnd_C_multibyteaware0 + MWFrontEnd_C_unsignedchars0 + MWFrontEnd_C_autoinline0 + MWFrontEnd_C_booltruefalse1 + MWFrontEnd_C_direct_to_som0 + MWFrontEnd_C_som_env_check0 + MWFrontEnd_C_alwaysinline0 + MWFrontEnd_C_inlinelevel0 + MWFrontEnd_C_ecplusplus0 + MWFrontEnd_C_objective_c0 + MWFrontEnd_C_defer_codegen0 + + + MWWarning_C_warn_illpragma$$CODEWARRIOR_WARNING + MWWarning_C_warn_emptydecl$$CODEWARRIOR_WARNING + MWWarning_C_warn_possunwant$$CODEWARRIOR_WARNING + MWWarning_C_warn_unusedvar$$CODEWARRIOR_WARNING + MWWarning_C_warn_unusedarg$$CODEWARRIOR_WARNING + MWWarning_C_warn_extracomma$$CODEWARRIOR_WARNING + MWWarning_C_pedantic$$CODEWARRIOR_WARNING + MWWarning_C_warningerrors0 + MWWarning_C_warn_hidevirtual$$CODEWARRIOR_WARNING + MWWarning_C_warn_implicitconv$$CODEWARRIOR_WARNING + MWWarning_C_warn_notinlined$$CODEWARRIOR_WARNING + MWWarning_C_warn_structclass$$CODEWARRIOR_WARNING + + + MWFTP_Post_hostName + MWFTP_Post_username + MWFTP_Post_password0 + MWFTP_Post_remoteDir + MWFTP_Post_ftp_PathVersion1 + MWFTP_Post_ftp_PathType0 + MWFTP_Post_ftp_PathFormat0 + MWFTP_Post_ftp_tree + MWFTP_Post_uploadDir + MWFTP_Post_ftp_port21 + MWFTP_Post_SendBin1 + MWFTP_Post_ShouldLog1 + + + MWMerge_MacOS_projectType$$CODEWARRIOR_TEMPLATE + MWMerge_MacOS_outputNameMerge Out + MWMerge_MacOS_outputCreatorCUTE + MWMerge_MacOS_outputType$$CODEWARRIOR_FILETYPE + MWMerge_MacOS_suppressWarning$$CODEWARRIOR_WARNING + MWMerge_MacOS_copyFragments1 + MWMerge_MacOS_copyResources1 + MWMerge_MacOS_flattenResource0 + MWMerge_MacOS_flatFileName$$TARGET_STEM.rsrc + MWMerge_MacOS_flatFileOutputPath + Path: + PathFormatMacOS + PathRootProject + + MWMerge_MacOS_skipResources + DLGX + ckid + Proj + WSPC + + + + FileLockedfalse + ResourcesMapIsReadOnlyfalse + PrinterDriverIsMultiFinderCompatiblefalse + Invisiblefalse + HasBundlefalse + NameLockedfalse + Stationeryfalse + HasCustomIconfalse + Sharedfalse + HasBeenInitedfalse + Label0 + Comments + +$$CODEWARRIOR_PACKAGER_PANEL + + + MWCodeGen_PPC_structalignmentPPC + MWCodeGen_PPC_tracebacktablesNone + MWCodeGen_PPC_processorGeneric + MWCodeGen_PPC_readonlystrings0 + MWCodeGen_PPC_tocdata1 + MWCodeGen_PPC_profiler0 + MWCodeGen_PPC_fpcontract1 + MWCodeGen_PPC_schedule1 + MWCodeGen_PPC_peephole1 + MWCodeGen_PPC_processorspecific0 + MWCodeGen_PPC_altivec0 + MWCodeGen_PPC_vectortocdata0 + MWCodeGen_PPC_vrsave1 + + + MWCodeGen_MachO_structalignmentPPC + MWCodeGen_MachO_tracebacktablesNone + MWCodeGen_MachO_processorGeneric + MWCodeGen_MachO_readonlystrings0 + MWCodeGen_MachO_profiler0 + MWCodeGen_MachO_fpcontract1 + MWCodeGen_MachO_schedule1 + MWCodeGen_MachO_peephole1 + MWCodeGen_MachO_processorspecific0 + MWCodeGen_MachO_altivec0 + MWCodeGen_MachO_vrsave1 + MWCodeGen_MachO_common0 + MWCodeGen_MachO_implicit_templates1 + + + MWDisassembler_PPC_showcode1 + MWDisassembler_PPC_extended1 + MWDisassembler_PPC_mix1 + MWDisassembler_PPC_nohex0 + MWDisassembler_PPC_showdata1 + MWDisassembler_PPC_showexceptions1 + MWDisassembler_PPC_showsym0 + MWDisassembler_PPC_shownames1 + + + GlobalOptimizer_PPC_optimizationlevelLevel0 + GlobalOptimizer_PPC_optforSpeed + + + MWLinker_PPC_linksym0 + MWLinker_PPC_symfullpath1 + MWLinker_PPC_linkmap0 + MWLinker_PPC_nolinkwarnings0 + MWLinker_PPC_dontdeadstripinitcode0 + MWLinker_PPC_permitmultdefs0 + MWLinker_PPC_linkmodeFast + MWLinker_PPC_initname + MWLinker_PPC_mainname$$CODEWARRIOR_ENTRYPOINT + MWLinker_PPC_termname + MWLinker_MachO_twolevelnamespace1 + MWLinker_MachO_stripdebugsymbols0 + + + MWLinker_MachO_exportsAll + MWLinker_MachO_mainname$$CODEWARRIOR_ENTRYPOINT + MWLinker_MachO_currentversion$$CODEWARRIOR_VERSION + MWLinker_MachO_compatibleversion$$CODEWARRIOR_VERSION + MWLinker_MachO_symfullpath0 + MWLinker_MachO_supresswarnings$$!CODEWARRIOR_WARNING + MWLinker_MachO_multisymerror0 + MWLinker_MachO_prebind0 + MWLinker_MachO_objectivecsemantics0 + MWLinker_MachO_whichfileloaded0 + MWLinker_MachO_whyfileloaded0 + MWLinker_MachO_readonlyrelocsErrors + MWLinker_MachO_undefinedsymbolsErrors + + + MWProject_MachO_type$$CODEWARRIOR_TEMPLATE + MWProject_MachO_outfile$$TARGET + MWProject_MachO_filecreatorCUTE + MWProject_MachO_filetype$$CODEWARRIOR_FILETYPE + MWProject_MachO_stacksize64 + MWProject_MachO_stackaddress0 + MWProject_MachO_flatrsrc0 + MWProject_MachO_flatrsrcfilename$$TARGET_STEM.rsrc + MWProject_MachO_flatrsrcoutputdir + Path: + PathFormatMacOS + PathRootProject + + + + MWPEF_exportsNone + MWPEF_libfolder0 + MWPEF_sortcodeNone + MWPEF_expandbss0 + MWPEF_sharedata0 + MWPEF_olddefversion0 + MWPEF_oldimpversion0 + MWPEF_currentversion0 + MWPEF_fragmentname + MWPEF_collapsereloads1 + + + MWProject_PPC_type$$CODEWARRIOR_TEMPLATE + MWProject_PPC_outfile$$TARGET + MWProject_PPC_filecreatorCUTE + MWProject_PPC_filetype$$FILTYPE + MWProject_PPC_size800 + MWProject_PPC_minsize600 + MWProject_PPC_stacksize64 + MWProject_PPC_flags22720 + MWProject_PPC_symfilename + MWProject_PPC_rsrcname + MWProject_PPC_rsrcheaderNative + MWProject_PPC_rsrctype???? + MWProject_PPC_rsrcid0 + MWProject_PPC_rsrcflags0 + MWProject_PPC_rsrcstore0 + MWProject_PPC_rsrcmerge0 + MWProject_PPC_flatrsrc0 + MWProject_PPC_flatrsrcoutputdir + Path: + PathFormatMacOS + PathRootProject + + MWProject_PPC_flatrsrcfilename + + + MWAssembler_PPC_auxheader0 + MWAssembler_PPC_symmodeMac + MWAssembler_PPC_dialectPPC + MWAssembler_PPC_prefixfile + MWAssembler_PPC_typecheck0 + MWAssembler_PPC_warnings0 + MWAssembler_PPC_casesensitive0 + + + MWRez_Language_maxwidth80 + MWRez_Language_scriptRoman + MWRez_Language_alignmentAlign1 + MWRez_Language_filtermodeFilterSkip + MWRez_Language_suppresswarnings$$CODEWARRIOR_WARNING + MWRez_Language_escapecontrolchars1 + MWRez_Language_prefixname + MWRez_Language_filteredtypes'CODE' 'DATA' 'PICT' + + +$$CODEWARRIOR_QPREPROCESS +$$CODEWARRIOR_QPREPROCESSOUT +$$CODEWARRIOR_LIBRARIES +$$CODEWARRIOR_SOURCES +$$CODEWARRIOR_HEADERS + + Name + MSL_C++_Mach-O.a + MacOS + Library + Debug + + + Name + MSL_Runtime_Mach-O.a + MacOS + Library + Debug + + + +$$CODEWARRIOR_QPREPROCESS_LINKORDER +$$CODEWARRIOR_SOURCES_LINKORDER +$$CODEWARRIOR_HEADERS_LINKORDER +$$CODEWARRIOR_LIBRARIES_LINKORDER +$$CODEWARRIOR_QPREPROCESSOUT_LINKORDER + + Name + MSL_C++_Mach-O.a + MacOS + + + Name + MSL_Runtime_Mach-O.a + MacOS + + + +$$CODEWARRIOR_FRAMEWORKS + + + + + + $$TARGET_STEM + + + + Sources +$$CODEWARRIOR_HEADERS_GROUP +$$CODEWARRIOR_SOURCES_GROUP + + Libraries +$$CODEWARRIOR_LIBRARIES_GROUP + + $$TARGET_STEM + Name + MSL_C++_Mach-O.a + MacOS + + + $$TARGET_STEM + Name + MSL_Runtime_Mach-O.a + MacOS + + + QtGenerated +$$CODEWARRIOR_QPREPROCESS_GROUP +$$CODEWARRIOR_QPREPROCESSOUT_GROUP + + + + diff --git a/mkspecs/macx-mwerks/qmake.conf b/mkspecs/macx-mwerks/qmake.conf new file mode 100644 index 0000000..7f2770e --- a/dev/null +++ b/mkspecs/macx-mwerks/qmake.conf @@ -0,0 +1,24 @@ +# +# $Id$ +# +# qmake configuration for macx-mwerks (Mac OS X + Metrowerks compiler) +# + +MAKEFILE_GENERATOR = METROWERKS +TEMPLATE = app +CONFIG += qt release warn_off separate_volume + +DEFINES += QT_NO_STL __MACOSX__ __CF_USE_FRAMEWORK_INCLUDES__ + +CODEWARRIOR_LINKER = Mach-O PPC Linker +QMAKE_EXTENSION_SHLIB = dylib +QMAKE_VOLUMENAME = OS X Volume +FRAMEWORKPATH = {System}/Library/Frameworks/ +QMAKE_CRT_OBJECTS = crt1.o +QMAKE_INCDIR_QT = $(QTDIR)/include +QMAKE_LIBS = -framework System +QMAKE_LIBS_QT = -L$(QTDIR)/lib/ -lqt +QMAKE_INCDIR_OPENGL = /System/Library/Frameworks/OpenGL.framework/Headers \ + /System/Library/Frameworks/AGL.framework/Headers/ +QMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL +QMAKE_LIBS_OPENGL_QT = $$QMAKE_LIBS_OPENGL diff --git a/mkspecs/macx-mwerks/qplatformdefs.h b/mkspecs/macx-mwerks/qplatformdefs.h new file mode 100644 index 0000000..d7d895f --- a/dev/null +++ b/mkspecs/macx-mwerks/qplatformdefs.h @@ -0,0 +1,79 @@ +#ifndef QPLATFORMDEFS_H +#define QPLATFORMDEFS_H + +// Get Qt defines/settings + +#include "qglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +#include + + +// We are hot - unistd.h should have turned on the specific APIs we requested + + +#ifdef QT_THREAD_SUPPORT +#include +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#define QT_NO_LIBRARY_UNLOAD + +// DNS header files are not fully covered by X/Open specifications. +// In particular nothing is said about res_* :/ +// On BSDs header files and are not +// included by . Note that must be included +// before . +#include +#include +#include + + +#if !defined(QT_NO_COMPAT) +#define QT_STATBUF struct stat +#define QT_STATBUF4TSTAT struct stat +#define QT_STAT ::stat +#define QT_FSTAT ::fstat +#define QT_STAT_REG S_IFREG +#define QT_STAT_DIR S_IFDIR +#define QT_STAT_MASK S_IFMT +#define QT_STAT_LNK S_IFLNK +#define QT_FILENO fileno +#define QT_OPEN ::open +#define QT_CLOSE ::close +#define QT_LSEEK ::lseek +#define QT_READ ::read +#define QT_WRITE ::write +#define QT_ACCESS ::access +#define QT_GETCWD ::getcwd +#define QT_CHDIR ::chdir +#define QT_MKDIR ::mkdir +#define QT_RMDIR ::rmdir +#define QT_OPEN_RDONLY O_RDONLY +#define QT_OPEN_WRONLY O_WRONLY +#define QT_OPEN_RDWR O_RDWR +#define QT_OPEN_CREAT O_CREAT +#define QT_OPEN_TRUNC O_TRUNC +#define QT_OPEN_APPEND O_APPEND +#endif + +#define QT_SIGNAL_RETTYPE void +#define QT_SIGNAL_ARGS int +#define QT_SIGNAL_IGNORE (QT_SIGNAL_RETTYPE (*)(QT_SIGNAL_ARGS))1 + +#define QT_SOCKLEN_T int + +#define QT_SNPRINTF ::snprintf +#define QT_VSNPRINTF ::vsnprintf + + +#endif // QPLATFORMDEFS_H -- cgit v0.9.0.2