| OLD | NEW |
| 1 project('adblockpluscore', 'cpp', license: ['GPL3'], meson_version: '>0.40.0') | 1 project('adblockpluscore', 'cpp', license: ['GPL3'], meson_version: '>0.40.0') |
| 2 | 2 |
| 3 native = get_option('native') | 3 native = get_option('native') |
| 4 if native | 4 if native |
| 5 target_type='native' | 5 target_type='native' |
| 6 else | 6 else |
| 7 target_type='js' | 7 target_type='js' |
| 8 endif | 8 endif |
| 9 | 9 |
| 10 if target_type == 'js' | 10 if target_type == 'js' |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 native_sources, | 212 native_sources, |
| 213 cpp_args: ADDITIONAL_PARAMS + CORE_PARAMS, | 213 cpp_args: ADDITIONAL_PARAMS + CORE_PARAMS, |
| 214 link_args: LINK_PARAMS) | 214 link_args: LINK_PARAMS) |
| 215 gtest = static_library('gtest', files(join_paths(GTEST_DIR, 'src', 'gtest-all.
cc')), | 215 gtest = static_library('gtest', files(join_paths(GTEST_DIR, 'src', 'gtest-all.
cc')), |
| 216 include_directories: [ | 216 include_directories: [ |
| 217 include_directories(join_paths(GTEST_DIR, 'include'
), is_system: true), | 217 include_directories(join_paths(GTEST_DIR, 'include'
), is_system: true), |
| 218 include_directories(GTEST_DIR) | 218 include_directories(GTEST_DIR) |
| 219 ], | 219 ], |
| 220 cpp_args: GTEST_PARAMS) | 220 cpp_args: GTEST_PARAMS) |
| 221 abptest = executable('abptest', test_sources, | 221 abptest = executable('abptest', test_sources, |
| 222 cpp_args: ADDITIONAL_PARAMS + CORE_PARAMS, | 222 cpp_args: ADDITIONAL_PARAMS + CORE_PARAMS + ['-DINSIDE_TE
STS'], |
| 223 include_directories: include_directories(join_paths(GTEST
_DIR, 'include')), | 223 include_directories: include_directories(join_paths(GTEST
_DIR, 'include')), |
| 224 link_args: LINK_PARAMS, | 224 link_args: LINK_PARAMS, |
| 225 link_with: [ adblockpluscore, gtest ]) | 225 link_with: [ adblockpluscore, gtest ]) |
| 226 test('abptest', abptest) | 226 test('abptest', abptest) |
| 227 endif | 227 endif |
| 228 | 228 |
| OLD | NEW |