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