summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-04 11:20:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-04 11:21:54 +0000
commit65270c4e9318036100401ec1fb09443c1bdb239a (patch)
tree0d7d4f9feee935de0c830a14457fda2e5d7ba3a8
parentd990bb8cd6d6e93c099c0bc196ef5b46a11f54c1 (diff)
fix encrypting odf documents
xsec_fw is always built, so always register and install xsec_xmlsec is built when ENABLE_XMLSEC is true, match register and install plugin is built when WITH_MOZILLA is not NO, match register
-rw-r--r--postprocess/packcomponents/makefile.mk11
-rw-r--r--scp2/source/ooo/file_library_ooo.scp6
-rw-r--r--scp2/source/ooo/makefile.mk4
3 files changed, 10 insertions, 11 deletions
diff --git a/postprocess/packcomponents/makefile.mk b/postprocess/packcomponents/makefile.mk
index 9d3605954125..eb10ee96f6a8 100644
--- a/postprocess/packcomponents/makefile.mk
+++ b/postprocess/packcomponents/makefile.mk
@@ -277,10 +277,13 @@ my_components += \
my_components += ldapbe2
.END
-.IF "$(ENABLE_NSS_MODULE)" == "YES" || "$(SYSTEM_MOZILLA)" == "YES"
-my_components += \
- component/xmlsecurity/util/xsec_fw \
- pl
+.IF "$(WITH_MOZILLA)" != "NO"
+my_components += pl
+.END
+
+my_components += component/xmlsecurity/util/xsec_fw
+
+.IF "$(ENABLE_XMLSEC)" == "YES"
.IF "$(OS)" == "WNT"
my_components += component/xmlsecurity/util/xsec_xmlsec.windows
.ELSE
diff --git a/scp2/source/ooo/file_library_ooo.scp b/scp2/source/ooo/file_library_ooo.scp
index d83d6cffaec6..56592cf79cac 100644
--- a/scp2/source/ooo/file_library_ooo.scp
+++ b/scp2/source/ooo/file_library_ooo.scp
@@ -1406,7 +1406,6 @@ File gid_File_Lib_XSec_XMLSecurity
Styles = (PACKED);
End
-#if defined(ENABLE_NSS_MODULE) || defined(SYSTEM_MOZILLA)
File gid_File_Lib_XSec_Framework
TXT_FILE_BODY;
#ifdef UNX
@@ -1418,7 +1417,7 @@ File gid_File_Lib_XSec_Framework
Styles = (PACKED);
End
-#if defined(ENABLE_NSS_MODULE) || defined(SYSTEM_MOZILLA)
+#if defined(ENABLE_XMLSEC)
File gid_File_Lib_XSec_XmlSec
TXT_FILE_BODY;
#ifdef UNX
@@ -1429,7 +1428,6 @@ File gid_File_Lib_XSec_XmlSec
Dir = SCP2_OOO_BIN_DIR;
Styles = (PACKED);
End
-#endif
#ifdef WNT
File gid_File_Lib_LibXMLSec_xmlseccore
@@ -1454,8 +1452,6 @@ File gid_File_Lib_LibXMLSec_xmlsecmscrypto
Styles = (PACKED);
End
#endif
-
-//i20156 - end
#endif
File gid_File_Lib_Migrationoo2
diff --git a/scp2/source/ooo/makefile.mk b/scp2/source/ooo/makefile.mk
index bf17b8485694..2a89eca10f85 100644
--- a/scp2/source/ooo/makefile.mk
+++ b/scp2/source/ooo/makefile.mk
@@ -92,8 +92,8 @@ SCPDEFS+=-DENABLE_EVOAB2
SCPDEFS+=-DENABLE_DIRECTX
.ENDIF
-.IF "$(ENABLE_NSS_MODULE)"=="YES"
-SCPDEFS+=-DENABLE_NSS_MODULE
+.IF "$(ENABLE_XMLSEC)"=="YES"
+SCPDEFS+=-DENABLE_XMLSEC
.ENDIF
.IF "$(GUI)"=="UNX"