diff options
Diffstat (limited to 'XcodePlugin/Resources')
-rw-r--r-- | XcodePlugin/Resources/CleanCovAndBuild.applescript | 38 | ||||
-rw-r--r-- | XcodePlugin/Resources/CreateUnitTestExecutable.applescript | 213 | ||||
-rw-r--r-- | XcodePlugin/Resources/Credits.rtf | 8 | ||||
-rw-r--r-- | XcodePlugin/Resources/EnableGCov.applescript | 86 | ||||
-rw-r--r-- | XcodePlugin/Resources/GTM.icns | bin | 0 -> 33864 bytes | |||
-rw-r--r-- | XcodePlugin/Resources/GTM.xcspec | 8 | ||||
-rw-r--r-- | XcodePlugin/Resources/GTMXcodePreferences.xib | 393 | ||||
-rw-r--r-- | XcodePlugin/Resources/Info.plist | 34 | ||||
-rw-r--r-- | XcodePlugin/Resources/ResetGCov.applescript | 32 | ||||
-rw-r--r-- | XcodePlugin/Resources/opencoverage.applescript | 45 |
10 files changed, 857 insertions, 0 deletions
diff --git a/XcodePlugin/Resources/CleanCovAndBuild.applescript b/XcodePlugin/Resources/CleanCovAndBuild.applescript new file mode 100644 index 0000000..dd45296 --- /dev/null +++ b/XcodePlugin/Resources/CleanCovAndBuild.applescript @@ -0,0 +1,38 @@ +(* + CleanCovAndBuild.applescript + + Copyright 2007-2009 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); you may not + use this file except in compliance with the License. You may obtain a copy + of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations under + the License. +*) + +(* + gets passed a list of args from Xcode + only arg is the dir to clean under +*) +on run args + -- get our dir to clean + set cleanDir to item 1 of args + + -- get rid of all our gcov data files + set shellScript to "find " & quoted form of (cleanDir) & " -name \"*.gcda\" -print0 | /usr/bin/xargs -0 /bin/rm -f" + do shell script shellScript + + -- now tell xcode to compile + tell application "Xcode" + tell project of active project document + build + end tell + end tell +end run + diff --git a/XcodePlugin/Resources/CreateUnitTestExecutable.applescript b/XcodePlugin/Resources/CreateUnitTestExecutable.applescript new file mode 100644 index 0000000..5cec67b --- /dev/null +++ b/XcodePlugin/Resources/CreateUnitTestExecutable.applescript @@ -0,0 +1,213 @@ +(* + CreateUnitTestExecutable.scpt + + Copyright 2007-2009 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); you may not + use this file except in compliance with the License. You may obtain a copy + of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations under + the License. + + Support script for easily creating debug executables for unittests + + 2008/03/06 Added support for debug frameworks, Xcode 3.1, and debugging under a testhost +*) + +on replaceText(theString, fString, rString) + set current_Delimiters to AppleScript's text item delimiters + set AppleScript's text item delimiters to fString + set sList to every text item of theString + set AppleScript's text item delimiters to rString + set newString to sList as string + set AppleScript's text item delimiters to current_Delimiters + return newString +end replaceText + +on findVariable(a) + set b to "echo '" & a & "' | grep -o \"$\\([^)]*)\\)\" | head -n 1" + return do shell script b +end findVariable + +on expandBuildSettings(a, b) + tell me + repeat + set pattern to findVariable(a) + if (length of pattern is equal to 0) then + exit repeat + else + set oldValue to word 2 of pattern + tell application "Xcode" + -- get our project + tell project of active project document + set activeBuildConfig to name of active build configuration type + try + if oldValue is "inherited" then + set oldValue to word 2 of b + tell build configuration activeBuildConfig + set newValue to value of flattened build setting oldValue + end tell + else + tell build configuration activeBuildConfig of active target + set newValue to value of flattened build setting oldValue + end tell + end if + on error + log "Unable to expand '" & oldValue & "'" + set newValue to "" + end try + end tell + end tell + set newValue to expandBuildSettings(newValue, a) + set a to replaceText(a, pattern, newValue) + end if + end repeat + end tell + return a +end expandBuildSettings + +on expandBuildSetting(a) + return expandBuildSettings(a, "") +end expandBuildSetting + +tell application "Xcode" + -- get our project + tell project of active project document + set activeBuildConfig to name of active build configuration type + + -- build executable + tell build configuration activeBuildConfig of active target + tell me + set productName to expandBuildSetting("$(PRODUCT_NAME)") + end tell + tell me + set wrapperExtension to expandBuildSetting("$(WRAPPER_EXTENSION)") + end tell + try + tell me + set useGC to expandBuildSetting("$(GCC_ENABLE_OBJC_GC)") + end tell + on error e + log "Unable to expand GCC_ENABLE_OBJC_GC " & e + set useGC to "" + end try + try + tell me + set testhost to expandBuildSetting("$(TEST_HOST)") + end tell + on error e + log "Unable to expand testHost " & e + set testhost to "" + end try + end tell + + if wrapperExtension is equal to "octest" then + set executablePath to "/Developer/Tools/otest" + set executableName to "otest" + else if wrapperExtension is equal to "gtest" then + set executablePath to "/Developer/Tools/gUnit" + set executableName to "gUnit" + else + display alert "Unknown test type with extension " & wrapperExtension + return + end if + + if testhost is not equal to "" then + set executablePath to testhost + set executableName to "TestHost" + end if + + set execName to productName & "(" & executableName & ")" + set exec to make new executable with properties ¬ + {name:execName, launchable:yes, path:executablePath, comments:¬ + "Test executable for " & name of active target & "(" & executableName & ")." & ¬ + return & "Generated " & (current date) & " by Google Toolbox For Mac Xcode Plugin." & ¬ + return & "Go to http://developer.apple.com/technotes/tn2004/tn2124.html for more info on settings."} + tell exec + if useGC is equal to "Unsupported" or useGC is equal to "" then + make new environment variable with properties {name:"OBJC_DISABLE_GC", value:"YES", active:yes} + end if + + if wrapperExtension is "octest" then + -- force some nice cocoa debug stuff on + make new launch argument with properties {name:"-NSBindingDebugLogLevel 1", active:yes} + make new launch argument with properties {name:"-NSScriptingDebugLogLevel 1", active:yes} + make new launch argument with properties {name:"-NSTraceEvents YES", active:no} + make new launch argument with properties {name:"-NSShowAllViews YES", active:no} + make new launch argument with properties {name:"-NSShowAllDrawing YES", active:no} + make new launch argument with properties {name:"-NSDragManagerLogLevel 6", active:no} + make new launch argument with properties {name:"-NSAccessibilityDebugLogLevel 3", active:no} + end if + + set bundlename to productName & "." & wrapperExtension + + if testhost is not equal to "" then + make new environment variable with properties {name:"XCInjectBundleInto", value:testhost, active:yes} + make new environment variable with properties {name:"DYLD_INSERT_LIBRARIES", value:"/Developer/Library/PrivateFrameworks/DevToolsBundleInjection.framework/DevToolsBundleInjection", active:yes} + make new environment variable with properties {name:"XCInjectBundle", value:bundlename, active:yes} + if wrapperExtension is "octest" then + make new launch argument with properties {name:"-SenTest All", active:yes} + end if + else + if wrapperExtension is "octest" then + make new launch argument with properties {name:"-SenTest Self", active:yes} + end if + make new launch argument with properties {name:"\"" & bundlename & "\"", active:yes} + end if + + make new environment variable with properties {name:"DYLD_IMAGE_SUFFIX", value:"_debug", active:no} + + make new environment variable with properties {name:"DYLD_LIBRARY_PATH", value:".", active:yes} + make new environment variable with properties {name:"DYLD_FRAMEWORK_PATH", value:".:/Developer/Library/Frameworks", active:yes} + make new environment variable with properties {name:"DYLD_NEW_LOCAL_SHARED_REGIONS", value:"YES", active:yes} + make new environment variable with properties {name:"DYLD_NO_FIX_PREBINDING", value:"YES", active:yes} + make new environment variable with properties {name:"MallocScribble", value:"YES", active:yes} + make new environment variable with properties {name:"MallocPreScribble", value:"YES", active:yes} + make new environment variable with properties {name:"MallocGuardEdges", value:"YES", active:yes} + make new environment variable with properties {name:"NSAutoreleaseFreedObjectCheckEnabled", value:"YES", active:yes} + make new environment variable with properties {name:"NSZombieEnabled", value:"YES", active:yes} + make new environment variable with properties {name:"OBJC_DEBUG_FRAGILE_SUPERCLASSES", value:"YES", active:yes} + + make new environment variable with properties {name:"ComponentDebug", value:"1", active:no} + make new environment variable with properties {name:"FilesASDDebug", value:"1", active:no} + make new environment variable with properties {name:"VNDebug", value:"1", active:no} + make new environment variable with properties {name:"WSDebug", value:"1", active:no} + make new environment variable with properties {name:"WSDebugVerbose", value:"1", active:no} + make new environment variable with properties {name:"DRVerboseLogging", value:"1", active:no} + make new environment variable with properties {name:"INIT_Processes", value:"1", active:no} + make new environment variable with properties {name:"EventDebug", value:"1", active:no} + make new environment variable with properties {name:"EventRate", value:"1", active:no} + make new environment variable with properties {name:"TSMEventTracing", value:"1", active:no} + make new environment variable with properties {name:"OBJC_PRINT_IMAGES", value:"1", active:no} + make new environment variable with properties {name:"OBJC_PRINT_LOAD_METHODS", value:"1", active:no} + make new environment variable with properties {name:"DYLD_PRINT_LIBRARIES", value:"1", active:no} + make new environment variable with properties {name:"DYLD_PRINT_LIBRARIES_POST_LAUNCH", value:"1", active:no} + make new environment variable with properties {name:"DYLD_PREBIND_DEBUG", value:"1", active:no} + make new environment variable with properties {name:"DYLD_PRINT_APIS", value:"1", active:no} + make new environment variable with properties {name:"DYLD_PRINT_BINDINGS", value:"1", active:no} + make new environment variable with properties {name:"DYLD_PRINT_INITIALIZERS", value:"1", active:no} + make new environment variable with properties {name:"DYLD_PRINT_SEGMENTS", value:"1", active:no} + make new environment variable with properties {name:"DYLD_PRINT_STATISTICS", value:"1", active:no} + make new environment variable with properties {name:"NSDeallocateZombies", value:"YES", active:no} + make new environment variable with properties {name:"NSHangOnUncaughtException", value:"YES", active:no} + make new environment variable with properties {name:"NSEnableAutoreleasePool", value:"NO", active:no} + make new environment variable with properties {name:"NSAutoreleaseHighWaterMark", value:"1000", active:no} + make new environment variable with properties {name:"NSAutoreleaseHighWaterResolution", value:"100", active:no} + make new environment variable with properties {name:"NSPrintDynamicClassLoads", value:"YES", active:no} + make new environment variable with properties {name:"NSExceptionLoggingEnabled", value:"YES", active:no} + make new environment variable with properties {name:"NSDOLoggingEnabled", value:"YES", active:no} + make new environment variable with properties {name:"NSQuitAfterLaunch", value:"YES", active:no} + make new environment variable with properties {name:"CFZombieLevel", value:"3", active:no} + make new environment variable with properties {name:"AEDebugSends", value:"1", active:no} + make new environment variable with properties {name:"AEDebugReceives", value:"1", active:no} + end tell + set active executable to exec + end tell +end tell + diff --git a/XcodePlugin/Resources/Credits.rtf b/XcodePlugin/Resources/Credits.rtf new file mode 100644 index 0000000..120dc13 --- /dev/null +++ b/XcodePlugin/Resources/Credits.rtf @@ -0,0 +1,8 @@ +{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540 +{\fonttbl\f0\fswiss\fcharset0 Helvetica;} +{\colortbl;\red255\green255\blue255;} +\vieww9000\viewh8400\viewkind0 +\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\qc\pardirnatural + +\f0\fs24 \cf0 Part of {\field{\*\fldinst{HYPERLINK "http://code.google.com/p/google-toolbox-for-mac/"}}{\fldrslt Google Toolbox For Mac}}\ +}
\ No newline at end of file diff --git a/XcodePlugin/Resources/EnableGCov.applescript b/XcodePlugin/Resources/EnableGCov.applescript new file mode 100644 index 0000000..9baecb1 --- /dev/null +++ b/XcodePlugin/Resources/EnableGCov.applescript @@ -0,0 +1,86 @@ +(* + EnableGCov.applescript + + Copyright 2007-2009 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); you may not + use this file except in compliance with the License. You may obtain a copy + of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations under + the License. + + Enables and disables gcov by either setting or removing the + GCC_INSTRUMENT_PROGRAM_FLOW_ARCS & GCC_GENERATE_TEST_COVERAGE_FILES + settings as appropriate, and adding a link to the gcov library + if necessary. +*) + +(* + gets passed a list of args from Xcode + first arg is whether to enable or disable gcov settings, +*) +on run (enable) + tell application "Xcode" + tell project of active project document + set buildconfig to name of active build configuration type + tell build configuration buildconfig of active target + set needsGcovLib to true + try + set machOType to value of flattened build setting "MACH_O_TYPE" + if (machOType is "staticlib") or (machOType is "mh_object") then + set needsGcovLib to false + end if + end try + + if item 1 of enable is "YES" then + set value of build setting "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS" to "YES" + set value of build setting "GCC_GENERATE_TEST_COVERAGE_FILES" to "YES" + if needsGcovLib then + try + set a to value of build setting "OTHER_LDFLAGS" + on error + set a to "$(inherited)" + end try + if a does not contain "-lgcov" then + set value of build setting "OTHER_LDFLAGS" to a & " -lgcov" + end if + end if + else + try + delete build setting "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS" + end try + try + delete build setting "GCC_GENERATE_TEST_COVERAGE_FILES" + end try + if needsGcovLib then + try + set a to value of build setting "OTHER_LDFLAGS" + set oldDelims to AppleScript's text item delimiters + set AppleScript's text item delimiters to " " + set a to every text item of a + set c to {} + repeat with b in a + if b as string is not equal to "-lgcov" then + set c to c & b + end if + end repeat + set a to c as string + set AppleScript's text item delimiters to oldDelims + if (length of a > 0) and (a "$(inherited)") then + set value of build setting "OTHER_LDFLAGS" to a + else + delete build setting "OTHER_LDFLAGS" + end if + end try + end if + end if + end tell + end tell + end tell +end run diff --git a/XcodePlugin/Resources/GTM.icns b/XcodePlugin/Resources/GTM.icns Binary files differnew file mode 100644 index 0000000..89cad67 --- /dev/null +++ b/XcodePlugin/Resources/GTM.icns diff --git a/XcodePlugin/Resources/GTM.xcspec b/XcodePlugin/Resources/GTM.xcspec new file mode 100644 index 0000000..40d646a --- /dev/null +++ b/XcodePlugin/Resources/GTM.xcspec @@ -0,0 +1,8 @@ +( + { + Identifier = "com.google.gtm.gtmxcodeplugin"; + Name = GTMXcodePlugin; + Type = Generic; + InstallsPreferences = yes; + }, +)
\ No newline at end of file diff --git a/XcodePlugin/Resources/GTMXcodePreferences.xib b/XcodePlugin/Resources/GTMXcodePreferences.xib new file mode 100644 index 0000000..26f9a66 --- /dev/null +++ b/XcodePlugin/Resources/GTMXcodePreferences.xib @@ -0,0 +1,393 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03"> + <data> + <int key="IBDocument.SystemTarget">1050</int> + <string key="IBDocument.SystemVersion">9L31a</string> + <string key="IBDocument.InterfaceBuilderVersion">677</string> + <string key="IBDocument.AppKitVersion">949.54</string> + <string key="IBDocument.HIToolboxVersion">353.00</string> + <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> + <bool key="EncodedWithXMLCoder">YES</bool> + <integer value="5"/> + </object> + <object class="NSArray" key="IBDocument.PluginDependencies"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + </object> + <object class="NSMutableDictionary" key="IBDocument.Metadata"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + </object> + <object class="NSMutableArray" key="IBDocument.RootObjects" id="278654370"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSCustomObject" id="608776500"> + <string key="NSClassName">GMXcodePreferences</string> + </object> + <object class="NSCustomObject" id="668169697"> + <string key="NSClassName">FirstResponder</string> + </object> + <object class="NSCustomObject" id="79665527"> + <string key="NSClassName">NSApplication</string> + </object> + <object class="NSCustomView" id="516157682"> + <reference key="NSNextResponder"/> + <int key="NSvFlags">274</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSButton" id="621997195"> + <reference key="NSNextResponder" ref="516157682"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{18, 42}, {185, 18}}</string> + <reference key="NSSuperview" ref="516157682"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="667529359"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">0</int> + <string key="NSContents">Show Icon on Menu Items</string> + <object class="NSFont" key="NSSupport" id="555668409"> + <string key="NSName">LucidaGrande</string> + <double key="NSSize">1.300000e+01</double> + <int key="NSfFlags">1044</int> + </object> + <reference key="NSControlView" ref="621997195"/> + <int key="NSButtonFlags">1211912703</int> + <int key="NSButtonFlags2">2</int> + <object class="NSCustomResource" key="NSNormalImage" id="779873426"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSSwitch</string> + </object> + <object class="NSButtonImageSource" key="NSAlternateImage" id="445076197"> + <string key="NSImageName">NSSwitch</string> + </object> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + <object class="NSButton" id="1071460241"> + <reference key="NSNextResponder" ref="516157682"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{18, 18}, {207, 18}}</string> + <reference key="NSSuperview" ref="516157682"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="441936326"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">0</int> + <string key="NSContents">Correct Whitespace On Save</string> + <reference key="NSSupport" ref="555668409"/> + <reference key="NSControlView" ref="1071460241"/> + <int key="NSButtonFlags">1211912703</int> + <int key="NSButtonFlags2">2</int> + <reference key="NSNormalImage" ref="779873426"/> + <reference key="NSAlternateImage" ref="445076197"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + </object> + <string key="NSFrameSize">{243, 78}</string> + <reference key="NSSuperview"/> + <object class="NSMutableString" key="NSClassName"> + <characters key="NS.bytes">NSView</characters> + </object> + <string key="NSExtension">NSResponder</string> + </object> + </object> + <object class="IBObjectContainer" key="IBDocument.Objects"> + <object class="NSMutableArray" key="connectionRecords"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">_view</string> + <reference key="source" ref="608776500"/> + <reference key="destination" ref="516157682"/> + </object> + <int key="connectionID">17</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">_delegate</string> + <reference key="source" ref="608776500"/> + <reference key="destination" ref="516157682"/> + </object> + <int key="connectionID">31</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">showImageOnMenuItems_</string> + <reference key="source" ref="608776500"/> + <reference key="destination" ref="621997195"/> + </object> + <int key="connectionID">273</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">correctWhiteSpace_</string> + <reference key="source" ref="608776500"/> + <reference key="destination" ref="1071460241"/> + </object> + <int key="connectionID">279</int> + </object> + </object> + <object class="IBMutableOrderedSet" key="objectRecords"> + <object class="NSArray" key="orderedObjects"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBObjectRecord"> + <int key="objectID">0</int> + <object class="NSArray" key="object" id="0"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + <reference key="children" ref="278654370"/> + <nil key="parent"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-2</int> + <reference key="object" ref="608776500"/> + <reference key="parent" ref="0"/> + <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-1</int> + <reference key="object" ref="668169697"/> + <reference key="parent" ref="0"/> + <string key="objectName">First Responder</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-3</int> + <reference key="object" ref="79665527"/> + <reference key="parent" ref="0"/> + <string key="objectName">Application</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5</int> + <reference key="object" ref="516157682"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="621997195"/> + <reference ref="1071460241"/> + </object> + <reference key="parent" ref="0"/> + <string key="objectName">View</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">271</int> + <reference key="object" ref="621997195"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="667529359"/> + </object> + <reference key="parent" ref="516157682"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">277</int> + <reference key="object" ref="1071460241"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="441936326"/> + </object> + <reference key="parent" ref="516157682"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">284</int> + <reference key="object" ref="667529359"/> + <reference key="parent" ref="621997195"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">285</int> + <reference key="object" ref="441936326"/> + <reference key="parent" ref="1071460241"/> + </object> + </object> + </object> + <object class="NSMutableDictionary" key="flattenedProperties"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>-1.IBPluginDependency</string> + <string>-2.IBPluginDependency</string> + <string>-3.IBPluginDependency</string> + <string>-3.ImportedFromIB2</string> + <string>271.IBPluginDependency</string> + <string>271.ImportedFromIB2</string> + <string>277.IBPluginDependency</string> + <string>277.ImportedFromIB2</string> + <string>284.IBPluginDependency</string> + <string>285.IBPluginDependency</string> + <string>5.IBEditorWindowLastContentRect</string> + <string>5.IBPluginDependency</string> + <string>5.ImportedFromIB2</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <boolean value="YES" id="5"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="5"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="5"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>{{272, 1456}, {243, 78}}</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="5"/> + </object> + </object> + <object class="NSMutableDictionary" key="unlocalizedProperties"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + </object> + <nil key="activeLocalization"/> + <object class="NSMutableDictionary" key="localizations"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + </object> + <nil key="sourceID"/> + <int key="maxID">285</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <object class="NSMutableArray" key="referencedPartialClassDescriptions"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBPartialClassDescription"> + <string key="className">FirstResponder</string> + <string key="superclassName">NSObject</string> + <object class="NSMutableDictionary" key="actions"> + <string key="NS.key.0">:</string> + <string key="NS.object.0">id</string> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBUserSource</string> + <string key="minorKey"/> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">GMXcodePreferences</string> + <string key="superclassName">PBXPreferencesPaneModule</string> + <object class="NSMutableDictionary" key="outlets"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>correctWhiteSpace_</string> + <string>showImageOnMenuItems_</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>NSButton</string> + <string>NSButton</string> + </object> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">GMXcodePreferences.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">GMXcodePreferences</string> + <string key="superclassName">PBXPreferencesPaneModule</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBUserSource</string> + <string key="minorKey"/> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="NSMutableDictionary" key="actions"> + <string key="NS.key.0">showHelp:</string> + <string key="NS.object.0">id</string> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBUserSource</string> + <string key="minorKey"/> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">PBXModule</string> + <string key="superclassName">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">XcodeHeaders/PBXAppDelegate.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">PBXModule</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">XcodeHeaders/XcodeClasses.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">PBXModule</string> + <string key="superclassName">NSObject</string> + <object class="NSMutableDictionary" key="actions"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>showHelp:</string> + <string>showModule:</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>id</string> + <string>id</string> + </object> + </object> + <object class="NSMutableDictionary" key="outlets"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>_delegate</string> + <string>_view</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>id</string> + <string>NSView</string> + </object> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBUserSource</string> + <string key="minorKey"/> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">PBXPreferencesPaneModule</string> + <string key="superclassName">PBXModule</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">XcodeHeaders/PBXPreferencesPaneModule.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">PBXPreferencesPaneModule</string> + <string key="superclassName">PBXModule</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBUserSource</string> + <string key="minorKey"/> + </object> + </object> + </object> + </object> + <int key="IBDocument.localizationMode">0</int> + <string key="IBDocument.LastKnownRelativeProjectPath">../GTMXcodePlugin.xcodeproj</string> + <int key="IBDocument.defaultPropertyAccessControl">3</int> + </data> +</archive> diff --git a/XcodePlugin/Resources/Info.plist b/XcodePlugin/Resources/Info.plist new file mode 100644 index 0000000..2dcfad4 --- /dev/null +++ b/XcodePlugin/Resources/Info.plist @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleGetInfoString</key> + <string>${GTM_VERSIONINFO_FINDER}</string> + <key>CFBundleIdentifier</key> + <string>com.google.GTM.xcodeplugin</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundlePackageType</key> + <string>BNDL</string> + <key>CFBundleShortVersionString</key> + <string>${GTM_VERSIONINFO_SHORT}</string> + <key>CFBundleVersion</key> + <string>${GTM_VERSIONINFO_LONG}</string> + <key>LoadAtLaunch</key> + <string>YES</string> + <key>NSHumanReadableCopyright</key> + <string>${GTM_VERSIONINFO_ABOUT}</string> + <key>NSPrincipalClass</key> + <string>GTMXcodePlugin</string> + <key>XCGCReady</key> + <string>YES</string> + <key>XCPluginHasUI</key> + <string>YES</string> +</dict> +</plist> diff --git a/XcodePlugin/Resources/ResetGCov.applescript b/XcodePlugin/Resources/ResetGCov.applescript new file mode 100644 index 0000000..aa3280b --- /dev/null +++ b/XcodePlugin/Resources/ResetGCov.applescript @@ -0,0 +1,32 @@ +(* + ResetGCov.applescript + + Copyright 2007-2009 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); you may not + use this file except in compliance with the License. You may obtain a copy + of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations under + the License. + + Support script for using gcov with Xcode +*) + +(* + gets passed a list of args from Xcode + only arg is the dir to clean under +*) +on run args + -- get our dir to clean + set cleanDir to item 1 of args + + -- get rid of all our gcov data files + set shellScript to "find " & quoted form of (cleanDir) & " -name \"*.gcda\" -print0 | /usr/bin/xargs -0 /bin/rm -f" + do shell script shellScript +end run diff --git a/XcodePlugin/Resources/opencoverage.applescript b/XcodePlugin/Resources/opencoverage.applescript new file mode 100644 index 0000000..23ee825 --- /dev/null +++ b/XcodePlugin/Resources/opencoverage.applescript @@ -0,0 +1,45 @@ +(* + opencoverage.applescript + + Copyright 2007-2009 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); you may not + use this file except in compliance with the License. You may obtain a copy + of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations under + the License. + + Support script for using gcov with Xcode +*) + +(* + gets passed a list of args from Xcode + first arg is the path to open +*) +on run args + + -- check args + set filename to POSIX path of item 1 of args + + -- check if it exists first + set doesExist to false + tell application "System Events" + set doesExist to item filename exists + end tell + if doesExist then + -- open it in coverstory + do shell script "/usr/bin/open -a CoverStory " & quoted form of filename + else + -- report the error + tell application "Xcode" + display alert "The path we needed didn't exist." & return & quoted form of (filename) + end tell + end if + +end run |