diff --git a/.pkgmeta b/.pkgmeta
index 5632471..e381cda 100644
--- a/.pkgmeta
+++ b/.pkgmeta
@@ -42,6 +42,9 @@ externals:
url: svn://svn.wowace.com/wow/libdogtag-unit-3-0/mainline/trunk
libs/LibDBIcon-1.0:
url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0
+ libs/LibDualSpec-1.0:
+ url: git://git.wowace.com/wow/libdualspec-1-0/mainline.git/LibDualSpec-1.0
+ tag: latest
optional-dependencies:
- libdogtag-3-0
diff --git a/IceHUD.lua b/IceHUD.lua
index de1b3b4..4a830cd 100644
--- a/IceHUD.lua
+++ b/IceHUD.lua
@@ -901,7 +901,16 @@ function IceHUD:OnInitialize()
self:GenerateModuleOptions(true)
self.options.args.colors.args = self.IceCore:GetColorOptions()
self.options.args.profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db)
+ -- Add dual-spec support
+ local LibDualSpec = LibStub('LibDualSpec-1.0', true)
+ if LibDualSpec then
+ LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
+ LibDualSpec:EnhanceOptions(self.options.args.profiles, self.db)
+ end
+
+ --@debug@
self:SetupProfileImportButtons()
+ --@end-debug@
LibStub("AceConfig-3.0"):RegisterOptionsTable("IceHUD", self.options, "/icehudcl")
diff --git a/IceHUD.toc b/IceHUD.toc
index 2ad3b12..a3481f8 100644
--- a/IceHUD.toc
+++ b/IceHUD.toc
@@ -5,13 +5,15 @@
## Notes: Another HUD addon
## Version: @project-version@ (Revision: @project-revision@)
## SavedVariables: IceCoreDB
-## OptionalDeps: Ace3, LibSharedMedia-3.0, LibDogTag-3.0, LibDogTag-Unit-3.0, LibRangeCheck-2.0, LibHealComm-4.0
+## OptionalDeps: Ace3, LibSharedMedia-3.0, LibDogTag-3.0, LibDogTag-Unit-3.0, LibRangeCheck-2.0, LibHealComm-4.0, LibDualSpec-1.0
## X-Category: HUDs
## X-Website: http://www.wowace.com/projects/ice-hud/
## X-Compatible-With: 40000
+#@no-lib-strip@
# Libraries
embeds.xml
+#@end-no-lib-strip@
# IceHUD core functionality
IceCore.lua
diff --git a/embeds.xml b/embeds.xml
index 47b7e22..f84a2de 100644
--- a/embeds.xml
+++ b/embeds.xml
@@ -15,4 +15,5 @@
+