From 692fe1f3ffc8f4364b39c14aa7d90cec2ff5c0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Fri, 3 Jun 2016 18:05:04 +0200 Subject: [build] switch to CMake This is very much a work in progress. --- benchmark/benchmark.gypi | 87 ------------------------------------------------ 1 file changed, 87 deletions(-) delete mode 100644 benchmark/benchmark.gypi (limited to 'benchmark') diff --git a/benchmark/benchmark.gypi b/benchmark/benchmark.gypi deleted file mode 100644 index 011ac16584..0000000000 --- a/benchmark/benchmark.gypi +++ /dev/null @@ -1,87 +0,0 @@ -{ - 'targets': [ - { - 'target_name': 'benchmark-lib', - 'type': 'static_library', - 'standalone_static_library': 1, - 'hard_dependency': 1, - 'dependencies': [ - 'core', - ], - - 'include_dirs': [ - '../include', - '../src', - '../platform/default', - 'include', - 'src', - ], - - 'sources': [ - 'parse/filter.cpp', - - - 'src/mbgl/benchmark/benchmark.cpp' - ], - - 'variables': { - 'cflags_cc': [ - '<@(benchmark_cflags)', - '<@(rapidjson_cflags)', - ], - 'ldflags': [ - '<@(benchmark_ldflags)', - ], - 'libraries': [ - '<@(benchmark_static_libs)', - ], - }, - - 'conditions': [ - ['OS == "mac"', { - 'xcode_settings': { - 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ], - }, - }, { - 'cflags_cc': [ '<@(cflags_cc)' ], - }], - ], - 'link_settings': { - 'conditions': [ - ['OS == "mac"', { - 'libraries': [ '<@(libraries)' ], - 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] } - }, { - 'libraries': [ '<@(libraries)', '<@(ldflags)' ], - }] - ], - }, - - 'direct_dependent_settings': { - 'include_dirs': [ - 'include', - ], - - # Force the linker to include all the objects from the lib-benchmark archive. Otherwise they'd - # be discarded because there are no undefined symbols to pull them in, and the resulting - # executable would run zero tests. - - 'conditions': [ - ['OS == "mac"', { - 'xcode_settings': { - 'OTHER_LDFLAGS': [ - '-Wl,-force_load,<(PRODUCT_DIR)/libbenchmark-lib.a', - ], - } - }, { - 'link_settings': { - 'ldflags': [ - '-Wl,-whole-archive <(PRODUCT_DIR)/libbenchmark-lib.a -Wl,-no-whole-archive', - ], - }, - }], - ], - }, - }, - ] -} -- cgit v1.2.1