| 1 |
{ |
| 2 |
"variables": { |
| 3 |
"opencc_version": "1.4.1" |
| 4 |
}, |
| 5 |
"target_defaults": { |
| 6 |
"defines": [ |
| 7 |
"OPENCC_VERSION=\"<(opencc_version)\"" |
| 8 |
], |
| 9 |
"conditions": [ |
| 10 |
[ |
| 11 |
"OS==\"linux\"", |
| 12 |
{ |
| 13 |
"cflags": [ |
| 14 |
"-std=c++20" |
| 15 |
], |
| 16 |
"cflags!": [ |
| 17 |
"-fno-exceptions" |
| 18 |
], |
| 19 |
"cflags_cc!": [ |
| 20 |
"-fno-exceptions" |
| 21 |
] |
| 22 |
} |
| 23 |
], |
| 24 |
[ |
| 25 |
"OS==\"mac\"", |
| 26 |
{ |
| 27 |
"xcode_settings": { |
| 28 |
"GCC_ENABLE_CPP_EXCEPTIONS": "YES", |
| 29 |
"MACOSX_DEPLOYMENT_TARGET": "10.7", |
| 30 |
"OTHER_CPLUSPLUSFLAGS": [ |
| 31 |
"-std=c++20", |
| 32 |
"-stdlib=libc++" |
| 33 |
], |
| 34 |
"OTHER_LDFLAGS": [ |
| 35 |
"-stdlib=libc++" |
| 36 |
] |
| 37 |
} |
| 38 |
} |
| 39 |
], |
| 40 |
[ |
| 41 |
"OS==\"win\"", |
| 42 |
{ |
| 43 |
"defines": [ |
| 44 |
"Opencc_BUILT_AS_STATIC" |
| 45 |
] |
| 46 |
} |
| 47 |
] |
| 48 |
] |
| 49 |
} |
| 50 |
} |