[Drdivx-commits] SF.net SVN: drdivx: [792] DrDivX/trunk/drdivx2
Brought to you by:
harikrishnan_v,
seabass089
From: <har...@us...> - 2006-10-31 23:37:40
|
Revision: 792 http://svn.sourceforge.net/drdivx/?rev=792&view=rev Author: harikrishnan_v Date: 2006-10-31 15:37:37 -0800 (Tue, 31 Oct 2006) Log Message: ----------- Port call application plugin to os x Modified Paths: -------------- DrDivX/trunk/drdivx2/build/xcode/gui.xcodeproj/project.pbxproj DrDivX/trunk/drdivx2/src/call_app_plugin/CallAppPlugin.cpp Modified: DrDivX/trunk/drdivx2/build/xcode/gui.xcodeproj/project.pbxproj =================================================================== --- DrDivX/trunk/drdivx2/build/xcode/gui.xcodeproj/project.pbxproj 2006-10-31 23:04:00 UTC (rev 791) +++ DrDivX/trunk/drdivx2/build/xcode/gui.xcodeproj/project.pbxproj 2006-10-31 23:37:37 UTC (rev 792) @@ -55,6 +55,9 @@ 47A006030AF7D51F0073C0D8 /* CopyPlugin.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 47A006010AF7D51F0073C0D8 /* CopyPlugin.cpp */; }; 47A006040AF7D51F0073C0D8 /* CopyPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 47A006020AF7D51F0073C0D8 /* CopyPlugin.h */; }; 47A0060D0AF7D5460073C0D8 /* PluginImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 47A0060C0AF7D5460073C0D8 /* PluginImpl.cpp */; }; + 47B15BD80AF810410041D8F6 /* PluginImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 47A0060C0AF7D5460073C0D8 /* PluginImpl.cpp */; }; + 47B15BEB0AF810950041D8F6 /* CallAppPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 47B15BE80AF8107A0041D8F6 /* CallAppPlugin.h */; }; + 47B15BEC0AF810970041D8F6 /* CallAppPlugin.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 47B15BE70AF8107A0041D8F6 /* CallAppPlugin.cpp */; }; 47C262B60A90FF83003C8AF8 /* DivXMediaFileBuilder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 47C262B20A90FF83003C8AF8 /* DivXMediaFileBuilder.cpp */; }; 47C262B70A90FF83003C8AF8 /* DivXMediaFileBuilder.h in Headers */ = {isa = PBXBuildFile; fileRef = 47C262B30A90FF83003C8AF8 /* DivXMediaFileBuilder.h */; }; 47C262B80A90FF83003C8AF8 /* MediaFileBuilderImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 47C262B40A90FF83003C8AF8 /* MediaFileBuilderImpl.cpp */; }; @@ -407,6 +410,9 @@ 47A006010AF7D51F0073C0D8 /* CopyPlugin.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CopyPlugin.cpp; path = ../../src/copy_plugin/CopyPlugin.cpp; sourceTree = SOURCE_ROOT; }; 47A006020AF7D51F0073C0D8 /* CopyPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CopyPlugin.h; path = ../../src/copy_plugin/CopyPlugin.h; sourceTree = SOURCE_ROOT; }; 47A0060C0AF7D5460073C0D8 /* PluginImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = PluginImpl.cpp; path = ../../src/util/PluginImpl.cpp; sourceTree = SOURCE_ROOT; }; + 47B15BDE0AF810410041D8F6 /* call_app_plugin.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = call_app_plugin.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; + 47B15BE70AF8107A0041D8F6 /* CallAppPlugin.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CallAppPlugin.cpp; path = ../../src/call_app_plugin/CallAppPlugin.cpp; sourceTree = SOURCE_ROOT; }; + 47B15BE80AF8107A0041D8F6 /* CallAppPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CallAppPlugin.h; path = ../../src/call_app_plugin/CallAppPlugin.h; sourceTree = SOURCE_ROOT; }; 47C262AB0A90FF21003C8AF8 /* libbuilder.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libbuilder.a; sourceTree = BUILT_PRODUCTS_DIR; }; 47C262B20A90FF83003C8AF8 /* DivXMediaFileBuilder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DivXMediaFileBuilder.cpp; path = ../../src/builder/DivXMediaFileBuilder.cpp; sourceTree = SOURCE_ROOT; }; 47C262B30A90FF83003C8AF8 /* DivXMediaFileBuilder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DivXMediaFileBuilder.h; path = ../../src/builder/DivXMediaFileBuilder.h; sourceTree = SOURCE_ROOT; }; @@ -686,6 +692,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 47B15BDA0AF810410041D8F6 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 47C262A90A90FF21003C8AF8 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -776,6 +789,8 @@ 05596AB53D8D521C69802C27 /* gui */ = { isa = PBXGroup; children = ( + 47B15BE70AF8107A0041D8F6 /* CallAppPlugin.cpp */, + 47B15BE80AF8107A0041D8F6 /* CallAppPlugin.h */, 47D3F3380AF80BDB00BD4C4F /* NotifyPlugin.cpp */, 47D3F3390AF80BDB00BD4C4F /* NotifyPlugin.h */, 47153EB10AF7F4F900E2BB72 /* ShutdownPlugin.cpp */, @@ -904,6 +919,7 @@ 47A005FF0AF7D4F70073C0D8 /* copy_plugin.dylib */, 47153EA80AF7F4CD00E2BB72 /* shutdown_plugin.dylib */, 47D3F32F0AF80BAB00BD4C4F /* notify_plugin.dylib */, + 47B15BDE0AF810410041D8F6 /* call_app_plugin.dylib */, ); name = Products; sourceTree = "<group>"; @@ -1327,6 +1343,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 47B15BD50AF810410041D8F6 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 47B15BEB0AF810950041D8F6 /* CallAppPlugin.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 47C262A70A90FF21003C8AF8 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -1528,6 +1552,23 @@ productReference = 47A005FF0AF7D4F70073C0D8 /* copy_plugin.dylib */; productType = "com.apple.product-type.library.dynamic"; }; + 47B15BD40AF810410041D8F6 /* call_app_plugin */ = { + isa = PBXNativeTarget; + buildConfigurationList = 47B15BDB0AF810410041D8F6 /* Build configuration list for PBXNativeTarget "call_app_plugin" */; + buildPhases = ( + 47B15BD50AF810410041D8F6 /* Headers */, + 47B15BD70AF810410041D8F6 /* Sources */, + 47B15BDA0AF810410041D8F6 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = call_app_plugin; + productName = copy_plugin; + productReference = 47B15BDE0AF810410041D8F6 /* call_app_plugin.dylib */; + productType = "com.apple.product-type.library.dynamic"; + }; 47C262AA0A90FF21003C8AF8 /* builder */ = { isa = PBXNativeTarget; buildConfigurationList = 47C262AC0A90FF3F003C8AF8 /* Build configuration list for PBXNativeTarget "builder" */; @@ -1791,6 +1832,7 @@ 47A005FE0AF7D4F70073C0D8 /* copy_plugin */, 47153E9E0AF7F4CD00E2BB72 /* shutdown_plugin */, 47D3F3250AF80BAB00BD4C4F /* notify_plugin */, + 47B15BD40AF810410041D8F6 /* call_app_plugin */, ); }; /* End PBXProject section */ @@ -1866,6 +1908,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 47B15BD70AF810410041D8F6 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 47B15BD80AF810410041D8F6 /* PluginImpl.cpp in Sources */, + 47B15BEC0AF810970041D8F6 /* CallAppPlugin.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 47C262A80A90FF21003C8AF8 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -2716,6 +2767,62 @@ }; name = Release; }; + 47B15BDC0AF810410041D8F6 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + ppc, + i386, + ); + COPY_PHASE_STRIP = NO; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; + INSTALL_PATH = /usr/local/lib; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + PREBINDING = NO; + PRODUCT_NAME = call_app_plugin; + USER_HEADER_SEARCH_PATHS = ../../include; + ZERO_LINK = YES; + }; + name = Debug; + }; + 47B15BDD0AF810410041D8F6 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + ppc, + i386, + ); + COPY_PHASE_STRIP = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; + INSTALL_PATH = /usr/local/lib; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + PREBINDING = NO; + PRODUCT_NAME = call_app_plugin; + USER_HEADER_SEARCH_PATHS = ../../include; + ZERO_LINK = NO; + }; + name = Release; + }; 47C262AD0A90FF3F003C8AF8 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -3292,6 +3399,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 47B15BDB0AF810410041D8F6 /* Build configuration list for PBXNativeTarget "call_app_plugin" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 47B15BDC0AF810410041D8F6 /* Debug */, + 47B15BDD0AF810410041D8F6 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 47C262AC0A90FF3F003C8AF8 /* Build configuration list for PBXNativeTarget "builder" */ = { isa = XCConfigurationList; buildConfigurations = ( Modified: DrDivX/trunk/drdivx2/src/call_app_plugin/CallAppPlugin.cpp =================================================================== --- DrDivX/trunk/drdivx2/src/call_app_plugin/CallAppPlugin.cpp 2006-10-31 23:04:00 UTC (rev 791) +++ DrDivX/trunk/drdivx2/src/call_app_plugin/CallAppPlugin.cpp 2006-10-31 23:37:37 UTC (rev 792) @@ -23,6 +23,8 @@ #ifdef _WIN32 #include <windows.h> +#elif defined __APPLE__ && defined __MACH__ +#include <stdlib.h> #endif using namespace std; @@ -78,6 +80,21 @@ { eventId = PLUGIN_SUCCEEDED; } +#elif defined __APPLE__ && defined __MACH__ + string cli = "open "; + string app = string(info.properties[0].data.strVal); + + if (!app.empty()) + { + cli += "-a "; + cli += app; + cli += " "; + } + + if (!args.empty()) + cli += args; + + system(cli.c_str()); #else #error "OS not supported" #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |