Index: src/pdf/SkPDFMetadata.cpp |
diff --git a/src/pdf/SkPDFMetadata.cpp b/src/pdf/SkPDFMetadata.cpp |
index 2765d4d189b99b0ae0042b0ff531f12797762370..a5476a2df0980e6755be98f62f3038be15c2f416 100644 |
--- a/src/pdf/SkPDFMetadata.cpp |
+++ b/src/pdf/SkPDFMetadata.cpp |
@@ -5,11 +5,14 @@ |
* found in the LICENSE file. |
*/ |
-#include "SkMD5.h" |
#include "SkMilestone.h" |
#include "SkPDFMetadata.h" |
#include "SkPDFTypes.h" |
#include <utility> |
+ |
+#ifdef SK_PDF_GENERATE_PDFA |
+#include "SkMD5.h" |
+#endif |
static SkString pdf_date(const SkTime::DateTime& dt) { |
int timeZoneMinutes = SkToInt(dt.fTimeZoneMinutes); |
@@ -49,6 +52,7 @@ |
return dict.release(); |
} |
+#ifdef SK_PDF_GENERATE_PDFA |
SkPDFMetadata::UUID SkPDFMetadata::uuid() const { |
// The main requirement is for the UUID to be unique; the exact |
// format of the data that will be hashed is not important. |
@@ -346,6 +350,8 @@ |
documentID.c_str(), instanceID.c_str(), keywords2.c_str())); |
} |
+#endif // SK_PDF_GENERATE_PDFA |
+ |
#undef SKPDF_STRING |
#undef SKPDF_STRING_IMPL |