fc5871
# HG changeset patch
fc5871
# User Rob Lemley <rob@thunderbird.net>
fc5871
# Date 1663091141 0
fc5871
#      Tue Sep 13 17:45:41 2022 +0000
fc5871
# Node ID fbc2cf15893e40959b04d22c9efa4d424aeb5c4f
fc5871
# Parent  121afb4ed9b0e282cf6690736ffadf1498578434
fc5871
Bug 1790662 - Update librnp compiler include path for new location of json-c's json.h r=dandarnell
fc5871
fc5871
fc5871
json.h from json-c is now a preprocessed file and is found in the object directory
fc5871
rather than the source directory.
fc5871
fc5871
Depends on D157961
fc5871
fc5871
Differential Revision: https://phabricator.services.mozilla.com/D157962
fc5871
fc5871
diff --git a/comm/third_party/rnp/moz.build b/third_party/rnp/moz.b/commuild
fc5871
--- a/comm/third_party/rnp/moz.build
fc5871
+++ b/comm/third_party/rnp/moz.build
fc5871
@@ -81,11 +81,11 @@ else:
fc5871
 
fc5871
 if CONFIG["MZLA_SYSTEM_JSONC"]:
fc5871
     CXXFLAGS += CONFIG["MZLA_JSONC_CFLAGS"]
fc5871
 else:
fc5871
     IQuote("{}/../json-c".format(OBJDIR))
fc5871
-    LOCAL_INCLUDES += ["../json-c"]
fc5871
+    LOCAL_INCLUDES += ["!../json-c", "../json-c"]
fc5871
 
fc5871
 if CONFIG["MZLA_SYSTEM_BZIP2"]:
fc5871
     CXXFLAGS += CONFIG["MZLA_BZIP2_CFLAGS"]
fc5871
 else:
fc5871
     LOCAL_INCLUDES += ["../bzip2"]