Derek Sollenberger | fd78d1f | 2018-01-31 13:27:11 -0500 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "libjsoncpp_defaults", |
Leon Scroggins III | 37adfc0 | 2017-01-20 16:04:33 -0500 | [diff] [blame] | 3 | |
| 4 | srcs: [ |
| 5 | "src/lib_json/json_reader.cpp", |
| 6 | "src/lib_json/json_value.cpp", |
| 7 | "src/lib_json/json_writer.cpp", |
| 8 | ], |
| 9 | |
| 10 | local_include_dirs: [ |
| 11 | "src/lib_json", |
| 12 | ], |
| 13 | |
Dan Albert | bf34ad1 | 2018-12-06 11:03:03 -0800 | [diff] [blame] | 14 | include_build_directory: false, |
| 15 | |
Leon Scroggins III | 37adfc0 | 2017-01-20 16:04:33 -0500 | [diff] [blame] | 16 | export_include_dirs: ["include"], |
| 17 | |
Chih-Hung Hsieh | 5b9e477 | 2017-09-28 12:36:04 -0700 | [diff] [blame] | 18 | cflags: [ |
| 19 | "-DJSON_USE_EXCEPTION=0", |
| 20 | "-Wall", |
| 21 | "-Werror", |
Chih-Hung Hsieh | b860d83 | 2018-09-04 15:00:45 -0700 | [diff] [blame] | 22 | "-Wno-implicit-fallthrough", |
| 23 | // src/lib_json/json_reader.cpp:210 has -Wno-implicit-fallthrough |
Chih-Hung Hsieh | 5b9e477 | 2017-09-28 12:36:04 -0700 | [diff] [blame] | 24 | ], |
John Muir | 19f1bfc | 2017-10-15 22:26:53 -0700 | [diff] [blame] | 25 | |
| 26 | target: { |
| 27 | windows: { |
| 28 | enabled: true, |
| 29 | }, |
| 30 | }, |
Leon Scroggins III | 37adfc0 | 2017-01-20 16:04:33 -0500 | [diff] [blame] | 31 | } |
Derek Sollenberger | fd78d1f | 2018-01-31 13:27:11 -0500 | [diff] [blame] | 32 | |
Doug Horn | 948e517 | 2018-08-15 18:04:47 -0700 | [diff] [blame] | 33 | cc_library { |
Derek Sollenberger | fd78d1f | 2018-01-31 13:27:11 -0500 | [diff] [blame] | 34 | name: "libjsoncpp", |
| 35 | defaults: ["libjsoncpp_defaults"], |
| 36 | vendor_available: true, |
Suren Baghdasaryan | 67f5c6d | 2018-12-14 10:05:48 -0800 | [diff] [blame] | 37 | vndk: { |
| 38 | enabled: true, |
| 39 | support_system_process: true, |
| 40 | }, |
Derek Sollenberger | fd78d1f | 2018-01-31 13:27:11 -0500 | [diff] [blame] | 41 | host_supported: true, |
Suren Baghdasaryan | 67f5c6d | 2018-12-14 10:05:48 -0800 | [diff] [blame] | 42 | recovery_available: true, |
Przemyslaw Szczepaniak | d53951c | 2020-02-05 17:25:40 +0000 | [diff] [blame] | 43 | apex_available: [ |
Przemyslaw Szczepaniak | d53951c | 2020-02-05 17:25:40 +0000 | [diff] [blame] | 44 | "//apex_available:platform", |
Jiyong Park | 1127aa9 | 2020-03-07 16:59:11 +0900 | [diff] [blame] | 45 | "//apex_available:anyapex", |
Przemyslaw Szczepaniak | d53951c | 2020-02-05 17:25:40 +0000 | [diff] [blame] | 46 | ], |
dimitry | 921a943 | 2019-05-14 11:30:42 +0200 | [diff] [blame] | 47 | native_bridge_supported: true, |
Jooyung Han | 3c3f271 | 2020-04-16 18:48:27 +0900 | [diff] [blame] | 48 | min_sdk_version: "29", |
Derek Sollenberger | fd78d1f | 2018-01-31 13:27:11 -0500 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | cc_library_static { |
| 52 | name: "libjsoncpp_ndk", |
| 53 | defaults: ["libjsoncpp_defaults"], |
| 54 | sdk_version: "9", |
| 55 | stl: "libc++_static", |
| 56 | } |
Yi Kong | 9d90b45 | 2019-08-18 17:56:09 -0700 | [diff] [blame] | 57 | |
| 58 | cc_library_headers { |
| 59 | name: "libjsoncpp_headers", |
| 60 | export_include_dirs: ["include"], |
| 61 | host_supported: true, |
| 62 | } |