Permalink
Browse files

[DEV] Make Rakefile honor build products directory

    - Add new target to project
    - Update Rakefile to have a default and debug tasks
    - Add descriptions to Rakefile

    Ticket: http://rentzsch.lighthouseapp.com/projects/24342/tickets/43

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information...
1 parent 791678c commit 021eebfd274b4e415c31c2ac9e4bb2ffed569ee4 @ctp ctp committed with Feb 2, 2009
Showing with 76 additions and 2 deletions.
  1. +68 −0 ClickToFlash.xcodeproj/project.pbxproj
  2. +8 −2 Rakefile
@@ -7,6 +7,18 @@
objects = {
/* Begin PBXAggregateTarget section */
+ 2B9260570F36854B000F1583 /* Install plugin for user */ = {
+ isa = PBXAggregateTarget;
+ buildConfigurationList = 2B9260650F368565000F1583 /* Build configuration list for PBXAggregateTarget "Install plugin for user" */;
+ buildPhases = (
+ 2B9260560F36854B000F1583 /* ShellScript */,
+ );
+ dependencies = (
+ 2B92605B0F368559000F1583 /* PBXTargetDependency */,
+ );
+ name = "Install plugin for user";
+ productName = "Install plugin for user";
+ };
5584067D0E0F371E00EA991B /* Create Zip */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 558406870E0F372D00EA991B /* Build configuration list for PBXAggregateTarget "Create Zip" */;
@@ -39,6 +51,13 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
+ 2B92605A0F368559000F1583 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 55EB70320E04A8410016593D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 55EB70410E04A8640016593D /* ClickToFlash */;
+ remoteInfo = ClickToFlash;
+ };
5584064C0E0F35AC00EA991B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 55EB70320E04A8410016593D /* Project object */;
@@ -214,6 +233,7 @@
55EB70410E04A8640016593D /* ClickToFlash */,
558405600E0F2DE900EA991B /* Install ClickToFlash */,
5584067D0E0F371E00EA991B /* Create Zip */,
+ 2B9260570F36854B000F1583 /* Install plugin for user */,
);
};
/* End PBXProject section */
@@ -241,6 +261,19 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
+ 2B9260560F36854B000F1583 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "rm -Rf \"$HOME/Library/Internet Plug-Ins/ClickToFlash.plugin\"\ncp -R \"$BUILT_PRODUCTS_DIR/ClickToFlash.plugin\" \"$HOME/Library/Internet Plug-Ins/ClickToFlash.plugin\"\nexit 0";
+ };
5584067C0E0F371E00EA991B /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -279,6 +312,11 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
+ 2B92605B0F368559000F1583 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 55EB70410E04A8640016593D /* ClickToFlash */;
+ targetProxy = 2B92605A0F368559000F1583 /* PBXContainerItemProxy */;
+ };
5584064D0E0F35AC00EA991B /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 55EB70410E04A8640016593D /* ClickToFlash */;
@@ -332,6 +370,27 @@
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
+ 2B9260580F36854B000F1583 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ PRODUCT_NAME = "Install plugin for user";
+ };
+ name = Debug;
+ };
+ 2B9260590F36854B000F1583 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
+ PRODUCT_NAME = "Install plugin for user";
+ ZERO_LINK = NO;
+ };
+ name = Release;
+ };
558405640E0F2DE900EA991B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -478,6 +537,15 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
+ 2B9260650F368565000F1583 /* Build configuration list for PBXAggregateTarget "Install plugin for user" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 2B9260580F36854B000F1583 /* Debug */,
+ 2B9260590F36854B000F1583 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
558405660E0F2DE900EA991B /* Build configuration list for PBXNativeTarget "Install ClickToFlash" */ = {
isa = XCConfigurationList;
buildConfigurations = (
View
@@ -1,3 +1,9 @@
+desc "Build the Release configuration of the plugin and install for the current user."
task :default do
- system('xcodebuild -configuration Release && rm -Rf "$HOME/Library/Internet Plug-Ins/ClickToFlash.plugin" && cp -R build/Release/ClickToFlash.plugin "$HOME/Library/Internet Plug-Ins/"')
-end
+ system('xcodebuild -configuration Release -target "Install plugin for user"')
+end
+
+desc "Build the Debug configuration of the plugin and install for the current user."
+task :debug do
+ system('xcodebuild -configuration Debug -target "Install plugin for user"')
+end

0 comments on commit 021eebf

Please sign in to comment.