1import("//build/ohos.gni") 2 3config("nlohmann_json_config") { 4 include_dirs = [ 5 "single_include/", 6 "single_include/nlohmann", 7 ] 8 9 cflags_cc = [ "-fexceptions" ] 10 cflags_objcc = cflags_cc 11} 12 13ohos_static_library("nlohmann_json_static") { 14 public_configs = [ ":nlohmann_json_config" ] 15 part_name = "json" 16 subsystem_name = "thirdparty" 17} 18